cancel
Showing results for 
Search instead for 
Did you mean: 

XSD include tag

Former Member
0 Kudos

Hello,

Can someone please explain <xsd:include> tag with example??

Also specify the constraints regarding the usage of the same.

Thanx.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You are not supposed to use XSD include while designing data types/ msg types for using it in XI.

Former Member
0 Kudos

Let me explain what am i trying to do.....

I have created one "Address.xsd" and one "vendor.xsd".

But in Vendor.xsd file i want to include "address.xsd" file using <include> tag.

now these two xsd files need to be imported into XI under "External Definations".

So can i use <include> tag into these xsd file??

If Yes, How??

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Refer this thread and check the answer by Uma Maheswari,

Regards

Bhavesh

Former Member
0 Kudos

It is just not about importing XSD files into XI. I need to know whether i can import xsd file which has <xsd:include> tag in it.

bhavesh_kantilal
Active Contributor
0 Kudos

Read the thread it describes exactly that!

How to import dependent XSD's.

Regards

Bhavesh

Former Member
0 Kudos

I m not getting anything under External Reference tab to copy.

Former Member
0 Kudos

Am not sure. Just try this.

Delete both the imported XSDs. First import the vedor xsd and then improt the address xsd. The link I guess should be automatically established.

BTW, if you can give the XSD, I can give it a try from my system. You can find my mail id in my business card.

Regards,

Jai Shankar

Message was edited by:

Jai Shankar

bhavesh_kantilal
Active Contributor
0 Kudos

><i>The link I guess should be automatically established.</i>

Doesnt happen automatically. You need to do the steps as described in the thread I have pointed.

Regards

Bhavesh

Former Member
0 Kudos

Bhavesh,

Quote from SAP help

Procedure
1. To import a data type from an XSD file to the Integration Repository, you must first check whether the XSD file contains more than one global data type definition. You must only import one definition in each import.

2. Use the Integration Builder to create a data type with the same name as the data type to be imported from the XSD file. If there is a targetNamespace in the XSD file, it must correspond to the Repository namespace where you are creating this data type.

3. Choose Tools ® Import XSD and select an XSD file from the dialog that follows.

If there are other global data type definitions in the file, the processing log reports that data type definitions have been ignored.

4. If the imported data type contains references to other data types, these are displayed in a message. To import these data types, repeat the procedure in the previous two steps

Here these steps are not included. Hence assumed the link is established automatically.

Regards,

Jai Shankar

Former Member
0 Kudos

If we import a WSDL file we get the source string under external reference which can be used.

But with xsd files we do not get anything under external reference.

So if we require to import two dependent XSD files, what should be the procedure?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi anisha Sarode,

This design approach is the mirror image of the first approach:

<?xml version="1.0"?>

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

targetNamespace="http://www.library.org"

xmlns="http://www.library.org"

elementFormDefault="qualified">

<b><xsd:include schemaLocation="Book.xsd"/></b>

<xsd:element name="Library">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="BookCatalogue">

<xsd:complexType>

<xsd:sequence>

<xsd:element ref="Book"

maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

with regards

Pradeep N