KenyaDonDraper / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

How to add custom xmlns in header with dictionary #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?

How to add custom xmlns in header with dictionary.

We are adding dictionaries for adding the header part. 
Eg. 
client['com:TransRef'] = {
        'com:SystemId': 'PORTAL',
        'com:TxID': '20012001161378998',
        'com:BID': '123456789'
}
Now for this section we want to add the xmlns other then what we have specified 
at the top. Attached the python code.

Eg. This is generated from above code.
<com:TransRef>
    <com:BID>123456789</com:BusinessID>
    <com:TxID>20012001161378998</com:TxID>
    <com:SystemId>PORTAL</com:SourceSystemId>
</com:TransactionReference>

What we want ( we want to add the custom xmlns for this specific request in 
header part.)
<com:TransRef xmlns="http://xmlns.abc.org/Schema/Common.xsd">
    <com:BID>123456789</com:BusinessID>
    <com:TxID>20012001161378998</com:TxID>
    <com:SystemId>PORTAL</com:SourceSystemId>
</com:TransactionReference>

What version of the product are you using? On what operating system?
Version : 1.05a
OS : Open Suse 11.

Please provide any additional information below.
Added the python code which we are using.

Original issue reported on code.google.com by ganu.u...@gmail.com on 18 May 2012 at 1:23

Attachments: