Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't connect to XML Server using XML-RPC protocol  RSS feed

 
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

D/CameraService( 25): startPreview()
W/System.err( 180): org.xmlrpc.android.XMLRPCException: org.apache.http.conn.Ht
tpHostConnectException: Connection to http://127.0.0.1:8085 refused
W/System.err( 180): at org.xmlrpc.android.XMLRPCClient.callXMLRPC(XMLRPCClie
nt.java:380)
W/System.err( 180): at org.xmlrpc.android.XMLRPCClient.call(XMLRPCClient.jav
a:171)
W/System.err( 180): at javapadawan.android.ImageCaptureCallback.onPictureTak
en(ImageCaptureCallback.java:39)



My code



Server is running perfectly i can access same method by using apaches commons http client but why this is giving exceptions



I am using libraries from this URL : http://code.google.com/p/android-xmlrpc/
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

chetan dhumane wrote:

My code



I am using libraries from this URL : http://code.google.com/p/android-xmlrpc/



if you try to connect to your development computer url 127.0.0.1 is wrong, try 10.0.2.2 instead.

see test activity in the project you use how to connect to dev box.



 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!