Re: PEAR XML-RPC incompatible with Apache Java xmlrpc?
| From: | Greg Beaver | Date: | Fri, 24 Sep 2004 18:15:41 +0000 |
| Subject: | Re: PEAR XML-RPC incompatible with Apache Java xmlrpc? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14636@lists.php.net to get a copy of this message | ||
Michael böckling wrote:
Hi Justin, thanks for your reply. I couldn't figure out where the problem was, but it must be something low-level. I caught the XML response of PHP via output-buffering to a logfile, and it is perfectly valid. Simply printing this message out in PHP does work, Java recognizes it. I believe PEAR XML-RPC sends some headers or strange characters that the Java SAX parser stumbles upon. The exception says the error is in line 1, column1 of the XML stream. Maybe a unnecessary newline? A UTF-8 BOM? A HTTP problem? I really was unable to find the error, and I'm tired of trying to figure it out. Now I use the Incutio library, which does everything I want it to do. Works flawlessly. I would appreciate it if Greg Beaver's attempt at a new PEAR XML-RPC library was accepted, it sounds really great. Not too shabby what that guy can do in "a fit of boredom" in 2 nights...I haven't fully tested the code - any you haven't seen it yet, don't count eggs until you're sure you like it :) If you want the code as-is, let me know, I'll try to package it up when I get a chance. Greg