WSO2 WSF/PHP - Soap 错误:XML 构建器已完成拉取。拉解析器无法再拉
我使用 WSO2 WSF/PHP。我在 PHP 中编译并启用了 WSF 扩展。但在向 Web 服务发送请求时,我收到此 Soap 错误响应:
soapenv:Client
XML builder done with pulling. Pull parser cannot pull any more
wsf_php_server.log 中的最后几行是:
[Mon Sep 6 11:54:04 2010] [debug] /root/download/wso2-wsf-php-src-2.1.0/src/wsf_wsdl.c(1685) [wsf_wsdl]policies found
[Mon Sep 6 11:54:04 2010] [debug] /root/download/wso2-wsf-php-src-2.1.0/src/wsf_wsdl.c(1752) operation name is Search
[Mon Sep 6 11:54:04 2010] [debug] /root/download/wso2-wsf-php-src-2.1.0/src/wsf_wsdl.c(1848) [wsf_wsdl]valid policies not found
[Mon Sep 6 11:54:04 2010] [debug] /root/download/wso2-wsf-php-src-2.1.0/src/wsf_worker.c(409) [WSF/PHP] Client HTTP version HTTP/1.1
[Mon Sep 6 11:54:04 2010] [debug] soap_builder.c(883) Identified soap version is soap11
[Mon Sep 6 11:54:04 2010] [debug] om_stax_builder.c(651) -1 returned from the xml reader when reading xml
[Mon Sep 6 11:54:04 2010] [error] soap_builder.c(329) Error occurred when building node
我已尝试重新启动 httpd 进程 - 正如此论坛帖子所建议的: http://wso2.org/forum/thread/5151
WSF/PHP 安装在以下服务器上:Apache/2.2.16 (FreeBSD) mod_ssl/2.2.16 OpenSSL/0.9.8k DAV/2 PHP/5.3.3 带 Suhosin 补丁。 FreeBSD 版本:FreeBSD 8.0-RELEASE-p4。
任何有关进一步调试或解决方案的建议都将非常受欢迎。
更新
WSO2 WSF/PHP 示例有效 - 至少当我将示例用作客户端和服务器时。如果我使用 SoapUI 作为客户端,则会收到错误:
Transport identified SOAP version does not match with SOAP message version
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
XML 构建器出现拉取错误的原因是,我的请求 XML 中有错误。标题元素重复:
希望这可以帮助其他人解决此错误消息。
The reason for the XML builder done with pulling error was, that I had an error in my request XML. The Header element was duplicated:
Hope this helps others with this error message.
我在 SoapUI 5.2.1 中遇到了同样的情况,并且通过该工具的默认 HTTP 请求的请求压缩设置解决了该问题。尝试将请求压缩从 gzip 更改为 无 HTTP 请求设置
I had the same case with SoapUI 5.2.1 and the issue was fixed with with the Request Compression setting of the default HTTP request of the Tool. Try changing the request compression from gzip to None HTTP request Settings