Light XMLRPC client side library

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Light XMLRPC client side library

Postby pskink » Fri Dec 12, 2008 9:37 pm

hi,

after couple of weeks i finished ultra light XMLRPC client side library for android.

XMLRPC.tar.gz contains library itself + small test app (.apk included in bin folder) + test python server.py to run on your dev host.

you can download it from this url (tab Downloads):

http://code.google.com/p/android-xmlrpc

pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Postby discover_dileep » Wed Jan 07, 2009 2:58 pm

Thanks pskink.
but when i am executing your code i m getting error "error HTTP status code!405=200"
any idea ?
or u plz tell me wat all steps required to acess this web service?
thanks
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby pskink » Wed Jan 07, 2009 9:51 pm

discover_dileep wrote:Thanks pskink.
but when i am executing your code i m getting error "error HTTP status code!405=200"
any idea ?
or u plz tell me wat all steps required to acess this web service?
thanks


run local server.py and try to run tests.

what errors do you have?

pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby discover_dileep » Thu Jan 08, 2009 5:33 am

error appearing on the top of emulator is "error HTTP status code!405=200".i have attached here the screen shot.whenever i will click any item then that error message appears.
Attachments
test.PNG
test.PNG (114.68 KiB) Viewed 1133 times
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby pskink » Thu Jan 08, 2009 10:54 am

discover_dileep wrote:error appearing on the top of emulator is "error HTTP status code!405=200".i have attached here the screen shot.whenever i will click any item then that error message appears.


ok, two questions:

1. did you modify my code? (by default tests call locally running xmlrpc server: server.py)

2. is server.py running?

pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby discover_dileep » Thu Jan 08, 2009 11:36 am

Hi
No i havent modidfied ur code.and where server.py should run?(sorry if its a stupid question)
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Top

Postby discover_dileep » Thu Jan 08, 2009 11:37 am

to run your code if its required to do some extra setup on server or on emulator then please tell.
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby discover_dileep » Thu Jan 08, 2009 11:38 am

to run your code if its required to do some extra setup on server or on emulator then please tell.
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby discover_dileep » Thu Jan 08, 2009 11:38 am

to run your code if its required to do some extra setup on server or on emulator then please tell.
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby pskink » Thu Jan 08, 2009 12:18 pm

discover_dileep wrote:to run your code if its required to do some extra setup on server or on emulator then please tell.


yes, there is file server.py. its python script that works as a test xmlrpc server.
just run it on your dev box (server). its in the root of the package you downloaded.

also make sure you are up to date with svn repo located at http://code.google.com/p/android-xmlrpc

pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby discover_dileep » Thu Jan 08, 2009 2:27 pm

yeah i have put up it .but its not working.
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Postby pskink » Thu Jan 08, 2009 2:50 pm

discover_dileep wrote:yeah i have put up it .but its not working.


it *IS* working

just run server.py

nothing more :)

but if you cannot setup server.py working, you can modify Test.java and connect to your xmlrpc server and see how it works.
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby Panther » Fri May 22, 2009 1:44 pm

Hi..


To run the server you go into root directory of the code. You will find the server.py file..

Now if u r on linux OS
1. open one terminal and
go to root directory of project

2. give a command
$ python server.py and enter

It will start the server..

3. Now run the test application on emulator ...

8)
Hello Android
Panther
Once Poster
Once Poster
 
Posts: 1
Joined: Fri May 22, 2009 1:39 pm

server.py to java

Postby fmo » Fri Oct 16, 2009 3:43 pm

Hello,

im trying arround for two days to get working the server.py as java servlet. :( Does somebody know how to convert a method such as

Code: Select all
def add(self, x, y):
      return x + y


from python to java so that it works with the android client?

thx
greets fabi
fmo
Freshman
Freshman
 
Posts: 2
Joined: Fri Oct 16, 2009 3:08 pm
Location: Italy

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests