H
Henrik Dahl
Let's assume I make a SoapHeader in my WebService as e.g. class A:
SoapHeader{} and a specialized SoapHeader: class B : A {}. If I've declared
the SoapHeader in the .asmx file to be of type A and pass a B to it, the
instance of B does not get marshalled. Instead the header is just null on
the WebService side. This error only exists in the Compact .NET Framework.
In the complete .NET Framework it works correct, i.e. marshalls the B
instance. I use the XmlInclude(typeof(B)) attribute on A of course.
Do some of you have a suggestion for how to overcome this shortcoming?
Best regards,
Henrik Dahl
SoapHeader{} and a specialized SoapHeader: class B : A {}. If I've declared
the SoapHeader in the .asmx file to be of type A and pass a B to it, the
instance of B does not get marshalled. Instead the header is just null on
the WebService side. This error only exists in the Compact .NET Framework.
In the complete .NET Framework it works correct, i.e. marshalls the B
instance. I use the XmlInclude(typeof(B)) attribute on A of course.
Do some of you have a suggestion for how to overcome this shortcoming?
Best regards,
Henrik Dahl