Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.5

Bug #13237 invalid return payload
Submitted: 2008-02-27 19:08 UTC
From: drq123 Assigned: danielc
Status: No Feedback Package: XML_RPC (version 1.5.1)
PHP Version: 5.2.5 OS: windows xp
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 40 + 22 = ?

 
 [2008-02-27 19:08 UTC] drq123 (Aris Giachnis)
Description: ------------ see the code, the output is as it is supposed to be but i get the error from the client side. Test script: --------------- function register($params) { $user = $params->getParam(0); $password=$params->getParam(1); // This error checking syntax was added in Release 1.3.0 $val = new XML_RPC_Value("success", "string"); return new XML_RPC_Response($val); } /* * Establish the dispatch map and XML_RPC server instance. */ $server = new XML_RPC_Server( array("perform_register" => array("function" => "register")) ); Expected result: ---------------- <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value><string>success</string></value> </param> </params> </methodResponse> Actual result: -------------- <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value><string>success</string></value> </param> </params> </methodResponse> Error code: 2 Message: Invalid return payload: enable debugging to examine incoming payload

Comments

 [2008-02-28 11:05 UTC] drq123 (Aris Giachnis)
in XML/RPC/Server.php form the PEAR installation I disabled in the createServerPayload function the <?xml starting sentence. This fixed it....But nor kxmlrpc or the normal pear's parser accept this line there...so it is a bug? must it be fixed?
 [2010-01-08 08:11 UTC] danielc (Daniel Convissor)
-Status: Open +Status: Feedback
Are the server script and client script both saved in UTF-8 format? Is the payload coming back actually UTF-8? I have seen strange things happen when they are not. Perhaps try the setConvertPayloadEncoding() methods in XML_RPC's Server.php and RPC.php.
 [2011-08-27 06:21 UTC] danielc (Daniel Convissor)
-Status: Feedback +Status: No Feedback -Assigned To: +Assigned To: danielc