zeep

Introspecting a WSDL with Python Zeep

左心房为你撑大大i 提交于 2019-12-03 03:06:53
I am attempting to use Zeep to describe the operations and types in a given WSDL, so that a program knows the operation names, their parameter names, the parameter types, and parameter attributes. This info will be used to dynamically generate a UI for a given WSDL. What I have got so far is just the string representations of the operations and types. Using code similar to what is found in this answer . Here's an example: from zeep import Client import operator wsdl = 'http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl' client = Client(wsdl) # get each operation

Create a string array parameter with zeep?

随声附和 提交于 2019-12-01 19:07:19
I have a vendor-supplied webservice; the WSDL for a certain operation looks like: <complexType name="ArrayOf_soapenc_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/> </restriction> </complexContent> </complexType> ... <wsdl:message name="initExportDeviceRequest"> <wsdl:part name="filter" type="soapenc:string"/> <wsdl:part name="options" type="impl:ArrayOf_soapenc_string"/> </wsdl:message> ... <wsdl:operation name="initExportDevice" parameterOrder="filter options"> <wsdl:input message="impl

In Python, how to set _soapheaders for Zeep using Dictionaries?

故事扮演 提交于 2019-11-28 02:17:05
In working with a SOAP api, the wsdl spec describes the api key passed in the header in a complex namespaced structure as well as additional non-namespaced XML that relates to a paging mechanism for accessing bulk results successively: Specification : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="https://webservice_address_here"> <soapenv:Header> <ns:apiKey> <api_key>***</api_key> </ns:apiKey> <pager> <page>1</page> <per_page>100</per_page> </pager> </soapenv:Header> </soapenv:Envelope> The answer, How to set soap headers in zeep when header has multiple