Re: Problem with Java anda xml-rpc
Gaetano Giunta <[email protected]> Thu, 06 Sep 2007 11:00:41 +0200
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
looks like you are not getting back an xml response (since you are
geting a BR element, it looks more like html)
this usually means either:
- you are not calling the correct php page, check your url
- http auth and any proxy/firewall in between
- the php page is generating an error, thus not sending back valid xml
1 please try to call the webservice url via a smple browser GET and see
what you get
2 try calling the webservice using the public xmlrpc debugger at
http://gggeek.raprap.it/debugger/
3 set up an http sniffer between client and server. wireshark is a good
general purpose one
> Hello,
>
> I want to communicate Java and PHP with XML-RPC but I have the next
> exception:
>
> Failed to parse servers response: Expected methodResponse element,
> got br
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse
> (XmlRpcStreamTransport.java:177)
> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest
> (XmlRpcStreamTransport.java:145)
> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest
> (XmlRpcHttpTransport.java:94)
> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest
> (XmlRpcSunHttpTransport.java:44)
> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute
> (XmlRpcClientWorker.java:53)
> at org.apache.xmlrpc.client.XmlRpcClient.execute
> (XmlRpcClient.java:166)
> at org.apache.xmlrpc.client.XmlRpcClient.execute
> (XmlRpcClient.java:157)
> at org.apache.xmlrpc.client.XmlRpcClient.execute
> (XmlRpcClient.java:146)
> at comunicacion.<init>(comunicacion.java:83)
> at Main.main(Main.java:9)
>
> Somebody can help me?
>
> Thanks a lot,
>
> Luis
>
>
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/xml-rpc/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/