Discussion:
[phpxmlrpc] Invalid Xml Stream sended
Jamel ESSOUSSI
2009-05-20 12:55:58 UTC
Permalink
Hi,
Can you help me please to modify in the server side the xml sended,
In fact, I would like to delete the second blank line in the retruned
xml afetr the content-type line.

HTTP/1.1 200 OK
Date: Wed, 20 May 2009 12:16:44 GMT
Server: Apache/2.2.11 (Unix) PHP/4.4.9 mod_ssl/2.2.11 OpenSSL/0.9.8c
X-Powered-By: PHP/4.4.9
Vary: Accept-Charset
Content-Length: 360
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/xml; charset=UTF-8


<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>3</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Incorrect parameters passed to method: No method
signature matches number of parameters</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>

Regards
--Jamel
G E T O U T
2009-06-15 04:51:29 UTC
Permalink
Hi Jamel,

The representation which you have posted here is actually the raw HTTP
response. The blank lines after the content type are absolutely necessary as
they separate HTTP headers and HTTP body in HTTP response. If you try to
modify these, it will result in erroneous HTTP response which in turn could
not be understood by libraries and will break.

Thanks n Regards,


On Wed, May 20, 2009 at 6:25 PM, Jamel ESSOUSSI <
Post by Jamel ESSOUSSI
Hi,
Can you help me please to modify in the server side the xml sended,
In fact, I would like to delete the second blank line in the retruned
xml afetr the content-type line.
HTTP/1.1 200 OK
Date: Wed, 20 May 2009 12:16:44 GMT
Server: Apache/2.2.11 (Unix) PHP/4.4.9 mod_ssl/2.2.11 OpenSSL/0.9.8c
X-Powered-By: PHP/4.4.9
Vary: Accept-Charset
Content-Length: 360
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>3</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Incorrect parameters passed to method: No method
signature matches number of parameters</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
Regards
--Jamel
_______________________________________________
phpxmlrpc mailing list
phpxmlrpc at lists.usefulinc.com
http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc
--
THE FR33LANC3R NULL3R & DGT MEMBER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.usefulinc.com/pipermail/phpxmlrpc/attachments/20090615/05700746/attachment.htm
Loading...