I have to create a SOAP request including namespaces, the document should look like below,
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v1="http://bhargavsaidama.com/services/schema/mser/mlistr/v1"
xmlns:v11="http://bhargavsaidama.com/services/schema/gs/rblock/v1"
xmlns:v12="http://bhargavsaidama.com/services/schemas/ut/mi/v1">
<soapenv:Header>
</soapenv:Header>
<soapenv:Body>
<v1:MLreq>
<v11:IDB>
</v11:IDB>
</v1:Mlreq>
<v1:Rparams>
<v12:MsgL>32</v12:MsgL>
</v1:Rparams>
</soapenv:Body>
</soapenv:Envelope>
But I know to create an xml document without namespaces using root and element methods from xml.etree.ElementTree and I was also aware of parsing the data from xml document which has namespaces by using xpath and lxml, but I was unable to understand how to create a document like above. I tried to find tutorials , but in most of the places it is rather unclear. Can some one please help me understand this?
Thanks