Hi,
I have a simple use case where in i have one element in response that could be any. I created below schema and added it to my response from business service. The response that we get from business service is JSON.
<xsd:element name="Root-Element">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="status" type="xsd:string"/>
<xsd:element name="error">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="errorCode" type="xsd:string"/>
<xsd:element name="errorMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:any minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Problem is the element which is supposed to be ANY does not get recognized. When i test the same schema with Response as XML than it works. It seems that native translation which is done internally by OSB have some issues.
anyone who faced similar issues when working with JSON, may be i am missing something over here?