Thank you, Stanimir a lot for such a quick answer :)
I tried the first way :
 
1. Using DOM Level 1 interfaces, only:

Element e = doc.createElement("element-1");
Element e2 = e.appendChild(doc.createElement("element-2"));
e2.appendChild(doc.createTextNode("value"));
but I am not sure I've got the right result :
 
<element-1>
         <element-2> value </element-2>
</element-1>
 
because server to which I sent this xml (as SOAP header) responded with the same error as I do not send the header at all - the required header is not found...
 
Is it possible somehow to make visible sure that the Element e2 is of requierd structuer :
 
<element-1>
         <element-2> value </element-2>
</element-1>
 
Thank you a lot :)
 


Click here to donate to the Hurricane Katrina relief effort.

Reply via email to