New issue 35 by ayshmb1...@gmail.com: xml rpc server help???
http://code.google.com/p/android-xmlrpc/issues/detail?id=35
hello every body!
i'm looking for a way to implement an xml rpc server on an android device.
I tried the class in the 1st attached file but it seems that it s not
working because i've tried to send data from a local activity (with
localhost:8214) but the answer was "connection refused".
Anyway is that the better way to do??
I've followed that little discussion to implement the server and according
to them "your xmlrpc server library" needs to be modified a little bit!! do
I need to that with the release 15?? ==> URL (
http://www.anddev.org/networking-database-problems-f29/xml-rpc-server-on-android-t16632.html
)
extra exlpanations:
the scenario was to get suscribed by sending the command plus as two
parameters: my server's url and finally the command to send me real time
String data, to a server which has to send me real time those Strings
information.
the B class has just to show the Strings sent.
Attached file
The second attached file is the sucription class
the 3rd one is the B class
Attachments:
Server.java 4.8 KB
Viewer.java 2.6 KB
B.java 667 bytes
You connect @ "http://
fuseng.elte .rma.ac. be:8080/RPC2 "
Is it your android xmlrpc server?
nah that's not my adress. it's a server somewhere in the internet but once
i got suscribed to it, it is supposed to play the client role and send me
real time data everytime there is an update.
Mine is supposed to be http://IpAdress:8214/ (see Viewer, i have a method
to look for my IP Adress and of course it will work only on wifi).
nah that's not my adress. it's an xml-RPC server somewhere in the internet
but once i got suscribed to it, it is supposed to play the client role and
send me real time data everytime there is an update.
Mine is supposed to be http://IpAdress:8214/ (see Viewer class, i have a
Are you using the latest version from svn? If not, do it.
Also did you try the sample server code which is in the distribution?
euh what do u mean by svn??
i've downloaded (i think) the lastest version on your android xml rpc
package and my server is based on it. i'll try it once i'll have access on
a wifi spot.. now i'm in a military environnement and all IPs are private,
can't have access to my phone neither with 3G nor with my my connection.
and it seems that it s not working with activities on my phone :(
No, you dont have the latest version.
You need to go to http://code.google.com/p/android-xmlrpc/source/checkout
and read how to checkout the code via svn
The easiest way is by installing subversion plugin if you are using
eclipse of course
i'm installing the svn and reading tutorials to see how it works.. i'll let
you know once it's done :-)
nice tool by the way ;-)
i'm unable to connect with svn. that's it what i got
C:\Users\youssoua\subversionRepository>svn checkout
http://android-xmlrpc.googlecode.com/svn/trunk/ android-xmlrpc-read-only
svn: E175002: Unable to connect to a repository at
URL 'http://android-xmlrpc.googlecode.com/svn/trunk'
svn: E175002: OPTIONS de 'http://android-xmlrpc.googlecode.com/svn/trunk' :
Impossible de se connecter au serveur (http://android-xmlrpc.googlecode.com)
Try to browse http://android-xmlrpc googlecode.com/svn/trunk
It works, if not your military network is to the couse
nah i still can't, it said to modify the proxy setting in the file named
servers but i don't have a such file name on my computer :(, i'll see
tomorrow at a friend's place where there is no proxy
i've managed to solve it but i can't even ping the adress, that's weird coz
i always manage to :(
can you ping the adress to see please?
Its google site - it has to be working, yes I checked - it works
i guess i gotta get out of this jail :D thx anyway!
i finally managed! gonna read more what to do after that step!
i finally managed to get all folders, thx dude, i'll see what will be the
answer :-)
here is what i found to make it work, actually for both your
xmlrpcServerTest and my server we needed to add superclass constructor.
The issue is solved, i hope it will help someone else :-)
Attachments:
Server.java 10.5 KB