Hi,
I have a SoapExtension that adds a SoapHeader to all outboundmessages. This works fine, but I don't see a way to control thenamespace of the emitted header. Here is what I'm doing:
I have created a subclass of SoapHeader ('MyHeader') and thisclass is in a defined namespace. I then create an instance ofthis class within my SoapExtension (also in a defined namespace)and add it to outbound messages using something like:SoapMessage.Headers.add(myHeader).
The soap messages coming out of my SoapExtension have the header,and they look like this:
<soap:Header><myHeader soap:actor="myActor"xmlns="http://tempuri.org/">
I need to place 'myHeader' into a real namespace. Is thispossible from within my SoapExtension, and how? I'd like avoiddoing this via the DOM if possible (I'm lazy!).
Thanks much,
Dave
--------------------------------
From: Dave Buxbaum
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>bCa5SLVQaEyyB+OjM8Hd7w==</Id>