[Soap-Python] soaplib document/literal
voloviny
voloviny at gmail.com
Fri Dec 3 10:19:34 CET 2010
thanks for your answers
actually i am using soaplib server-side
soaplib generates wsdl which specifies document/literal (style/use)
soap client (VS 2008 .net generated) sends document/literal messages such
as:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Hello xmlns="aaa">
<text>hello</text>
</Hello>
</s:Body>
</s:Envelope>
... and soaplib responds with (document/encoded?):
<?xml version='1.0' encoding='utf-8'?>
<senv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
xmlns:plink="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:senc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:s1="aaa" xmlns:s0="bbb"
xmlns:s12env="http://www.w3.org/2003/05/soap-envelope/" xmlns:s12enc="
http://www.w3.org/2003/05/soap-encoding/" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:senv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">
<senv:Header/>
<senv:Body>
<s0:HelloResponse>
<s0:HelloResult>
<s0:string xsi:type="xs:string">hello</s0:string>
<s0:string xsi:type="xs:string">olleh</s0:string>
</s0:HelloResult>
</s0:HelloResponse>
</senv:Body>
</senv:Envelope>
called operation (Hello) is specified as:
<wsdl:operation name="Hello">
<soap:operation soapAction="Hello" style="document"/>
<wsdl:input name="Hello">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="HelloResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
everything is working fine (client accepts response message) ...
but the question is ... why is soaplib breaking the contract defined in
wsdl?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20101203/818ad125/attachment.html>
More information about the Soap
mailing list