Hi,
I need to add application specific headers and reference parameter in
the "ReplyTo" to my web service request as header elements. What is right
way to do this? I'm using framework 1.1 with WSE 2.0.
The Reference parameters are passed to me from a difference web service
request and my application specific headers are of complex type.
I tried to append the headers to RequestSoapContext.Envelope.Header . But
"RequestSoapContext.Envelope" was null, so I instantiated one.
Then the created RequestSoapContext.Envelope.Header by calling
RequestSoapContext.Envelope.CreateHeader().
I have my header elements in the form of XMLNodes and I tried to append the
nodes to the newly created RequestSoapContext.Envelope.Header by calling
RequestSoapContext.Envelope.Header.AppendChild(myh eader).
Still I couldn't append any elements to RquestSoapContext.Envelope.Header
as it is throwing an exception saying " The node to be inserted is from a
different document context.".
Is there a better way of adding header element to the soap request ?
Appreciate you feedback.
Thanks
- Sanjaya-