on 03-18-2022 11:50 AM
I am working on an iflow in SAP CPI to send data to a system which expects data in JSON format. One of the fields/key in JSON looks like below:
"system:arguments": { "msp_description": " ksweu4ow"}
I am using an message mapping and an XML-to-JSON convertor to achieve the JSON. My xsd looks like this:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:system="http://www.dummy.com" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import schemaLocation="schema1.xsd" namespace="http://www.dummy.com" />
<xs:element name="records">
<xs:complexType>
<xs:sequence>
<xs:element name="owi_ext_proj_number" type="xs:string" />
<xs:element name="cdb_project_id" type="xs:string" />
<xs:element name="project_name" type="xs:string" />
<xs:element name="owi_enterprise_project_type" type="xs:string" />
<xs:element name="owi_project_sub_type" type="xs:string" />
<xs:element name="owi_msp_online_status" type="xs:string" />
<xs:element name="cdb_classname" type="xs:string" />
<xs:element name="project_manager" type="xs:string" />
<xs:element name="cdb_objektart" type="xs:string" />
<xs:element name="start_time_fcast" type="xs:dateTime" />
<xs:element name="end_time_fcast" type="xs:dateTime" />
<xs:element name="owi_sharepoint_url" type="xs:string" />
<xs:element ref="system:arguments" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="msp_description" type="xs:string" />
</xs:schema>
and I am getting the following error while trying to import the xsd into message mapping:
Any idea how this could be fixed?
I came across this similar discussion answered by 7a519509aed84a2c9e6f627841825b5a, but I am not sure if I can find the XML schema
to download. I dont see any xml on https://www.w3.org/2001/xml.xsd. Please help!
Regards,
Faisal
Hi Faisal.
im pretty sure you have to specify the namespaces used by the files on the runtime configuration tab, it goes like this xmlns:system=http://www.dummy.com.
Regards.
Sebastián
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.