WSO2 WSF/PHP - Soap 错误:XML 构建器已完成拉取。拉解析器无法再拉

发布于 2024-09-18 01:01:37 字数 1576 浏览 6 评论 0 原文

我使用 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 

I use WSO2 WSF/PHP. I have the WSF extension compiled and enabled in PHP. But I receive this Soap fault response when sending a request to the webservice:

soapenv:Client
XML builder done with pulling. Pull parser cannot pull any more

The last lines from the wsf_php_server.log is:

[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

I have tried restarting the httpd proces - as this forum thread suggest: http://wso2.org/forum/thread/5151

WSF/PHP is installed on the following server: Apache/2.2.16 (FreeBSD) mod_ssl/2.2.16 OpenSSL/0.9.8k DAV/2 PHP/5.3.3 with Suhosin-Patch. FreeBSD version: FreeBSD 8.0-RELEASE-p4.

Any suggestions for further debugging or resolutions would be very welcome.

UPDATE

The WSO2 WSF/PHP samples works - at least when I use the samples as both client and server. If I use SoapUI as the client I get an error:

 Transport identified SOAP version does not match with SOAP message version 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

带刺的爱情 2024-09-25 01:01:37

XML 构建器出现拉取错误的原因是,我的请求 XML 中有错误。标题元素重复:

<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">

希望这可以帮助其他人解决此错误消息。

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:

<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">

Hope this helps others with this error message.

过期以后 2024-09-25 01:01:37

我在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文