473,702 Members | 2,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOAPpy under xinetd?

I'm trying to setup a SOAPpy service under xinetd. Has someone done
this sort of thing? Didn't find it from google searches or
documentation. This is probably a sockets-level issue, but I was
hoping someone in python land had done this with SOAPpy before.

The server works fine as simple SOAP server and client pair on
localhost. But when I try to put it under xinetd, it fails. Using
"xinetd -d" I can see it is failing due to address in use. Does this
represent xinetd and SOAPServer competing for use of the port?

Perhaps as a result of failed binding, and perhaps as a separate
issue, the client fails on connection refused. I have hosts.deny
ALL:ALL. For a non-well-known service, I don't see how to add my new
service to hosts.allow. Even when I make an entry in /etc/services,
and provide an entry in hosts.allow, I still get the connection
reset.
---xinetd.d/graphs-----------------
service graphs
{
disable = no
socket_type = stream
protocol = tcp
type = UNLISTED
server = /usr3/lib/app_svr.py
port = 2036
wait = no
user = nobody
instances = 2
nice = 10
only_from = my.clients.here localhost
}
---xinetd -d messages------------------------------
04/11/24@11:20:32: DEBUG: 20011 {cnf_start_serv ices} Started service: graphs
04/11/24@11:20:32: ERROR: 20011 {activate_norma l} bind failed (Address already in use (errno = 98)). service = graphs
04/11/24@11:20:32: DEBUG: 20011 {cnf_start_serv ices} mask_max = 6, services_starte d =

---app_svr.py----------------------------
logging.info("n on_ssl")
server = SOAPpy.SOAPServ er(("localhost" ,2036),
)
logging.info("s erver created")
server.register Function(hello)
logging.info("f unctions added")
server.serve_fo rever()

---app_client.py---------------------------
SOAPpy.Config.d ebug=1
soap_url='http://localhost:2036'
proxy=SOAPpy.SO APProxy(soap_ur l)
subdirname="myh ello"
csv_url="http://example.com"
result=proxy.he llo(SOAPpy.Stri ngType(subdirna me),
SOAPpy.StringTy pe(csv_url),
)

---app_client messages-------------------------------------
In build.
In dump. obj= myhello
In dump_string.
In gentag.
In dumper.
In dump. obj= http://example.com
In dump_string.
In gentag.
In dumper.
*** Outgoing HTTP headers *************** *************** *************** *
POST / HTTP/1.0
Host: localhost:2036
User-agent: SOAPpy 0.11.6 (http://pywebsvcs.sf.net)
Content-type: text/xml; charset="UTF-8"
Content-length: 521
SOAPAction: "hello"
*************** *************** *************** *************** ************
*** Outgoing SOAP *************** *************** *************** *********
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingSty le="http://schemas.xmlsoap .org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap .org/soap/encoding/" xmlns:xsi="http ://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/" xmlns:xsd="http ://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<hello SOAP-ENC:root="1">
<v1 xsi:type="xsd:s tring">myhello</v1>
<v2 xsi:type="xsd:s tring">http://example.com</v2>
</hello>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
*************** *************** *************** *************** ************
Traceback (most recent call last):
File "a290/hello_client.py ", line 135, in ?
main(pargs)
File "a290/hello_client.py ", line 106, in main
SOAPpy.StringTy pe(csv_url),
File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line 453, in __call__
return self.__r_call(* args, **kw)
File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line 475, in __r_call
self.__hd, self.__ma)
File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line 347, in __call
config = self.config)
File "/usr/local/lib/python2.3/site-packages/SOAPpy/Client.py", line 201, in call
code, msg, headers = r.getreply()
File "/usr/local/lib/python2.3/httplib.py", line 1049, in getreply
response = self._conn.getr esponse()
File "/usr/local/lib/python2.3/httplib.py", line 778, in getresponse
response.begin( )
File "/usr/local/lib/python2.3/httplib.py", line 273, in begin
version, status, reason = self._read_stat us()
File "/usr/local/lib/python2.3/httplib.py", line 231, in _read_status
line = self.fp.readlin e()
File "/usr/local/lib/python2.3/socket.py", line 323, in readline
data = recv(1)
socket.error: (104, 'Connection reset by peer')

--
ha************@ boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718
Jul 18 '05 #1
0 1873

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2735
by: Vivek | last post by:
Hi, Can anyone provide me with sample code that will allow me to use SOAPpy with a WSDL file using HTTP basic authentication? The only thing I've been able to find on the net is SOAPpy.URLopener. However, I am unclear what the relationship is between SOAPpy.URLopener and SOAPpy.WSDL is. Is it as straightforward as this? > from SOAPpy import WSDL
1
3976
by: Harry George | last post by:
Normally the SOAP Servers are designed to take control of a port and run their own sockets via inheritance from SocktServer. But under inetd and xinetd, the port is controlled elsewhere and the service just gets the stdin/stdout. I need to configure (or tweak) one of the SOAP servers to use that connection. Has anyone done this with any of the above named SOAP servers? Recommmendations or hints if I try it myself?
0
1938
by: elsarfhem | last post by:
I have a problem with soappy when i try to send a python dictionary... i send something like this {'1':2,'3':4} and it returns something like this {'1':, '3':4} function on the server is simply an echo: def echo(arg): return arg i post the soap message, it may be useful... *** Incoming HTTP headers **********************************************
0
1787
by: Sameer Deshpande | last post by:
Hi, I am using python SOAPpy module to call a web service. Call to web service gets executed successfully. I am facing a problem if the call to WS results into redirect. I get "HTTPError: <HTTPError 302 Moved Temporarily>" If I enable the debug info, I do get the new redirected url. How do I divert my WS request to new url?
0
1017
by: benboals | last post by:
Note: this is in reply to a message from August 2 which i found searching for help on my own problem. I couldn't seem to reply to it, but a friend suggested that simply using the same subject would put it in that thread. In case he's wrong, i quoted the previous comments . Odd-R. wrote: > I use the following piece of code to contact a webservice, > and read a wsdl file. > > from SOAPpy import WSDL > from SOAPpy import URLopener
12
3285
by: Jos Vos | last post by:
Hi, I'm trying to figure out how to implement a XML-RPC server that is called by xinetd i.s.o. listening on a TCP socket itself. I already have implemented a stand-alone XML-RPC server using SimpleXMLRPCServer, but I now want something similar, that is started via xinetd (i.e. reading/writing via stdin/stdout). Any hints or code examples?
0
1336
by: linuxprog | last post by:
hi all i'm building a webservice client with soappy when i send some informations it's returns an error here is the informations that generates the error var = SOAPpy.structType() var._addItem("code", u"XysZjd") var._addItem("value", 1) when i send the var variable SOAPpy prints this
0
1971
by: pion | last post by:
Hello I'm trying to make a web service client in python, and so to start out, I found this simple example that are supposed to parse an wsdl file using SOAPPy. I'm using Windows and got SOAPPy installed using the Enthought Python Distribution. I've tried several wsdl files and commenting out parts of the code etc. but I just can't twist my head around what's the problem here. Any help would be greatly appreciated. soappyTest.py: from...
1
5985
by: Christof Winter | last post by:
I am trying to use a webservice with SOAPpy: import SOAPpy intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl" intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl) The resulting error message is posted below. If I understand it right, XMLSchema.py complains about the imported XSD namespace being the same as the existing targetNamespace.
0
8739
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8652
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9234
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9089
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8983
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5907
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2036
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.