开发者

Consume ASP .NET WebService In php

开发者 https://www.devze.com 2023-03-06 05:13 出处:网络
Hey guys I am trying to consume ASP webservice in my php script. But i am stuck in one problem. require_once(\'lib/nusoap.php\');

Hey guys I am trying to consume ASP webservice in my php script. But i am stuck in one problem.

 require_once('lib/nusoap.php');
    $soapClient = new   SoapClient("http://test.etech.net/PanelIntegration/PanelIntegration.asmx?wsdl");  

 $sh_param = array( 
   开发者_StackOverflow中文版                 'Username'    =>    'mueksh', 
                    'Password'    =>    'bisht'); 

and i am using UpdateInstruction method

$result->call("UpdateInstruction ",$sh_param);

Now in return i have get Username and Passsword not Supplied. Can anybody tell me where i am wrong.

Thanks


Use the PHP5 standard SoapClient class instead of NuSoap (which was developed for PHP4 because it had no native SOAP support) and use SoapClient::__getLastRequest() to find out exactly what XML the Soap call is generating.

0

精彩评论

暂无评论...
验证码 换一张
取 消