Open bghuang opened 6 years ago
Issue resolved:
session_header_type = client.get_element('ns0:sessionHeader')
session_header2 = session_header_type(sessionId=session_header.sessionId,wsdlVersion=session_header.wsdlVersion,sessionNVs=session_header.sessionNVs)
workorder_response = client.service.WorkOrderIntf_submit(wo_data,True,_soapheaders=[session_header2])
Yeah, SOAP headers are described in documentation, so this issue can be closed.
I already performed login successfully. But when I performed operation WorkOrderIntf_submit the xml file generated without tag.
Current XML request generated with header:
But actually expect
Tag "sessionHeader" is missing.
code related:
How can I control to generated tag "sessionHeader" in tag "soap-env:Header"?