Skip to content

Extending WSDL with XSD #1466

Closed Answered by alex-eri
alex-eri asked this question in Q&A
Discussion options

You must be logged in to vote

Working.

    wsdl =  zeep.wsdl.wsdl.Document(WSDL_URL, transport=transport, settings=settings )
    v3text = b'<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"  xmlns:xsd="http://www.w3.org/2001/XMLSchema" ><types>' + open('xsd/ext.xsd', 'rb').read() + b'</types></definitions>'
    
    v3doc = parse_xml( v3text , transport=transport,settings=settings )
    
    v3 = zeep.wsdl.wsdl.Definition(wsdl, v3doc, location=WSDL_URL)
 
    client = zeep.AsyncClient(wsdl=wsdl, transport=transport, settings=settings )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alex-eri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant