我正在将使用NuSoap的旧代码转换为
PHP Soap Library.但是在PHP Soap Libary中似乎不存在NuSoap PHP中的方法getError,我收到此错误:
原文链接:https://www.f2er.com/php/134218.htmlFatal 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(); ?>