Choosing a Data Representation
A good number of interoperability problems happen due to developer choices, not SOAP toolkits. Here is an example of a developer choice that results in a WSDL-type definition that is hard to use:
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="xsd:schema" />
<xsd:any />
</xsd:sequence>
</xsd:complexType>
When a client sees this definition, what should they do? It appears that the WSDL has stated something along the lines of "I will send you an XSD and an XML document that corresponds to that XSD." (That wasn't explicitly stated, but that's what this snippet is trying to express.) How do I code against this? Is this code simple or complex? What do I do?
Partager