472,789 Members | 1,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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_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 =

---app_svr.py----------------------------
logging.info("non_ssl")
server = SOAPpy.SOAPServer(("localhost",2036),
)
logging.info("server created")
server.registerFunction(hello)
logging.info("functions added")
server.serve_forever()

---app_client.py---------------------------
SOAPpy.Config.debug=1
soap_url='http://localhost:2036'
proxy=SOAPpy.SOAPProxy(soap_url)
subdirname="myhello"
csv_url="http://example.com"
result=proxy.hello(SOAPpy.StringType(subdirname),
SOAPpy.StringType(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:encodingStyle="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:string">myhello</v1>
<v2 xsi:type="xsd:string">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.StringType(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.getresponse()
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_status()
File "/usr/local/lib/python2.3/httplib.py", line 231, in _read_status
line = self.fp.readline()
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 1817

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

Similar topics

0
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...
1
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...
0
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...
0
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:...
0
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...
12
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...
0
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()...
0
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...
1
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...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.