IBM Support

Change TypeCode from ComplexType to SimpleType to avoid the limitation in third party XML tools or applications

Troubleshooting


Problem

If a TypeCode in the InfoSphere MDM Server webservice XSD file extends "common:TypeCode" by using "xsd:complexContent", the extended type will fail on some XML parsers due to incorrect interpretation of XML Schema 1.0.

Symptom

A customer connected InfoSphere MDM Server v9.0.1 to a Tibco BusinessWorks environment using Web Services (SOAP over HTTP protocol). The customer was running into a problem with the way InfoSphere MDM Server formatted the Code Type tags in the XML requests. The results are parsing following XML validation errors on the Tibco side:

validation error: text not allowed in empty content ({com.tibco.xml.validation}COMPLEX_E_TEXT_NOT_ALLOWED_IN_EMPTY_CONTENT) at /outputMessage[1]/p388:GetPartyResponse[1]/result[1]/party[1]/status[1]/processingStatus[1]

This happened on base type:
<xsd:complexType name="TypeCode">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="code" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

...with extended type below failing on Tibco XML parser due to incorrect interpretation of XML Schema 1.0:
<xsd:complexType name="ProcessingStatus">
<xsd:complexContent>
<xsd:extension base="common:TypeCode">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

[{"Product":{"code":"SSPVUA","label":"IBM InfoSphere Master Data Management Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Application configuration","Platform":[{"code":"PF002","label":"AIX"}],"Version":"9.0.1","Edition":"WebSphere v6.1;WebSphere v7","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21445810