views:

7

answers:

0

Although in normal circumstances xsi:type does not appear in a literal WSDL's SOAP message, there are still cases when type information is necessary and it will appear -- in polymorphism, for instance. If the API expects a base type and an extension instance is sent, the type of that instance must be provided for proper deserialization of the object.

My question: How valid is to send xsi:type in doc/literal format? Is it possible to find an official answer (positive/negative)? What are your thoughts?

example: <Device xsi:type="ns1:DeviceID">value</Device> instead of 

<Device>value</Device>