Call asp.net web service from PHP with multiple parameters

前端 未结 3 1692
逝去的感伤
逝去的感伤 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:36

    I was googling for multi-parameter calling. All the thread did not tell the following. When php call .asmx web service, the passing of parameters MUST MATCH the variables used in the web service of :

    public string XYZ(string p, string q) 
    

    The web service call has to be something like :

    $params = array( "p"  => $name1,    "q" => $name2 );
    

    p, q pairs must be named and clarified in php calling.

提交回复
热议问题