Posted: Thu Feb 25, 2016 9:01 pm Post subject: JSON schema not identiifed in IIB10 Mapping node
Apprentice
Joined: 08 Jan 2010 Posts: 28
I am working on a REST API service with JSON input message in IIB10. I need to invoke a web service and hence convert the input JSON to xml for which I chose to use a schema based Mapping node conversion.
Following the instruction given in "https://www-01.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.gdm.doc/sm12023_.htm" and related links, i created an xsd for my input message and included it in the default schema of a shared library. Also created a message map in SL referencing the said xsd.
But when i reference the message map in the mapping node and save, it shows the error after mapping i/o elements
Code:
The Move input or output object $ComIbmMessageAssembly_JSON/JSON/spath('Data',2)/XXX could not be found. YYY.map /sharedlibrary1/NS/AAA line 25.
I didnt get the error when i did everything in my service i.e. not using Shared Library and when i did the MM in the service but referencing the xsd of the SL. I also faced issues when referencing Sub flows which are part of the Shared Library. The reason to post this is to verify my conclusion that as of now we cannot use the Shared Library to share Message Maps and Sub flows and understand experiences from other users.
Thanks.
Why are you using the default schema in the shared library? Have you tried using only named schemas in the shared library? _________________ MQ & Broker admin
As per my response in dwAnswers I did not encounter issues implementing REST API maps with equivalent XML schema model for the JSON in shared library referenced from the REST API project.
As noted you might have encountered an issue during moving the files with interdependency, which could have been cleared by refreshing and then building all projects.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum