So I ended up looking into the source code and finding exactly where I was
getting the error.
Although the debug information gave a very strong impression that it was
the CLIENT side xml that was failing to be parsed,
it was actually the server response (returning bad XML) that was being
parsed (I am using Userland's xml-rpc server for PHP and had incorrectly
returned the response to the function call.)
Once I got issues resolved on the xml-rpc (PHP) server side, my client
(apache-xml-rpc) had no problems.
Perhaps the error messages need to be a bit clearer (like for instance, in
debug mode, it should indicate that the request has been sent and that the
_response_ is about to be parsed.) Perhaps there needs to be a way to see
the raw XML (i did this in my debugging and it helped me a great deal.)
I'm glad the source is open, it definitely helped me debug what was going
on.
Thanks for everyone's help.
Gilad Buzi
R&D Engineer � CONCATEL
[EMAIL PROTECTED]
c/Sardenya, 229-237 Atic. 2a �
08013 Barcelona Spain
tel. +34.93.244.88.77 � fax
+34.93.244.88.78
www.concatel.com
Hannes
Walln�fer Para: [EMAIL PROTECTED]
<hannes@helma cc:
.at> Asunto: Re: error parsing XML
08/04/2002
19:23
Por favor,
responda a
rpc-user
Hi,
do you get a stack trace with that message? That would help us a lot
localizing the problem.
Hannes
[EMAIL PROTECTED] wrote:
> Hello,
>
> I get the following error when trying to execute a client call to an
> XML-RPC server (it doesn't even make the call yet.)
>
> Fatal error parsing XML: unexpected end of file found
>
> All I am doing is sending a bunch of Strings as parameters:
>
> .
> .
> XmlRpcClient client = new XmlRpcClient(server_url);
> Vector params = new Vector();
> params.add("params1");
> params.add("params2");
> .
> .
> client.execute("myMethod",params);
> .
> .
> This last line is where the error is thrown.
>
> There have been a few messages on this mailing list regarding this error,
> but I don't think their issues apply to my case.
>
> Any help appreciated.
>
> Gilad Buzi
> R&D Engineer � CONCATEL
>
>
> [EMAIL PROTECTED]
> c/Sardenya, 229-237 Atic. 2a �
> 08013 Barcelona Spain
> tel. +34.93.244.88.77 � fax
> +34.93.244.88.78
>
> www.concatel.com
>
>
>
>