在PHP v5.3上使用PEAR::Soap。

时间:2021-01-08 07:17:16

I have had to create a web service in PHP for a system I am busy on. I have got it to work using PEAR::Soap on PHP 5.3, but on the logs it gets spammed with errors and notices. I have tried going through the code and fixing the errors, but each time I fix one set of errors, another set appear.

我必须在PHP中创建一个web服务,这是我正在忙的一个系统。我已经让它使用PEAR:: PHP 5.3的Soap,但是在日志中,它会收到错误和通知的垃圾信息。我尝试过遍历代码并修复错误,但是每次我修复一组错误时,就会出现另一组错误。

Is there a version which will run without errors? Or an alternative that is just as easy to use?

是否有一个没有错误的版本?或者是一种简单易用的替代品?

Any input will be appreciated.

任何输入都将被欣赏。

2 个解决方案

#1


1  

Have you tried http://www.php.net/manual/en/class.soapserver.php I'd worked with PHP's SoapServer and Client. It works perfectly. Also you can try Zend_Soap. (Built on PHP's Soap)

我使用了PHP的SoapServer和客户端。它的工作原理。你也可以试试Zend_Soap。(基于PHP的Soap)

#2


0  

You shouldn't need to use the one from PEAR -- PHP has had SOAP client and server classes built in since v5.0.1

您不需要从PEAR中使用一个——PHP自v5.0.1以来已经构建了SOAP客户机和服务器类。

See http://uk.php.net/soapclient and http://uk.php.net/soapserver

看到http://uk.php.net/soapclient和http://uk.php.net/soapserver

Hope that helps.

希望有帮助。

#1


1  

Have you tried http://www.php.net/manual/en/class.soapserver.php I'd worked with PHP's SoapServer and Client. It works perfectly. Also you can try Zend_Soap. (Built on PHP's Soap)

我使用了PHP的SoapServer和客户端。它的工作原理。你也可以试试Zend_Soap。(基于PHP的Soap)

#2


0  

You shouldn't need to use the one from PEAR -- PHP has had SOAP client and server classes built in since v5.0.1

您不需要从PEAR中使用一个——PHP自v5.0.1以来已经构建了SOAP客户机和服务器类。

See http://uk.php.net/soapclient and http://uk.php.net/soapserver

看到http://uk.php.net/soapclient和http://uk.php.net/soapserver

Hope that helps.

希望有帮助。