NuSoap vs PHP肥皂库。 getError在哪里?
我正在将使用NuSoap的旧代码转换为PHP肥皂库。 但NuSoap PHP中的方法getError似乎不存在于PHP Soap Libary中,我得到这个错误:
Fatal error: Uncaught SoapFault exception:
[Client] Function ("getError") is not a valid method for this service in index.php:33
Stack trace: #0 index.php(33): SoapClient->__call('getError', Array) #1 index.php(33):
SoapClient->getError() #2 index.php(63): pay() #3 {main} thrown in /homeindex.php on line 33
这是我的代码:
<?php
$client = new SoapClient('my soap server');
$err = $client->getError();
?>
我该如何在PHP Soap库中出错?
<?php
$client = new SoapClient('my soap server');
$err = $client->soapCall($somfunctioname,$arrofargs );
?>
如果有任何错误它与soapCall。它返回一个SoapFault()的实例,您可以在其中记录错误代码,描述如此.. on
http://www.php.net/manual/en/soapclient.soapcall.php
链接地址: http://www.djcxy.com/p/53905.html