I tried using tcpmon to see the request and response messages being sent. The request message seems fine. But I'm getting the following response message-
<?xml version="1.0" encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>faultString</name><value><string>Application failed during request deserialization: no element found at line 1, column 0, byte -1 at C:/Program Files/OTRS/StrawberryPerl/perl/vendor/lib/XML/Parser.pm line 187 </string></value></member><member><name>faultCode</name><value><string>Client</string></value></member></struct></value></fault></methodResponse> Any idea how to solve this? Help! mith86 wrote: > > Is there any way I can verify and correct this? I tried using wireshark, > but both my server response and my client request are not showing up on > it. All this is happening on localhost, is that why the packets aren't > showing up in wireshark? And, yes, I'm using Windows. > > > > Jochen Wiedmann wrote: >> >> That looks like the server were producing an invalid response, in the >> style of >> >> <I4>Client</I4> >> >> >> On Wed, Jan 5, 2011 at 12:52 PM, mith86 <[email protected]> >> wrote: >>> >>> Hi, I'm trying to connect a java client with a perl server using xml-rpc >>> .. >>> I'm using the code provided at this link - >>> http://www.javaworld.com/javaworld/jw-10-2004/jw-1011-xmlrpc.html?page=1 >>> >>> I'm using the same code, haven't made any changes apart from the server >>> url. >>> While trying to run the client, I'm getting the following error - >>> >>> org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC response >>> at >>> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:78) >>> at >>> org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72) >>> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193) >>> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184) >>> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177) >>> at XmlRpcClientExample.say_hello(XmlRpcClientExample.java:16) >>> at XmlRpcClientExample.main(XmlRpcClientExample.java:46) >>> Caused by: org.apache.xmlrpc.XmlRpcClientException: Error decoding >>> XML-RPC >>> exception response >>> at >>> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:109) >>> at >>> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:69) >>> ... 6 more >>> Caused by: java.lang.NumberFormatException: For input string: "Client" >>> at java.lang.NumberFormatException.forInputString(Unknown Source) >>> at java.lang.Integer.parseInt(Unknown Source) >>> at java.lang.Integer.parseInt(Unknown Source) >>> at >>> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:102) >>> ... 7 more >>> >>> Could anyone tell me why that is? Any help would be much appreciated! >>> -- >>> View this message in context: >>> http://old.nabble.com/Error-using-xml-rpc-tp30595312p30595312.html >>> Sent from the Apache Xml-RPC - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> I Am What I Am And That's All What I Yam (Popeye) >> >> > > -- View this message in context: http://old.nabble.com/Error-using-xml-rpc-tp30595312p30612482.html Sent from the Apache Xml-RPC - User mailing list archive at Nabble.com.
