mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.87k stars 578 forks source link

Zeep POST request returns 500 error, same XML works on Postman/SOAP UI #1418

Open adasCFI opened 1 month ago

adasCFI commented 1 month ago

Hi I am attempting to use the following WSDL (https://pilot.id3global.com/ID3gWS/ID3global.svc?wsdl)

I am attempting to use the Service - AuthenticateSP. But, with zeep the response I get back is 500 error

"2024-05-20T07:01:13.016383Z", "message": "Username unknown or incorrect password"

It is quite weird as I have tried the XML collected from the history plugin through SOAP UI/Postman and I get back a 200 Ok response with the correct response XML.

The code:

    soap_client = Client(
        wsdl=wsdl,
        wsse=wsse,
        plugins=[history],
    )
    soap_client.set_ns_prefix("ns", "http://www.id3global.com/ID3gWS/2013/04")
    service = soap_client.bind(
        service_name="ID3global",
        port_name="basicHttpBinding_GlobalAuthenticate",
    )