Skip to Content
author's profile photo Former Member
Former Member

Use of xml namespace within XI

I'm trying to use XI to create an XML document that contains multiple namespaces. Basically the target XML document was extended from a base document, and the extensions were created under a new namespace. I don't see a way to change the context of which namespace I want to use, if I use the basic message mapping tool.

Does anyone know if this is possible?

If so how do you change the reference?

Is this type of functionality beyond the scope of the message mapping tool? (do I have to use an XSLT transform or java program to accomplish?)

Any thoughts would be appreciated!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Mar 31, 2008 at 08:47 PM

    You cannot create a message type with different name spaces within XI.

    You have to create a WSDL with a seperate tool (like XML Spy) and upload it to XI repository.

    Another aproach is creating the XML structure with graphical mapping tool and change the namespaces for some elements with XSLT or java mapping in an additional mapping step.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 29, 2008 at 04:00 AM

    Hi, Mike:

    I did not get you for this question.

    Do you mean that your target message structure is based on imported schema file ? like XSD, DTD file.

    Please clarify.

    if your answer is yes, then those schema file can be include another schema file, messages are defined in those schema file and can be referred by message interface. Necessary Namespace should be defined in those file, usually on the header part.

    Regards.

    Liang

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2008 at 04:07 PM

    Liang -

    Yes, the target message structure is based on an imported schema file.

    The imported schema is pretty complex, and contains about a dozen imported XSD's.

    I have imported each file to resolve the external references, however, when I try and create a mapping object I import the root XSD as the target and only the root shows up as the mapping window, no lower level fields are visible.

    Do you know if XI supports included files for the XSD defintion?

    IF so, how can you see all of the fields?

    Thanks for your help!

    - Mike

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi, Mike:

      If you have file1.xsd, and file2.xsd

      In your file1.xsd, you referenced file2.xsd.

      You need to import both xsd.

      In the "source" field of external definition file2.xsd, you need to type in the exact path that you had seen in step2 for file2.xsd, relative path is also OK. e.g. "file2.xsd"

      In the External References tab of file1.xsd you should see file2.xsd.

      I can not access my system validate what I mentioned above, this is based on what I can recall.

      Regards

      Liang

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.