You Are Here:

Community: Developer Discussion Boards

#1 Old How to call a Web Service - 2009-03-06, 16:18

Join Date: Jul 2008
Posts: 2
lessa.bru
Offline
Registered User
People,

how can i call a web service ? can I instantiate an object that is the WS ?

Please, give me some examples !


lots of thanks !!
Reply With Quote

#2 Old Re: How to call a Web Service - 2009-03-06, 18:57

Join Date: Nov 2007
Posts: 319
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Offline
Forum Nokia Champion
Hi

I think it is better you specify wich web service you want to access since they may vary a lot.
Some of them use REST and xml (Yahoo! Maps), others REST and json (Twitter), XMLRPC (wordpress, blogger) and so on. And it is possible to access them from your mobile, of course.
Wordmobi code has examples for xmlrpc and rest+json. I think people at this dibo may have several other examples to show. I am writing a tutorial on rest+json, to be publised soon at python wiki, with some didactic examples.

Bye

Marcelo


Marcelo Barros
Nokia E71, N800, N95 and XM 5800
http://www.croozeus.com
http://wordmobi.wordpress.com
http://jedizone.wordpress.com
Reply With Quote

#3 Old Re: How to call a Web Service - 2009-03-06, 22:41

Join Date: Jul 2008
Posts: 2
lessa.bru
Offline
Registered User
I am trying to call a simple WS made in .NET.

Well, I discovered that I can call it using HTTP GET, but is there in Pys60 classes for doing that ? I mean treat the returned XML ?

[]'s,
Lessa.


Quote:
Originally Posted by marcelobarrosalmeida View Post
Hi

I think it is better you specify wich web service you want to access since they may vary a lot.
Some of them use REST and xml (Yahoo! Maps), others REST and json (Twitter), XMLRPC (wordpress, blogger) and so on. And it is possible to access them from your mobile, of course.
Wordmobi code has examples for xmlrpc and rest+json. I think people at this dibo may have several other examples to show. I am writing a tutorial on rest+json, to be publised soon at python wiki, with some didactic examples.

Bye

Marcelo
Reply With Quote

#4 Old Re: How to call a Web Service - 2009-03-07, 01:51

Join Date: Nov 2007
Posts: 319
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Offline
Forum Nokia Champion
Quote:
Originally Posted by lessa.bru View Post
I am trying to call a simple WS made in .NET.

Well, I discovered that I can call it using HTTP GET, but is there in Pys60 classes for doing that ? I mean treat the returned XML ?

[]'s,
Lessa.
you can use urllib for this (GET and POST requests, for instance). But, if your WS is based on xmlrpc, then you can use xmlrpclib, an amazing module. It does not come with standard python 1.4.5 but you can copy it (and its dependences) from standard python.2.2.3, as I did.

Think about showing some code you have tried or provide more details about WS. So, it will be easier to help you.

bye

Marcelo Barros


Marcelo Barros
Nokia E71, N800, N95 and XM 5800
http://www.croozeus.com
http://wordmobi.wordpress.com
http://jedizone.wordpress.com
Reply With Quote

#5 Old Re: How to call a Web Service - 2009-03-09, 11:28

Join Date: Nov 2007
Posts: 319
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Offline
Forum Nokia Champion
Quote:
I am writing a tutorial on rest+json, to be publised soon at python wiki, with some didactic examples.
Bringing REST architecture to S60 devices with Python: a guided tutorial using Twitter API


Available ... may need some minor reviews, but it was published.
And took a lot of time to be done ...
Enjoy !

Marcelo Barros


Marcelo Barros
Nokia E71, N800, N95 and XM 5800
http://www.croozeus.com
http://wordmobi.wordpress.com
http://jedizone.wordpress.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Web service HasithaRandika Mobile Java Networking & Messaging & Security 0 2009-01-30 06:16
Implement S60 program connect to web service using NetBean6 qiuhuek General Browsing 0 2008-04-18 13:44
[Moved] Implement S60 program connect to web service using NetBean6 qiuhuek Mobile Java Networking & Messaging & Security 2 2008-04-12 20:46
Problem with service attribute propagation and service attribute retrieval pfrey Bluetooth Technology 4 2006-09-05 16:15
strange web service behavior on 6680? asidana Symbian Networking & Messaging 0 2005-06-26 18:09

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia