Home » Web Services » XML_RPC » Bug #2628
XML_RPC_Server doesn't parse XML without carriage returns correctly.
Details
| Submitted | 2004-10-27 11:11 UTC |
|---|---|
| From | glideraerobatics at hotmail dot com |
| Status | Bogus |
| Package | XML_RPC |
| PHP Version | 4.3.9 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-10-27 11:11 UTC] glideraerobatics at hotmail dot com
Description:
------------
XMLRPC method call's without carriage returns result in this fault response:
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Unknown method</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
Reproduce code:
---------------
This method call will work:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>getCustomerTemplates</methodName>
<params>
<param>
<value>
<int>1056</int>
</value>
</param>
</params>
</methodCall>
This same method call without the CR's won't work:
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>getCustomerTemplates</methodName><params><param><value><int>1056</int></value></param></params></methodCall>
Expected result:
----------------
See above.
Actual result:
--------------
See above.