PHP SOAP client calling function with parameters

后端 未结 4 2065
南旧
南旧 2021-02-20 10:22

I created a SOAP client like so:

$client = new SoapClient(\"file.wsdl\");

And then when I want to call an API function

$client-         


        
4条回答
  •  鱼传尺愫
    2021-02-20 11:14

    $info = $client->__call("myAction", ['body' => ['param1' => '123', 'param2' => '456']]);
    

提交回复
热议问题