471,854 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

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
************************************************** ******

Server Code
Expand|Select|Wrap|Line Numbers
  1. import SOAPpy
  3. def printString():    
  4.     return "Hello1" 
  7. def _runSOAPServer():
  8.     server = SOAPpy.SOAPServer(("home", 8080))
  9.     server.registerFunction(printString)   
  10.     server.serve_forever()
  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 2961
6,596 Expert 4TB
SOAP looks very interesting to me. Does anybody have any experience here?
Feb 12 '07 #2
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 NeoPa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.