English 中文(简体)
WSO2 WSF/PHP - Soap fault: XML builder done with pulling. Pull parser cannot pull any more
原标题:

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 
最佳回答

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.

问题回答

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





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签