cancel
Showing results for 
Search instead for 
Did you mean: 

Complex source structure..graphical mapping

Former Member
0 Kudos

All,

I am trying to map 'error message' field in the mapping shown below. The source message is complex strcuture. The issue that I am getting is that when I map this feild to the target structure the target field does not get populated. 'error message' field is mapped to 'text' on the target side.

Source:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema targetNamespace="http://www.xyz.com/ctmem/schema640" xmlns="http://www.xyzhttp://www.bmc.com/ctmem/schema640.com/ctmem/schema640" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <xsd:element name="fault_poll_add_condition" type="fault_type"/>

   <xsd:complexType name="error_type">

      <xsd:sequence>

         <xsd:element name="error_message" type="xsd:string" form="qualified"/>

      </xsd:sequence>

      <xsd:attribute name="major" type="xsd:string" form="qualified"/>

      <xsd:attribute name="minor" type="xsd:string" form="qualified"/>

      <xsd:attribute name="severity" type="xsd:string" form="qualified"/>

   </xsd:complexType>

   <xsd:complexType name="fault_type">

      <xsd:sequence>

         <xsd:element name="error_list" type="error_list_type" form="qualified"/>

      </xsd:sequence>

   </xsd:complexType>

   <xsd:complexType name="error_list_type">

      <xsd:sequence>

         <xsd:element name="error" type="error_type" maxOccurs="unbounded" form="qualified"/>

      </xsd:sequence>

      <xsd:attribute name="highest_severity" type="xsd:string" form="qualified"/>

   </xsd:complexType>

</xsd:schema>

Target:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema targetNamespace="http://abc.com/abc.com" xmlns:p5="http://abc.com/MM/123"

xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://abc.com/pqr">

   <xsd:import namespace="http://abchttp://abc.com/MM/123http://abc.com/MM/WM211.03"/"/.com/MM/123http://abc.com/MM/WM211.03"/"/>

   <xsd:element name="FMT_ControlM_AppFault">

      <xsd:complexType>

         <xsd:sequence>

            <xsd:element name="standard" type="p5:ExchangeFaultData"/>

         </xsd:sequence>

      </xsd:complexType>

   </xsd:element>

</xsd:schema>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vicky,

In the Source Structure the Namespace has been mentioned as Target namespace. So check whether you are using correct source structure.

Also, we are not able to find ant field name as text in the Target structure.

If possible instead of xsd format you post the structure in the tree structure as in the mapping editor.

Regard's

Preethi.

Former Member
0 Kudos

Issue resolved. My bad..I was doing the wrong mapping. Thanks for your time.

Answers (2)

Answers (2)

manigram
Active Participant
0 Kudos

Hi,

Your target XSD is incorrect , there is no such field "text" is exist. So create the field first and define the mapping.

Regards,

Manigandan

Former Member
0 Kudos

Hi Vicky,

In Target xsd I cannot see any element name = "text" field. Can you confirm it is correct target message.  Also you are creating a Message Type from Data Type or External message by importing a ".xsd" file. Please confirm.

Thanks,

Aman