Adding tags to a Header with AddressHeader.CreateAddressHeader

  • Thread starter Thread starter Francesco Leo
  • Start date Start date
F

Francesco Leo

Guest
I am trying to add some tags to the Header of a SOAP request, but I cannot insert this tag:

<ReplyTo xmlns="WS-Addressing 1.0 Namespace">
<Address>Web Services Addressing URI</Address>
</ReplyTo>

I tried to insert it like this:

string cValue = "<Address>Web Services Addressing URI</Address>";
AddressHeader oReplyTo = AddressHeader.CreateAddressHeader("ReplyTo",
"WS-Addressing 1.0 Namespace",
cValue);

But I got this result:

<ReplyTo xmlns="WS-Addressing 1.0 Namespace">&lt;Address&gt;Web Services Addressing URI&lt;/Address&gt;</ReplyTo>

How can I do it correctly? Is there any other way besides AddressHeader.CreateAddressHeader?

Thanks for your help.

Continue reading...
 
Back
Top