@@ -65,58 +65,6 @@ def test_parse():
6565 assert operation .output .signature (as_output = True ) == 'xsd:string'
6666
6767
68- def test_empty_input_parse ():
69- wsdl_content = StringIO ("""
70- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
71- xmlns:tns="http://tests.python-zeep.org/tns"
72- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
73- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
74- targetNamespace="http://tests.python-zeep.org/tns">
75- <types>
76- <xsd:schema targetNamespace="http://tests.python-zeep.org/tns">
77- <xsd:element name="Request" type="xsd:string"/>
78- <xsd:element name="Response" type="xsd:string"/>
79- </xsd:schema>
80- </types>
81-
82- <message name="Input"/>
83- <message name="Output">
84- <part element="tns:Response"/>
85- </message>
86-
87- <portType name="TestPortType">
88- <operation name="TestOperation">
89- <input message="Input"/>
90- <output message="Output"/>
91- </operation>
92- </portType>
93-
94- <binding name="TestBinding" type="tns:TestPortType">
95- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
96- <operation name="TestOperation">
97- <soap:operation soapAction=""/>
98- <input>
99- <soap:body use="literal"/>
100- </input>
101- <output>
102- <soap:body use="literal"/>
103- </output>
104- </operation>
105- </binding>
106- </definitions>
107- """ .strip ())
108-
109- root = wsdl .Document (wsdl_content , None )
110-
111- binding = root .bindings ['{http://tests.python-zeep.org/tns}TestBinding' ]
112- operation = binding .get ('TestOperation' )
113-
114- assert operation .input .body .signature (schema = root .types ) == 'soap-env:Body()'
115- assert operation .input .header .signature (schema = root .types ) == 'soap-env:Header()'
116- assert operation .input .envelope .signature (schema = root .types ) == 'soap-env:envelope(body: {})'
117- assert operation .input .signature (as_output = False ) == ''
118-
119-
12068def test_parse_with_header ():
12169 wsdl_content = StringIO ("""
12270 <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
0 commit comments