I need to create a XML string from DOM which will be sent across to a web service. I developed the following code which will create a XML string:
This is the output:
Following are the queries:
(1) The attribute namespaces for SOAP Envelope is added correctly but not in SOAP Header and SOAP Body
(2) How to complete the SOAP header tag in the beginning itself. I must complete the header tag like this <SOAP-ENV:Header />
(3) How to remove the standalone attribue in the xml header
(4) How can i found out the DOM levl used?
(5) Is this the correct way for appending SOAP headers? If not please direct me a correct way.