Topic: Connection reset by peer

Good afternoon. I ask to help. Some days I puzzle. Whether it is possible to detail somehow error Connection reset by peer? Where to dig?
On certain port localhost it is allocated wsdl.
The code client.py:

import logging
logging.basicConfig (level=logging. DEBUG)
import suds
from suds.wsse import *
messageId = "T83A1BB70FDB00DEE053AC112B07A301"
barCode = ""
ukrPostCode = ""
deliveryStatus = "SENT"
deliveryStatusComment = ""
logging.info ("[+] Create connection...")
client = suds.client. Client (' http://localhost:8002/ ')
security = Security ()
token = UsernameToken (' username ', ' userpass')
security.tokens.append (token)
client.set_options (wsse=security)
logging.info ("[+] Send request...")
result = client.service.method (x, y, z)
logging.info ("[+] Answer:")
logging.info (result)

I launch:

python client.py

I receive an error:

Traceback (most recent call last):
File "updateDeliveryStatus.py", line 28, in <module>
result = client.service.updateDeliveryStatus (messageId, barCode, ukrPostCode, deliveryStatus, deliveryStatusComment)
File "/usr/lib/python2.7/site-packages/suds/client.py", line 542, in __ call __
return client.invoke (args, kwargs)
File "/usr/lib/python2.7/site-packages/suds/client.py", line 602, in invoke
result = self.send (soapenv)
File "/usr/lib/python2.7/site-packages/suds/client.py", line 637, in send
reply = transport.send (request)
File "/usr/lib/python2.7/site-packages/suds/transport/https.py", line 64, in send
return HttpTransport.send (self, request)
File "/usr/lib/python2.7/site-packages/suds/transport/http.py", line 77, in send
fp = self.u2open (u2request)
File "/usr/lib/python2.7/site-packages/suds/transport/http.py", line 118, in u2open
return url.open (u2request, timeout=tm)
File "/usr/lib64/python2.7/urllib2.py", line 404, in open
response = self. _ open (req, data)
File "/usr/lib64/python2.7/urllib2.py", line 422, in _open
' _open ', req)
File "/usr/lib64/python2.7/urllib2.py", line 382, in _call_chain
result = func (*args)
File "/usr/lib64/python2.7/urllib2.py", line 1224, in https_open
return self.do_open (httplib. HTTPSConnection, req)
File "/usr/lib64/python2.7/urllib2.py", line 1189, in do_open
r = h.getresponse (buffering=True)
File "/usr/lib64/python2.7/httplib.py", line 1045, in getresponse
response.begin ()
File "/usr/lib64/python2.7/httplib.py", line 409, in begin
version, status, reason = self. _ read_status ()
File "/usr/lib64/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline (_MAXLINE + 1)
File "/usr/lib64/python2.7/socket.py", line 476, in readline
data = self. _ sock.recv (self. _ rbufsize)
File "/usr/lib64/python2.7/ssl.py", line 241, in recv
return self.read (buflen)
File "/usr/lib64/python2.7/ssl.py", line 160, in read
return self. _ sslobj.read (len)
socket.error: [Errno 104] Connection reset by peer