cancel
Showing results for 
Search instead for 
Did you mean: 

Can we refer XSD from other namespaces?

madanmohan_agrawal
Contributor
0 Kudos

Hi,

Can we refer XSD from other namespaces?

Ex.

urn://abc1 --> XSD1, XSD99

urn://abc2 --> XSD4

XSD1 is refering XSD99. Its fine. But can XSD4 refer XSD99?

Br,

Madan Agrawal

NOTE: XSDs are imported to External Definition.

Accepted Solutions (0)

Answers (7)

Answers (7)

madanmohan_agrawal
Contributor
0 Kudos

solved

madanmohan_agrawal
Contributor
0 Kudos

Hi Farooq,

How can you import the ED into MT???

Br,

madan

former_member240483
Contributor
0 Kudos

U dont need to create MT ..directly u can use in while creating message interface..

If open the ED there is one message tab ..in that tab u can c message types u can directly use this message while creating MI.

madanmohan_agrawal
Contributor
0 Kudos

Solved.

Former Member
0 Kudos

Reffer this link also :

http://help.sap.com/saphelp_nw04/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm

//Contents....

Example

You want to import an XSD document myMessage to the Integration Repository; this document references three other XSD documents myStr1, myStr2, and myStr3 by using the <include> statement. One option is to first import myMessage. The External References tab page then shows that three documents are referenced and that these documents are not yet in the Integration Repository. Next, create further external definitions for myStr1, myStr2, and myStr3 in the same namespace and specify the source for each of these documents. If the source is not contained in the document itself, you will find it in the referencing document. If you refresh the display of the external definition for myMessage, the External References tab page shows that the documents have been found in the Integration Repository. You can then navigate to the other referenced external definitions in the Integration Repository by double clicking.

Thanks

farooq

Former Member
0 Kudos

No ALl XSD's should be in the same namespace.

There can be a solution...Create on Canonical namespcae...it will contains all your XSD's including thos XSD's that are going to refer others XSD's.

Later you can use this structure in your MT, mappings etc that will reside in other namespace.

thanks

farooq.

madanmohan_agrawal
Contributor
0 Kudos

Thanks Farooq,

Br,

Madan

prateek
Active Contributor
0 Kudos

I think the reference outside the namespace cannot be determined properly. U should import XSD99 in urn://abc2 too

Regards,

Prateek

Former Member
0 Kudos

Hi Agrawal,

No need to be the same,Namespaces under SWCV are just organizational structures where you can hold all data that belong to the same resource (meaning, have the same namespace) in the same place. And by default all message types you create in the Namespace will have its value (you can change that, though, creating message types with entirely different namespaces from the Namespace where they are included).

The best practice would be to create another namespace with the same namespace of external definition, just for it to be easier to find the resources data, when you want to browse it. But there is no strict technical need for that, no.

Regards,

Ramesh.