You Are Here:

Community: Wiki

This page was last modified on 20 October 2009, at 15:13.

SOAPpy for s60

From Forum Nokia Wiki


SOAPpy (Simple Object Access Protocol) is a protocol for exchanging messages over computer networks. It was ported to S60 mobile phones and can be download from this link, also posted on Python s60 effort page.

A SOAPpy example of a calculator using the mobile as a client and a server at PC is given below.

#SOAPcalculator.py
 
import SOAPpy
 
calculator = SOAPpy.SOAPProxy("http://localhost:8080/")
 
a = 8
b = 2
 
print calculator.plus(a,b)
print calculator.minus(a,b)
print calculator.multiply(a,b)
print calculator.divide(a,b)
#Server.py
 
import SOAPpy
 
class Calculator:
 
def plus(self, a, b):
return a+b
 
def minus(self, a, b):
return a-b
 
def multiply(self, a, b):
return a*b
 
def divide(self, a, b):
return a/b
 
server = SOAPpy.SOAPServer(("localhost", 8080))
print "Serving..."
server.registerObject(Calculator())
server.serve_forever()

Related Wiki Articles

No related wiki articles found

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fCreatingE5ftrendE5fgraphicsE5fonE5fcanvasX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxpythonX qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ
User Rating: qfnZuserE5FratingQNx4E2E0000X
RDF Facets: qfnZuserE5FtagQSxpythonX qfnZuserE5FtagQSxsoapX qfnZuserE5FtagQSxsoappyX