M
Michael
In my ProcessMessage function inside my SoapExtension, I need to convert the
incoming SoapUnknownHeader to the original class.
Code snippet currently looks like the following:
foreach (SoapUnknownHeader header in message.Headers)
{
if (header.Element.Name.CompareTo("ScCredentials")==0)
{
ScCredentials credentials = (ScCredentials) ((SoapHeader)header);
I get an invalid cast exception with the above. Incoming XML appears to be
correct...I must be over looking something.
I thought about using the XMLSerializer...but I am thinking there should be
a light weight way of doing this.
TIA
incoming SoapUnknownHeader to the original class.
Code snippet currently looks like the following:
foreach (SoapUnknownHeader header in message.Headers)
{
if (header.Element.Name.CompareTo("ScCredentials")==0)
{
ScCredentials credentials = (ScCredentials) ((SoapHeader)header);
I get an invalid cast exception with the above. Incoming XML appears to be
correct...I must be over looking something.
I thought about using the XMLSerializer...but I am thinking there should be
a light weight way of doing this.
TIA