soap - php soapclient to c# -


<?php  $client = new soapclient(null, array('location' => "http://www.progez.com/demo/webservice/wshotel.sh",'uri' => "http://www.progez.com/demo/", 'encoding' =>"iso-8859-9")); $parm['login'] = "username"; $parm['pass'] = "password"; $parm['agency_code'] = "adm"; $parm['letters'] = "bodrum"; $inf =($client->__soapcall("destinationlistbyletterv2",array($parm)));  print_r($inf);  ?> 

how code convert c# ?

you start generating typed proxy using svcutil.exe or add service reference dialog in visual studio pointing web service wsdl. generate typed client allowing consume service. , consume:

using (var client = new someserviceclient()) {     var result = client.destinationlistbyletterv2("username", "password", "adm", "bodrum"); } 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -