Mick Bisht
Mick Bisht

Reputation: 11

Consume ASP .NET WebService In 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( 
                    '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

Upvotes: 0

Views: 1017

Answers (1)

Stephen
Stephen

Reputation: 18917

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.

Upvotes: 1

Related Questions