On 23/05/2012 08:17, Ataulla S H wrote:
We can try suds its very lightweight soap client.
Thanks
Ataulla SH
On Wed, May 23, 2012 at 9:43 AM, ankur ~ अंकुर<ganu.u...@gmail.com> wrote:
Dear Pythoneers,
We want to butile the SOAP request request in below manner. -
In header we want to pass the wsse auth part and custom transref section
and both has different xmlns.
------------------------------------------------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"
xmlns:com="http://some.xmlns.org/.1.0/Common.xsd" xmlns:bil="
http://some.xmlns.org/Schema/Billing/1.0/Billing.xsd">
<soapenv:Header>
<com:TransRef>
<com:SourceSystemId>PORTAL</com:SourceSystemId>
<com:TxID>123456</com:TxID>
<com:BID>123456</com:BID>
</com:TranRef>
<wsse:Security xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">
<wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
">
<wsse:Username>user</wsse:Username>
<wsse:Password>pass</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<bil:getBill>
<bil:ID>1870000000</bil:ID>
</bil:getBill>
</soapenv:Body>
</soapenv:Envelope>
------------------------------------------------------------
Currently we are using pysimplesoap (
http://code.google.com/p/pysimplesoap/) module for this. The current
python code is attached.
But we are not able to pass the custom xmlns ( for bil and for com - the
very first line ) with pysimplesoap module.
*Any idea which other module we have to explore for generating the SOAP
request like above.*
Thank You,
Ankur.
_______________________________________________
BangPypers mailing list
bangpyp...@python.org
http://mail.python.org/mailman/listinfo/bangpypers
_______________________________________________
BangPypers mailing list
bangpyp...@python.org
http://mail.python.org/mailman/listinfo/bangpypers
What is the unladen airspeed velocity of a swallow in flight?
--
Cheers.
Mark Lawrence.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor