Call asp.net web service from PHP with multiple parameters

前端 未结 3 1690
逝去的感伤
逝去的感伤 2020-12-04 15:57

I\'m using a method using SoapClient class in a php page to call a web service in an asp.net site.

Here is the php code.

$client = new SoapClient(\"         


        
3条回答
  •  误落风尘
    2020-12-04 16:46

    Try like this:

    $client = new SoapClient("http://testurl/Test.asmx?WSDL");
    $params->Param1 = 'Hello';
    $params->Param2 = 'World!';    
    $result = $client->TestMethod($params)->TestMethodResult;
    

提交回复
热议问题