Przykłady połączenia dla programistów |
Przykłady kodowe
ServiceReference1.ApiServiceClient cl1 = new ServiceReference1.ApiServiceClient(); var sess1 = cl1.Login2("ibd", "ibd", 2, "Administrator","adminpwd"); var jednostki2 = cl1.Towary_PobierzGrupy(sess1);
try { $option = array('trace'=>true); $soap = new SoapClient("http://iluo.api.server.net:9200/ILUO-API-v3.0?WSDL",$option); $soap->soap_defencoding = 'UTF-8'; $soap->decode_utf8 = false; $response = $soap->Login(array("accountName"=>"demoToken","accountToken"=>"demoTokenxx")); print $response->LoginResult; } catch (Exception $e) { print $e->getMessage(); }