Moving from NuSOAP to PHP5 SOAP

后端 未结 3 1312
一整个雨季
一整个雨季 2021-01-13 00:35

I have been working on a script with PHP4 that relies on NuSOAP. Now, I\'m trying to move this to PHP5, and use the buildin support for SOAP there.

$wsdlPath         


        
3条回答
  •  难免孤独
    2021-01-13 01:27

    Without testing it, I have two suggestions:

    First, put your error_reporting to the highest possible (before creating the SoapClient):

    error_reporting( E_ALL );
    

    If there's something wrong with the authentication on the server's side, PHP will throw warnings. In most of the cases, it will tell you, what has gone wrong.

    Second: I don't know if you can specifiy the 'location' option together with an URL to a wsdl. Theoretically, the wsdl tells your client, where the endpoint of the operations is, so you don't have to bother.

提交回复
热议问题