suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
173 stars 56 forks source link

Suds client use wrong port for webservice #60

Closed julyice closed 3 years ago

julyice commented 3 years ago

we have haproxy + webservice server.

  1. when our haproxy use 8081 port --> webservice, suds client can't connect to the server server = Client("http://ourproxy:8081/CL3/webservice.asmx?wsdl")

  2. when our haproxy use 80 port --> webservice, suds client get service correctly. we can use server = Client("http://ourproxy:8081/CL3/webservice.asmx?wsdl") or server = Client("http://ourproxy:80/CL3/webservice.asmx?wsdl") to get service.

after debug with wireshark, we found Client always use port 80 to request service.

could you please check this?

phillbaker commented 3 years ago

Hello, can you please confirm the package and version of suds-community that you're using?

julyice commented 3 years ago

HI Phillbaker, we found server = Client("http://ourproxy:8081/CL3/webservice.asmx?wsdl") # this is OK, use correct port. Rtninfo=server.service.RequestTaskV3(True) # when request service, it will use port 80 to request, not use 8081 to request.

version info: Name: suds Version: 0.3.5 Summary: Lightweight SOAP client Home-page: https://fedorahosted.org/suds Author: Jeff Ortel Author-email: jortel@redhat.com License: UNKNOWN Location: c:\users\admin\appdata\local\programs\python\python36\lib\site-packages Requires: Required-by:

julyice commented 3 years ago

sorry, I'm wrong. this is not suds-community lib.