Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#31 bad host and port in client.py

closed-rejected
zsi (12)
5
2005-12-15
2005-10-03
Anonymous
No

in Send method in file client.py, there is a problem
when you are not
using default port and hostname, in the serialize_xxx
branch:

*** ref/client.py Mon Oct 3 15:28:35 2005
--- ./client.py Mon Oct 3 12:05:24 2005
***************
*** 232,238 ****
self.sig_handler.sign(sw)
soapdata = str(sw)

! scheme,netloc,path,nil,nil,nil =
urlparse.urlparse(url)

# Determine transport from url if necessary
if self.transport == None and url is not None:
--- 232,238 ----
self.sig_handler.sign(sw)
soapdata = str(sw)

! scheme,netloc,path,nil,nil,nil =
urlparse.urlparse(self.url)

# Determine transport from url if necessary
if self.transport == None and url is not None:

without this, netloc is not good.
May exist more than once in this file...

Discussion

  • Logged In: YES
    user_id=711996

    def Send(self, url, opname, obj, nsdict={}, soapaction=None,
    wsaction=None,
    endPointReference=None, **kw):
    ....
    url = url or self.url

    I don't follow these comments.

     
    • assigned_to: nobody --> boverhof
    • status: open --> closed-rejected