简体   繁体   English

使用PEAR Soap模拟php_soap

[英]Emulate php_soap using PEAR Soap

I have Magento installed and would like to start using the API, however the Magento API uses Zend (Zend_Soap_Server) for Soap which relies on php_soap. 我已经安装了Magento,并且想开始使用API​​,但是Magento API对Zend(Zend_Soap_Server)的Soap使用了php_soap。

My provider does not (and refuses to) support php_soap, but does support PEAR soap and it is working properly (I have other web services operating successfully with PEAR soap). 我的提供程序不(并且拒绝)支持php_soap,但确实支持PEAR soap,并且运行正常(我有其他Web服务可以通过PEAR soap成功运行)。

So, is anyone aware of an already-written library that I could include to emulate php_soap using PEAR SOAP_Server? 因此,有人知道我已经可以使用PEAR SOAP_Server模拟php_soap的库了吗?

class SoapServer{
    ...
    //Functions from http://php.net/manual/en/class.soapserver.php 
    // re-written to use functions from https://pear.php.net/reference/SOAP-0.9.1/SOAP/SOAP_Server.html

}

There are other posts on SO where others have experienced similar challenges, except installing php_soap is not an option and I'd prefer not to change providers over this alone: 在SO上还有其他帖子,其他人也遇到过类似的挑战,除了不能安装php_soap之外,我宁愿不要仅凭此更改提供程序:

You'd have to write a 1:1 identical SoapClient implementation in PHP userland code, which is possible but quite a task. 您必须用PHP用户态代码编写一个1:1相同的SoapClient实现,这是可能的,但这是一项艰巨的任务。

You might use PEAR's SOAP_Server as backend, but it'll be work nevertheless. 您可以使用PEAR的SOAP_Server作为后端,但是仍然可以使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM