![]() |
XML-RPC Issue/Bug - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: XML-RPC Issue/Bug (/showthread.php?tid=3795) Pages:
1
2
|
XML-RPC Issue/Bug - El Forum - 03-18-2009 [eluser]tahpot[/eluser] Ok, I've been getting this as well, but after almost a day I've solved it. The server needs to have a blank index() method, otherwise it just returns a 404 error regardless of the rest of the response. Simply add that and you should be good. This should be in the docs or at least the code example on the XML-RPC page should include a blank index() page. That being said, I still don't have a working client and server! I'm now getting an error stating the server is generating invalid XML. The details are here for anyone who can help: <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <struct> <member> <name>you_said</name> <value> <string>How is it going?</string> </value> </member> <member> <name>i_respond</name> <value> <string>Not bad at all.</string> </value> </member> </struct></value> </param> </params> </methodResponse> ---END DATA--- XML error: Reserved XML Name at line 4 The XML data receieved was either invalid or not in the correct form for XML-RPC. Turn on debugging to examine the XML data further. XML-RPC Issue/Bug - El Forum - 03-18-2009 [eluser]tahpot[/eluser] Ok, discovered the problem. The XML-RPC client expects the first line to be the <?xml tag, however it's just a bunch of blank lines. I fixed this by adding the following code in the Xmlrpc.php line 733: $data = implode("\r\n", $lines); $lines = explode("\n", $data); $data = ""; foreach ($lines as $line) { if (strlen($line) < 1) continue; $data .= $line."\r\n"; } This is an ugly hack, but is a working interim fix. It may also be that the server is adding the extra lines in it's reply which may not be adhering to the XMLRPC specification but I haven't checked that. XML-RPC Issue/Bug - El Forum - 10-19-2009 [eluser]Unknown[/eluser] XMLRPC not able to connect tor 'localhost' If you are testing on your local development system are getting the error after time out: “Did not receive a ‘200 OK’ response from remote server.” It might be that you client is trying to connect to the host "http://localhost:80/<xmlrpc_server_uri>. All my codeigniter application work with "localhost" and the base url, but the xmlrpc client does not like use of that alias. Replace the "localhost" with you IP or 127.0.0.1 and the client will find the host XML-RPC Issue/Bug - El Forum - 01-16-2010 [eluser]Unknown[/eluser] I fixed this issue by adding an echo statement to the xmlrpc_server.php at the follow... Code: $server_url = site_url('xmlrpc_server'); I was adding the FQDN twice, once in the config.php file Code: $config['base_url'] = "http://localhost/xmltest/" and then again in the server code Code: $server_url = site_url('http://localhost/xmltest/xml/xmlrpc_server') Which echo back something like this Quote:http://localhost/xmltest/http://localhost/xmltest/xml/xmlrpc_server.php Which was never going to work! So I changed it to below and it worked! Code: $server_url = site_url('xmlrpc_server') XML-RPC Issue/Bug - El Forum - 09-01-2010 [eluser]Unknown[/eluser] Has anyone got the xmlrpc client class working with PHP 5.2.1, yet? XML-RPC Issue/Bug - El Forum - 07-21-2011 [eluser]WebMada[/eluser] [quote author="ryanCI" date="1283397849"]Has anyone got the xmlrpc client class working with PHP 5.2.1, yet?[/quote] Yes, I have but I got a problem when running in Windows Vista! I don't know why? XML-RPC Issue/Bug - El Forum - 04-11-2012 [eluser]Unknown[/eluser] Hello!! I have a problem which is when I acceed to the web service of joomla, it show me this error <methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value> <int>105</int> </value> </member> <member> <name>faultString</name> <value> <string> XML error: Invalid document end at line 1, column 1 </string> </value> </member> </struct> </value> </fault> </methodResponse> I use joomla 1.5 which interact with phonegape application, please help me. XML-RPC Issue/Bug - El Forum - 07-02-2013 [eluser]Unknown[/eluser] Just had the same problem as above Since my solution wasn't here yet: The XML was fine, but since i was on a fresh install i didn't had mod_rewrite on My .htacces rewrited the errordocument to index.php giving correct results, but with a 404 status code. Code: <IfModule !mod_rewrite.c> Just turn mod_rewrite on and it's fixed ![]() |