-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExampleServer_Mapping.map
28 lines (28 loc) · 2.11 KB
/
ExampleServer_Mapping.map
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?><mappingRoot xmlns="http://www.ibm.com/2008/ccl/Mapping" domainID="com.ibm.msl.mapping.xml" domainIDExtension="mb" mainMap="true" targetNamespace="default" version="8.0.5.0" xmlns:map="default">
<inlinedXMLSchema><![CDATA[<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Message" nillable="true" type="xsd:string"/>
</xsd:schema>]]></inlinedXMLSchema>
<input path="jar:file://!com/ibm/etools/mft/map/xsds/predefined/JsonDomainMsg.xsd" var="var"/>
<input inlinedXMLSchema="true" path="../schema_0.xsd" var="var2"/>
<output path="jar:file://!com/ibm/etools/mft/map/xsds/predefined/JsonDomainMsg.xsd" var="var1"/>
<namespaces>
<namespace kind="supplement" prefix="io" uri="http://www.ibm.com/iib/msl/json"/>
</namespaces>
<generation engine="xquery"/>
<mappingDeclaration name="ExampleServer_Mapping">
<input namespace="http://www.ibm.com/iib/msl/json" path="$var/mb:msg(JSON,assembly,JSON,Properties)" var="ComIbmMessageAssembly_JSON">
<cast castType="userDefined" path="$ComIbmMessageAssembly_JSON/JSON/Data/type('anyType')" qualifier="{http://www.ibm.com/iib/msl/json}JSONObject" ref="var"/>
</input>
<output namespace="http://www.ibm.com/iib/msl/json" path="$var1/mb:msg(JSON,assembly,JSON,Properties)" var="ComIbmMessageAssembly_JSON1">
<cast castType="userDefined" path="$ComIbmMessageAssembly_JSON1/JSON/Data/type('anyType')" qualifier="{http://www.ibm.com/iib/msl/json}JSONObject" ref="var1"/>
<cast castType="userDefined" path="$ComIbmMessageAssembly_JSON1/JSON/spath('Data',2)/any" qualifier="Message" ref="var2"/>
</output>
<move>
<input path="$ComIbmMessageAssembly_JSON/Properties"/>
<output path="$ComIbmMessageAssembly_JSON1/Properties"/>
</move>
<assign value="If you see this response your test succeeded!">
<output path="$ComIbmMessageAssembly_JSON1/JSON/spath('Data',2)/Message"/>
</assign>
</mappingDeclaration>
</mappingRoot>