cancel
Showing results for 
Search instead for 
Did you mean: 

Import XSD to create datatypes

Former Member
0 Kudos

Hello Everybody-

I want to create a datatype that is specific for my outbound message,i have the xsd of that structure,i was trying to import the xsd to form a XI structure.Here is what i have done.

1.Right clicked datatypes and clicked on new

2.It asked me for a name and i gave a name "venkat".

3.Then from menu-tools, i clicked import xsd and selected my xsd. Then i got a message that Schema to be handled does not contain a definition of type venkat.

4.So what i did this time i gave the name as OrderRelease instead of venkat(as stated in step 2) and still i get the error.

I am pasting a snippet of my xsd.

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

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="OrderRelease">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="MergeNode" minOccurs="0" maxOccurs="unbounded">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="ShipNodePersonInfo" minOccurs="0">

<xsd:complexType>

<xsd:attribute name="Suffix" type="xsd:string"/>

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member91687
Active Contributor
0 Kudos

Hi Venkat,

You do not require to create a datatype. If you already have the description of the message structure in your case XSD you can use it in the Integration Repository by importing it as an EXTERNAL DEFINITION rather than re-entering it manually using the data type editor. When you already have the message in xml format, why do you need a datatype, hope the reason is clear to you now.

Regards,

Chandra

Former Member
0 Kudos

Hi venkat,

Creating an External definition and using it directly in the message interface is the best possible way. But i think when you create a data type by importing an XSD and you have given the top node name(XSD) as the name of the data type then it shouldn't given any error if the XSD is a Valid one.

VaaS

Former Member
0 Kudos

Hi,

In your SWCV, go to external definitions(in your namespace) right click, say new.

Give a name to the external defn.

In the new window that opens, select category as xsd, and in the File text box, browse your xsd file that you have saved on your local drive.

You can use this as the data type and message type.

You only need to create a message interface using this message type now.

Regards,

Smitha.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

1. you need to import it as an external definition

2. you need to close the tags

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

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="OrderRelease">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="MergeNode" minOccurs="0" maxOccurs="unbounded">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="ShipNodePersonInfo" minOccurs="0">

<xsd:complexType>

<xsd:attribute name="Suffix" type="xsd:string"/>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

moorthy
Active Contributor
0 Kudos

And use the External Definition as a Message Type for Message Interface.

Thanks

Moorthy

moorthy
Active Contributor
0 Kudos

Hi Venkat,

Import the XSD into External Definition with type as xsd.

Hope this helps,

Regards,

Moorthy