N
nick.fletcher
Ive got a comms channel (its actually a WCF channel between a desktop
amd a pocketPc) which is using standard SOAP12 over HTTP to
communicate.
The messages represent data transfer objects and Im extanding these
using partial classes on the client side to add in the business logic.
This is all prety simple and works fine. What Im having a problem with
is the deserialisation. The message I want to use is sent as raw XML
enclosed within the WCF message and so I deserialise it manually. The
problem is that in order to do this I need to know the type which I
want to deserialise too - which makes for quite clunky procedural code
What I would like to do is deserialize my XML to a base class and then
invoke an abstract method on this. The problem occurs when i try to
deserialize to the base type and I get a "There is an error in XML
document (1,2)" error. Ive tried adding the [XMLRoot("MyBaseType")]
attribute to the derived classes but this has no effect
Any ideas?
amd a pocketPc) which is using standard SOAP12 over HTTP to
communicate.
The messages represent data transfer objects and Im extanding these
using partial classes on the client side to add in the business logic.
This is all prety simple and works fine. What Im having a problem with
is the deserialisation. The message I want to use is sent as raw XML
enclosed within the WCF message and so I deserialise it manually. The
problem is that in order to do this I need to know the type which I
want to deserialise too - which makes for quite clunky procedural code
What I would like to do is deserialize my XML to a base class and then
invoke an abstract method on this. The problem occurs when i try to
deserialize to the base type and I get a "There is an error in XML
document (1,2)" error. Ive tried adding the [XMLRoot("MyBaseType")]
attribute to the derived classes but this has no effect
Any ideas?