Import XSD in XI 3.0 - How to?

Hi
I have a question regarding import of an XSD in XI 3.0. The case is that I would like to import an XSD as an "External Definition" but the XSD has references to other XSD's and when I import the top level XSD, XI ignores the references and makes the "External Definition" useless.
Do I have to build my own XSD by copping parts from all the XSD's involved in defining the XML structure or is there away to do this in XI that I have not yet seen?
I tried to import the structure into XMLSPY and it worked beautifully. There I am able to drill down the different levels of the XML structure and to see data element definitions. Should XI not work the same way?
The top level XSD is located at: http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieLax.xsd
Regards
Christian

Hi Stephan
Thank you for your answer. We have followed your instructions but did only get half a success. Here is what we have done:
1) Created "External Definitions" for all related xsd-files with the same name as the xsd-filename and in our own namespace. Our namespace is different from those specified in the xsd-files. We have not change the namespaces in the xsd-files.
2) Maintained the "source"-field with the name for the xsd-file and not the url as specified in our answer. When we used the filename only we got a value the field "name" in the "External References".
3) We made a message mapping and imported the "top-level-xsd-element" from the "External Definition". This resulted in only the top level element and nothing else. What we expected was the possibility to drill down through the complete structure.
What did we doe wrong? Perhaps I could talk you into spending 10 min. and try it your self? This url leads to a zip file with all the related xsd files: http://rep.oio.dk/ubl/xml/schemas/0p71/documentation/resources.html
Do you know if it will be possible to make references across namespaces in a later version of XI?
Regards
Christian

