python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Input message with multi parts

Open zmichal-anasoft opened this issue 1 year ago • 0 comments

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.

zmichal-anasoft avatar Jan 24 '24 08:01 zmichal-anasoft