I've been having this problem for a long time now and I cannot solve it my self. I've tried searching Google, Bing and stackOverflow too? No luck...
I'm trying to construct a soap header manually using the TXMLDocument component of Delphi 2006:
... ... ... ... ... ...
What I'm doing is that I'm constructing a new Element called 'soap:Envelope'. In this new element I'm creating three attribtues called: 'xmlns:soap', 'xmlns:xsd' and 'xmlns:xsi'.
When I'm trying to write a value in any of the three attributes then I'm getting the error below:
Attempt to modify a read-only node.
Does any one know how to do this task using the TXMLDocument?
/Brian
The following code works fine here:
You should be able to use
TXMLDocument
instead ofIXMLDocument
, it is just a component wrapper around the interface.