I am having a problem in that a Polymorphic value passed in via SOAP (and returned) gets marshalled to it's base class, rather than to the specialized type.
The SOAP XML snippet looks like:
<parameters><type>Double</type><definitionId>1</definitionId><value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:doubleValue"><value>200.0</value></value></parameters>
My problem is that I am getting a Value (the base class) instance in parameters.value instead of a DoubleValue.
Now my understanding is that the xsi:type should have given the unmarshaler the information that it should unmarshal value to the child class DoubleValue, and not the parent Value.
Just a note - this is slightly confusing as the value 200.0 will ultimately be stored in parameters.value.value and should be of type DoubleValue which extends Value.