mvantellingen / python-zeep

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

Input message with multi parts #1406

Open zmichal-anasoft opened 5 months ago

zmichal-anasoft commented 5 months ago

Hi,

I'm having troubles to send request with this kind of input message:

<message name="CallInput">
    <part name="message" element="tns:Message"/>
    <part name="header" element="tns:MessageID"/>
</message>

With type definition:

  <xsd:element name="Message" type="xsd:string"/>
  <xsd:element name="MessageID" type="xsd:long"/>

Calling the service:

 response = client.service.Call(message)

Where the message is type of string. How to append the second part the MessageID of type long? I'm always getting the "IllegalArgumentException" from the server side. Thanks,

mz.