XML-RPC question - 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 question (/showthread.php?tid=14064) |
XML-RPC question - El Forum - 12-17-2008 [eluser]Unknown[/eluser] I'm using XML-RPC to access Google Maps API geocoder just with a URL and querystrings, ie no method call and am getting back succesful results from my request(seen with debugging turned on), but am getting the following error message: ---Invalid Return--- Top level XML-RPC element is missing---Invalid Return--- The xml that gets returned looks ok to me...here's a snippet: Code: <?xml version="1.0" encoding="UTF-8" ?> The google api docs are here: http://code.google.com/apis/maps/documentation/services.html#Geocoding_Direct Is this an API that can't be used with XML-RPC?.... Thanks in advance for any responses XML-RPC question - El Forum - 12-17-2008 [eluser]Phil Sturgeon[/eluser] <kml > should be <kml> perhaps? Had a space like that in the last XML file I wrote which caused an error, just throwing a guess in there ;-) XML-RPC question - El Forum - 12-17-2008 [eluser]Nick Husher[/eluser] The extra whitespace following an open tag declaration shouldn't matter if the XML parser is worth its salt. The problem is that it doesn't conform to the XML-RPC spec, and is (rightly) considered to be an invalid response. You should probably implement your own google service XML parser using PHP's XML parsing library. |