Similar Messages

  • How to import xsd file inside XSD folder in Oracle SOA 11g

    Hi,
    I need to import xsd file inside XSD folder provided by the deafult structure while creating SOA project. When I used to import the web resource it imports it inside public_html folder not inside XSD folder.
    How to do that ?
    Thanks

    Hi,
    Are you using Jdeveloper on a windows machine? If you are then this might be a useful tip.
    Click Tools -> External Tools. It will prompt you to setup common tools. Let it do this. Now when you right click on your project you will get an Explore Directory option. I use this a lot when copying XSD’s between projects.
    Once you have done this you need to click the refresh button in the Application Navigator to ensure the new files appear.
    Robert

  • How to import  XSD?

    Hi Friends,
    I have export the IDOC to XSD. If i want to import XSD, i get this Error:
    - <b>Schema to be handled does not contain a definition of type ....</b>
    How do you import a XSD structure?
    Thanks in advance
    Fatih

    Can you test it?
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="urn:cts-com:BPM" xmlns="urn:cts-com:BPM" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <xsd:element name="BANK_CREATE01">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element name="IDOC" type="BANK_CREATE.BANK_CREATE01"/>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:complexType name="BANK_CREATE01.E1BANK_CREATE">
              <xsd:annotation>
                   <xsd:documentation>Header segment</xsd:documentation>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="BANK_CTRY" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Bank country key</xsd:documentation>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:maxLength value="3"/>
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="BANK_KEY" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Bank Keys</xsd:documentation>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:maxLength value="15"/>
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="BANK_METHOD" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Check digit calculation method</xsd:documentation>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:maxLength value="4"/>
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="BANK_FORMATTING" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Format of File with Bank Data</xsd:documentation>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:maxLength value="3"/>
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="E1BP1011_ADDRESS" type="BANK_CREATE01.E1BP1011_ADDRESS" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:element name="E1BPADR1" type="BANK_CREATE01.E1BPADR1" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
              </xsd:sequence>
              <xsd:attribute name="SEGMENT" type="xsd:string" fixed="1" use="required" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
         </xsd:complexType>
         <xsd:complexType name="BANK_CREATE.BANK_CREATE01">
              <xsd:annotation>
                   <xsd:documentation>Create Bank</xsd:documentation>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="EDI_DC40" type="EDI_DC40.BANK_CREATE.BANK_CREATE01"/>
                   <xsd:element name="E1BANK_CREATE" type="BANK_CREATE01.E1BANK_CREATE" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
              </xsd:sequence>
              <xsd:attribute name="BEGIN" type="xsd:string" fixed="1" use="required" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
         </xsd:complexType>
    </xsd:schema>

  • How to import XSD with same name

    Hi,
    I have a Parent XSD which imports 3 XSD's.
    The parents XSD name and one of the imported XSD name is same in the XSD.
    Say for Ex: 1.xsd is a parent
    which import 2.xsd , 3.xsd & 1.xsd ( from different directory - import path in the XSD is different - <xsd:import namespace="www.localdomain.com/1.xsd" schemaLocation="C:/container/path/1.xsd"/>
    where as the parent 1.xsd is in c:/jms/path/1.xsd
    So whenever i import into the workshop it is giving me compilation error.
    How to fix this ? pls help.
    Thanks,
    -Raj..

    You can try like below.
         var oObject = xfa.resolveNode("Object[1]");
         xfa.host.messageBox("" + oObject.rawValue);
    Thanks
    Srini

  • How to Import xsd and use it in transformation for mapping

    I have constructed an xsd and want to use it in BPEL Process.I imported the xsd into development.But I am unable to understand how to further proceed.Can anybody suggest me how to import xsd and use it as it has to be defined in wsdl before using right.Is there any way we can use xsd?

    Hi',
    See in a BPEL (web service) we use XSD to define its input and output, inside this BPEL process you have input and output variable.
    Now inside the transform you can use this variables to transform data, there can be many other variables too, when you try to invoke
    some other BPEL process you again create new input and output variable.
    Inside a transform activity you have a source and a target there you can decide where all the input is coming from you could have
    one or many variables in source and only 1 in target, this is how your variables (or XSD) can go inside the transform, inside the transform.xsl
    view you can right click on the source side(left) and include any new variable there.
    -Yatan

  • How to import XSD Definition

    Hi All,
    Pls tell me the steps to import XSD Defnition.
    Shanmugam

    Hi,
    In your IR --> Name Space > Datatypes> External Defninitions --> Right and new and then import your External Definition and activate it.
    Regards,
    Bhavesh

  • Imported xsd's not installed in Service Registry

    Folks:
    I am using the AIA2.2 vmware image. I am wondering why and how core xsd's are not searchable in Services Registry (Business Service Control). First, the import statement of an xsd like "invoice.xsd" has a realtive path in it like "../../../../CommonComponents.xsd". Obviously, this is invalid when you import the schema into a JDEV project. One would think that the xsd's would be available in a services registry and have a http location to be of any use so JDEV can add an invoice schema to a project and be able to build a mapping. Without the ability to see these imports, JDEV chokes on the invoice.xsd and you cannot do a simple thing like transform one variable into another.
    What am I doing wrong here? Why are things like "CommonComponents.xsd" not searchable in the services registry? This looks like a big oversight because I wonder how anyone can use a xsd that has imports which are not visible to JDEV (at least without hacking the file system to find the core component). The steps to rep[roduce are simple:
    1) Create a BPEL project (Asynchronous)
    2) Create a UDDI connection to Services Registry (BSR)
    3) Add any xsd that imports "CommonComponents.xsd" to your BPEL project
    4) Try to change the payload of the request or response message for the BPEL project to one that takes my imported xsd such as invoice
    5) JDEV will give you an error because it does not have access to the imported schema and thus cannot interpret the types correctly and therefore you cannot do step 4 above or even do an XSLT mapping.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    So, my oversight -- you can view these xsd's properly by simply accessing them via Apache url which is the better way to go. They are, in fact, in the registry albeit the search feature does not seem to function properly.
    In any case, just putting this in the thread so others find it easier to do AIA development from the start.

  • Error when Import XSD file

    Hello expert,
       During creating Data Type in the build, I try to import XSD file, but system says:" XSD schema containing the construct "choice" are not permitted here"!
       I found in the XSD, there are this definition:
                                  <xsd:element name="EmploymentInfo" minOccurs="0">
                                       <xsd:complexType mixed="true">
                                            <xsd:choice>
                                                 <xsd:element name="FullTimeEquivalence" type="xsd:decimal"/>
                                                 <xsd:element name="WorktimeInfo" maxOccurs="unbounded">
                                                      <xsd:complexType>
                                                           <xsd:sequence>
                                                                <xsd:element name="Duration" type="xsd:duration"/>
                                                                <xsd:element name="Period" type="xsd:duration"/>
                                                           </xsd:sequence>
                                                      </xsd:complexType>
                                                 </xsd:element>
                                            </xsd:choice>
                                       </xsd:complexType>
                                  </xsd:element>
         Could anybody tell me how to handle this? I am not quite familiar with XSD. Thanks a lot.
    Best regards,
    Shouxin

    Hi,
    replace choice with sequence
    <b><xsd:complexType>
         <xsd:choice>
              <xsd:element name = “A” type=”xsd:string” />
              <xsd:element name= B” type=”xsd:string” maxOccurs=”unbounded” />
         </xsd:choice>
    </xsd:complexType></b>
    is handled identical to
    <b><xsd:complexType>
         <xsd:sequence>
              <xsd:element name = “A” type=”xsd:string” minOccurs=”0” />
              <xsd:element name= B” type=”xsd:string”
    minOccurs=”0” maxOccurs=”unbounded” />
         </xsd:sequence>
    </xsd:complexType></b>
    Regards
    Tarun Telang

  • Importing XSD to Create a Msg Type.

    Hi All,
    Can anyone plz tell me how to create a msg type based on external XSD.I hav gone thru help.sap.com. there it is mentioned for Data Type.It is given that to go for Tools->Import XSD.but i din't find any such option there.Instead, i hav gone for creating External Definition and was successful in creating a DataType using External Definition.But to my surprise, the created Data type is not listed under Data types.Instead it is listed under External Definitions. This is for Data Types.But i need for Message Type.Plz help me out as i hav very severe dead lines.
    Thnx in Advance.
    Anil.

    Hi Anil,
    You could create Message Type (MT) in 3 ways :
    1. Manual: Create Data Type (DT) & Create MT refering to it.
    2. Import XSD as DT: Create a new DT by giving a name. The structure can be imported from a XSD. Tools-> Import XSD. (Note: the name of DT here should match the 'complex type' name in XSD). Then create a MT refering to this DT.
    3. Import XSD as External Definition: An XSD can be imported into External definitions, and this creates the MT directly, and no DT required. They appear only under 'External Definitions'. Note: This XSD should contain a 'complex type' definition, which stands for DT. And also a root element declaration refering to this type, which stands for MT. In this case, we can have one XSD containing multiple DTs and MTs within it. All these MTs can be seen under the 'Messages' tab within an External Definition.
    Once an MT is created in one of these 3 ways, the other concepts of Interfaces, mappings etc. remain the same.
    Hope this gives the differences, and clarifies your concerns.
    regards,
    Pops V

  • Usage of imported XSD

    Hi All,
    May I ask what is the imported XSD used for? Can it be used to verify the data source XML file? If yes, how can we do that?
    Thanks, Jerome

    Imported XSD are stored in the Repository via MDM Console.
    Import Manager can parse the XML files against these XSDs.
    This way, if you have a <b>NOT well formed XML</b> or <b>NOT valid XML</b>, then these XML files go to the Exception Folders of the port you have created.
    This becomes very handy if you are using automatic import via Import Server.
    This gives you a flexibility to reprocess errors in a controlled way.

  • I have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.

    i have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.

    Try this ..
    On your Mac open System Preferences > iCloud
    Deselect the box next to:  Notes
    Then reselect it.
    Give iCloud a few minutes to re sync the data.
    Other than that, try Time Machine >  http://pondini.org/TM/15m.html

  • Import  XSD to create Data type in Design

    hi,
      I know that we can import XSD in Design and create data type,my question is:
    1.  Can i import an XSD thats been created in message mapping and use that to create my data type in design.
    (or)
    2.Should i have to write an XSD on my own and then import it to create my data type, and is there any standard format to write it.

    Hello Prashanth,
    For your first question: i don't know exactly what you mean that the the xsd you create in the data mapping steps. So can you explain it in details?
    For your 2nd question:  Sure you can write your own XSD to create a data type. And i will give you an example xsd file format. Then you can import it in the XSD tab view.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/hansteel" targetNamespace="http://sap.com/xi/XI/hansteel">
         <xsd:complexType name="CustomerInfo">
              <xsd:annotation>
                   <xsd:appinfo source="http://sap.com/xi/TextID">
                   a6c26c80000f11dac45e00096b1669b3
                   </xsd:appinfo>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="ID">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             dfe699c0e7bc11d9c736d51c0a0013e1
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:length value="10" />
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="NAME">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             dfe82060e7bc11d9b2efd51c0a0013e1
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:length value="35" />
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="CUSTTYPE">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             dfe82061e7bc11d9c193d51c0a0013e1
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:length value="4" />
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="POSTCODE">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             e93039a0e7bc11d9c7c6d51c0a0013e1
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:length value="10" />
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
                   <xsd:element name="CITY">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             f0122850e7bc11d99189d51c0a0013e1
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:simpleType>
                             <xsd:restriction base="xsd:string">
                                  <xsd:length value="35" />
                             </xsd:restriction>
                        </xsd:simpleType>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>
    Hope this will be helpful.
    Eric Ma

  • Error occured while importing xsd.file(Name contains invalid characters: -

    Hello,
    i muss import xsd.file.  while importing this error occured:
    İFMEXTDEF CCTS_CCT_SchemaModule-2.0 | http://example.org/XXX/XXX/OUT/NOZ (SC_NOZ V001 of example.org):
    Name contains invalid characters: - .
    Only a(A)-z(Z), 0-9, and "_" are permitted
    This xsdfile name is CCTS_CCT_SchemaModule-2.0 but PI doesn't  accept "-". But i muss use this file because this file is standart. What can i do for this?
    Thanks
    Nurhan
    Edited by: Nurhan on Oct 18, 2011 11:22 AM

    HI,
      PI doestnt support special characters like '-'. first you need to change the file name as you specify '-'. to remove that and you have to give '_'. then uyou have to impot >XSD file into ESR under ExternalDefination.
    i hope this will help you.
    regards,
    ganesh.

  • HT203167 Cloud has appeared on my laptop although I am not aware of having downloaded it; as a result only the items I have purchased appear in my library and I cannot access the hundreds of songs I have imported from my own CDs. How can I find them?

    cloud has appeared on my laptop although  Iam not aware of having downloaded it: as a result only the items I have purchased appear in my library and i cannot access all the songs I have imported from my own CDs. How can I find them?

    If the music is purchased through iTunes:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    If the music is not purchased through iTunes:
    Senuti — Recover music from your iPod, iPhone or iPad to your Mac

  • I just uploaded lots of pictures.  They are only showing under last import but not in events.  how do I get them to show up under events?

    I just uploaded lots of pictures.  They are only showing under last import but not in events.  how do I get them to show up under events?

    Read this: http://help.apple.com/iphoto/#pht211dc8fc

Maybe you are looking for

  • Have trouble double clicking on a second file to open

    There are really two problems here: 1)  If I double click on a file, it opens in Illustrator, but it does not open with my default workspace settings.  If I open the file from the file menu, my preferred workspace opens. and 2) If I have one file ope

  • Field codes in Word document

    Hi, This issue keeps occuring when I generate a printed document from RoboHelp. I am not choosing the Word template in the final setting page, but just letting robohelp use the css template. Does anyone have any ideas what is causing this & how to re

  • VSphere 4 - Failed to load iommu driver

    When I boot ESX 4 with the latest up on our UCS B class blades I get a: "Failed to load iommu driver" and when it finally finishes booting on the first screen I have message in red: cpu1 :4106)Mod: 2077: Initialization for vtd failed with -1" I alrea

  • Plot xy graph

    Hi I am just making a simple simulation model in which a result of a formula is the acceleration.  This result I plot it against time.  By integrating the acceleration I obtain velocity and by integrating the velocity I obtain distance.  Those last r

  • LIS Extraktion to BW - selfdefined LIS structures

    Hi, I found several documents about activation of content LIS structures and the process of extracting these structures into BW. In our case we defined a new LIS structure, loaded it with datas and now we want to extract this data to BW. Now my quest