Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OSB : Using <xsd any> while parsing json response

3236214Jul 15 2016 — edited Aug 8 2016

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?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2016
Added on Jul 15 2016
9 comments
2,002 views