SOAP web services using python. Would like to change the Envelope Document using Plugin before sending it using suds -
SOAP web services using python. Would like to change the Envelope Document using Plugin before sending it using suds -
my current soap request sent via suds.client looks this:
<soap-env:envelope (some name space uris)> <soap-env:header /> <soap-env:body> <ns5:savemodule> <request xsi:type="ns3:savemodule"> <module xsi:type="ns4:module"> <modulename xsi:type="ns1:string">test</modulename> </module> </request> </ns5:savemodule> </soap-env:body> </soap-env:envelope>
this request fails on server. if take same xml request , massage , send visa soapui, works fine. did was
<soapenv:envelope (some name space uris)> <soapenv:header /> <soapenv:body> <savemodule> <request> <module> <modulename>test</modulename> </module> </request> </savemodule> </soapenv:body> </soapenv:envelope>
as see, had alter soap-env soapenv, modify node ns5:savemodule savemodule , remove attributes such xsi:type other kid nodes
how can , modify request in above manner using suds.client. documentation suggests utilize plugin client using marshalled method. unsuccessful
any help appreciated
regards, sd
python suds
Comments
Post a Comment