cancel
Showing results for 
Search instead for 
Did you mean: 

XSD showing many messages while mapping

hemant_chahal
Contributor
0 Kudos

Hi experts

Can anybody please tell me how to create a single message from one

xsd file(Imported in EXternal Definition) having multiple messages

I get the dialog box as :

Imported scheme has multiple global elements. Select the global element to be used in the source or target message

so i have to select one message from list and create many mappings, While i want only one mapping for one xsd.

Points would be rewarded for help for sure.

Edited by: Hemant Chahal on Mar 7, 2008 4:30 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please make one message as global and reimport the xml file

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Hemant,

I think after doing the validations in xsl your xslt program is reading the value only.I think this is the problem in your scenario.Thus it is truncating the node name (xml tags). Thus instead of using statement <xsl:value-of select="."/> you can use <xsl:copy-of select="."> which restroes the node as well as its value.

Just check it out.

Hope this will help you

Sushama

Former Member
0 Kudos

Hi Hemant,

when you import your XSD file in your External Definition, choose the option All elements contained.

then choose this External Definition in your message mapping..........then i think you will have one mapping for your one external definition.

Regards,

Rajeev Gupta

Former Member
0 Kudos

hi hemant,

try to nest the messages,

<?xml version="" namespace="">

<main>

<m1>

<m2>

<m3>

</m3>

</m2>

</m1>

</main>

or just edit the XSD with the data types included in just one <main> tag

suppose u have <main><m1>....</m1></main>

make it as <main>.....</main>

create all elements under on tag name.

hope this should work.

Thanks & Regards,

Rama Krishna

Edited by: rama krishna talluri on Mar 7, 2008 12:07 PM