我使用 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 with Suhosin-Patch。FreeBSD 版本:FreeBSD 8.0-RELEASE-p4。
任何有关进一步调试或解决方案的建议都将受到欢迎。
更新
WSO2 WSF/PHP 示例有效 - 至少当我将示例用作客户端和服务器时。如果我使用 SoapUI 作为客户端,则会收到错误消息:
Transport identified SOAP version does not match with SOAP message version