By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,926 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,926 IT Pros & Developers. It's quick & easy.

SOAPpy under xinetd?

P: n/a
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
service graphs
disable = no
socket_type = stream
protocol = tcp
server = /usr3/lib/
port = 2036
wait = no
user = nobody
instances = 2
nice = 10
only_from = localhost
---xinetd -d messages------------------------------
04/11/24@11:20:32: DEBUG: 20011 {cnf_start_services} Started service: graphs
04/11/24@11:20:32: ERROR: 20011 {activate_normal} bind failed (Address already in use (errno = 98)). service = graphs
04/11/24@11:20:32: DEBUG: 20011 {cnf_start_services} mask_max = 6, services_started ="non_ssl")
server = SOAPpy.SOAPServer(("localhost",2036),
)"server created")
server.registerFunction(hello)"functions added")

---app_client messages-------------------------------------
In build.
In dump. obj= myhello
In dump_string.
In gentag.
In dumper.
In dump. obj=
In dump_string.
In gentag.
In dumper.
*** Outgoing HTTP headers **********************************************
Host: localhost:2036
User-agent: SOAPpy 0.11.6 (
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:encodingStyle="" xmlns:SOAP-ENC="" xmlns:xsi="" xmlns:SOAP-ENV="" xmlns:xsd="">
<hello SOAP-ENC:root="1">
<v1 xsi:type="xsd:string">myhello</v1>
<v2 xsi:type="xsd:string"></v2>
************************************************** **********************
Traceback (most recent call last):
File "a290/", line 135, in ?
File "a290/", line 106, in main
File "/usr/local/lib/python2.3/site-packages/SOAPpy/", line 453, in __call__
return self.__r_call(*args, **kw)
File "/usr/local/lib/python2.3/site-packages/SOAPpy/", line 475, in __r_call
self.__hd, self.__ma)
File "/usr/local/lib/python2.3/site-packages/SOAPpy/", line 347, in __call
config = self.config)
File "/usr/local/lib/python2.3/site-packages/SOAPpy/", line 201, in call
code, msg, headers = r.getreply()
File "/usr/local/lib/python2.3/", line 1049, in getreply
response = self._conn.getresponse()
File "/usr/local/lib/python2.3/", line 778, in getresponse
File "/usr/local/lib/python2.3/", line 273, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python2.3/", line 231, in _read_status
line = self.fp.readline()
File "/usr/local/lib/python2.3/", line 323, in readline
data = recv(1)
socket.error: (104, 'Connection reset by peer')

6-6M21 BCA CompArch Design Engineering
Phone: (425) 294-4718
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.