Skip to Content

Two external definitions for one message

Hi experts,

I've got one problem:

I'm developing a new sender interface, other firm gave me 2 xsd schemas to use as external definition.

The second schema is in fact a sub-node of the first schema.

What is the correct way to manage this two schemas in XI?

I've tried to cut and paste second schema into first, but no luck because second schema has different names of the xml tags.

Now I've imported the 2 schemas as external definitions, but I think I must link them, but I don't know how.

Could you please help me?

thanks

Fabio

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 19, 2011 at 09:18 AM

    Hi,

    Let's say you have two xsd's with names 1.xsd(main xsd) and 2.xsd(subnode)

    Import both the messages in external definitions and Save.

    Now Check External references tab of 1.xsd . it will show 2.xsd

    Now go to 2.xsd and add name 2.xsd in source tab of that definition. and now save and activate

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Kiran,

      assuming xml statement are right, I've tried what you said and now the two external definitions are linked.

      Now I'm creating Message Interface, in definition I put first external definition, it's right?

      Problem is that in the message structure I see the second schema into a node of the first, but is defined as a simple element, when in fact is a schema that contains subelements.

      What do you think is the problem?

  • avatar image
    Former Member
    Dec 19, 2011 at 11:02 AM

    hello,

    Check the link below.

    XSD with multiple import/includes

    Regards,

    Phani

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 19, 2011 at 01:07 PM

    Hi,

    problem solved with your help, the last problem was only a typing error, now it's ok.

    Thank you!!

    Add comment
    10|10000 characters needed characters exceeded