sajinm4u / android-xmlrpc

Automatically exported from code.google.com/p/android-xmlrpc
0 stars 0 forks source link

xml rpc server help??? #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by ayshmb1...@gmail.com on 21 Jan 2012 at 2:00

Attachments:

GoogleCodeExporter commented 8 years ago
You connect @ "http://
fuseng.elte .rma.ac. be:8080/RPC2 " 

Is it your android xmlrpc server?

Original comment by psk...@gmail.com on 22 Jan 2012 at 5:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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 
method to look for my IP Adress and of course it will work only on wifi).

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 10:13

GoogleCodeExporter commented 8 years ago
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?

Original comment by psk...@gmail.com on 22 Jan 2012 at 11:59

GoogleCodeExporter commented 8 years ago
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 :(

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 1:35

GoogleCodeExporter commented 8 years ago
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

Original comment by psk...@gmail.com on 22 Jan 2012 at 2:10

GoogleCodeExporter commented 8 years ago
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 ;-)

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 3:33

GoogleCodeExporter commented 8 years ago
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)

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 4:06

GoogleCodeExporter commented 8 years ago
Try to browse http://android-xmlrpc googlecode.com/svn/trunk

It works, if not your military network is to the couse

Original comment by psk...@gmail.com on 22 Jan 2012 at 4:26

GoogleCodeExporter commented 8 years ago
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

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 5:36

GoogleCodeExporter commented 8 years ago
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?

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 6:15

GoogleCodeExporter commented 8 years ago
Its google site - it has to be working, yes I checked - it works

Original comment by psk...@gmail.com on 22 Jan 2012 at 6:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i finally managed to get all folders, thx dude, i'll see what will be the 
answer :-)

Original comment by ayshmb1...@gmail.com on 22 Jan 2012 at 8:33

GoogleCodeExporter commented 8 years ago
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 :-) 

Original comment by ayshmb1...@gmail.com on 31 Jan 2012 at 3:01

Attachments: