Python Soap Wsdl Works In Soappy But Not Zsi Or Zeep
I need a python SOAP library that can handle multipart attachments. My understanding is that this is not supported by SOAPpy or suds but that it is supported by ZSI and zeep. Howev
Solution 1:
Okay. I fixed it!
So, I did some digging, and I found that this is a common problem with Axis generated WSDL’s. The DataHandler type is not supposed to be in the tns1 namespace. It is supposed to be in the apachesoap namespace. So, I changed the namespace in the WSDL, and it still did not work.
So, I did some more digging, and I found that “DataHandler is a platform-specific type that no platform other than Axis is going to understand,” and that the workaround is to change it to a type of byte.
So, here is the section of the WSDL that I have modified locally and is working now:
<wsdl:types><schemaxmlns="http://www.w3.org/2001/XMLSchema"targetNamespace="https://nva1wss.webex.com/nbr/services/NBRStorageService"><importnamespace="NBRStorageService"/><importnamespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexTypename="ArrayOf_tns1_DataHandler"><complexContent><restrictionbase="soapenc:Array"><attributeref="soapenc:arrayType"wsdl:arrayType="soapenc:byte[]"/></restriction></complexContent></complexType></schema></wsdl:types>
And, BOOM! It works! I am now able to download and handle attachments as described here: http://docs.python-zeep.org/en/master/attachments.html
Post a Comment for "Python Soap Wsdl Works In Soappy But Not Zsi Or Zeep"