473,394 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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
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 3044
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

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

Similar topics

0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
2
by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next...
3
by: Peter Schaefer | last post by:
Hello! I'd like to write a SOAP client and a SOAP server in Python. Is SOAPy still the way to go, or are there better methods? Regards,
16
by: MR | last post by:
my soap messages to a remote site are failing. as far as i can tell the only differences between what my SOAP message looks liek and what they want are in the SOAP envelope SInce they don't have a...
0
by: Samuel Zallocco | last post by:
Hi all, I've a problem with PHP5 + PEAR::SOAP. I Have the following 2 script that implements a simple web service: The Server Code running on WinXP + PHP5 + Apache 2.x:...
31
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our...
0
by: Rafal Zawadzki | last post by:
Hi. I tried earlier to write python zsi mail list, but nobody answered. I am using ZSI 1.7/2.0rc1 with TTPro Soap SDK. The wsdl file can be found here: http://demo.seapine.com/ttsoapcgi.wsdl ...
3
by: Ivan Zuzak | last post by:
Hello, My Python application calls web services available on the Internet. The web service being called is defined through application user input. The Python built-in library allows access to...
1
by: libsfan01 | last post by:
Hi all Can anyone explain the relationship between SOAP and XMLHttpRequest in Javascript? What actually is SOAP? and how does it relate to the process of transferring data client-side through...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.