cancel
Showing results for 
Search instead for 
Did you mean: 

Use of xml namespace within XI

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

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

justin_santhanam
Active Contributor
0 Kudos

Mike,

In the External Definition Input field name - Did u gave the actual xsd name?

raj.

Former Member
0 Kudos

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

Former Member
0 Kudos

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