469,337 Members | 7,865 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,337 developers. It's quick & easy.

How to refresh Python SOAP Server methods

I have written a simple Soap server (code given below)
My problem is that If i change the printString function to return another string say "Hello" insteadof "Hello1} I am still getting Hello1 (ie the old value)
when i run the SOap Client
I had saved & recomipled the new server & client code.Still I get the old value only.
What should I do to update the server after any change so that I get the new values coded into the server.
I am using Python 2.41 with the SOAPpy-0.12.0 SOAP library
Venks
************************************************** ******

Server Code
*************************************
Expand|Select|Wrap|Line Numbers
  1. import SOAPpy
  2.  
  3. def printString():    
  4.     return "Hello1" 
  5.  
  6.  
  7. def _runSOAPServer():
  8.     server = SOAPpy.SOAPServer(("home", 8080))
  9.     server.registerFunction(printString)   
  10.     server.serve_forever()
  11.  
  12. #if __name__ == '__main__':
  13.        _runSOAPServer()
***************************************
Soapn Client
***************************************
Expand|Select|Wrap|Line Numbers
  1. import SOAPpy
  2. server = SOAPpy.SOAPProxy("http://home:8080")
  3. print server.printString()
****************************************
Aug 16 '05 #1
2 2919
bartonc
6,596 Expert 4TB
SOAP looks very interesting to me. Does anybody have any experience here?
Feb 12 '07 #2
ghostdog74
511 Expert 256MB
does your server function have to be defined with leading underscore?
why don't you try changing _runserver to just runserver() and see how it goes?
Feb 12 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Arne Kösling | last post: by
3 posts views Thread by Peter Schaefer | last post: by
16 posts views Thread by MR | last post: by
reply views Thread by Samuel Zallocco | last post: by
31 posts views Thread by Bryan Dickerson | last post: by
reply views Thread by Rafal Zawadzki | last post: by
3 posts views Thread by Ivan Zuzak | last post: by
1 post views Thread by libsfan01 | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.