OTD using XSD

Hi,
Please let me know, is there any conidtion that only certain structure of
OTD(created by xsd) can only be used in project.
The reason to ask this question is, i created a OTD using a xsd file.
OTD was created successfully, but while building a project it
persistively gives
Annotation: Caught Compialtion Error(s)
Pelase fix before proceeding.
com.stc.codegen.framework.model.CodeGenException
When i modified xsd to simpler structure, i was able to build project
successfully.
In my project i tried to expose JCD as Webservice[Callable as external 
soap WebService] . Hence i created two OTDs using XSD for input
and output messages.
Then when i tried to build the project i got CodeGenException due to
compilation errors.
Please let me know is there any condition that only a particular OTD
structure only can be used in a project with respect to OTD using XSD .

Hi,
Are you loosing encoding.I mean whether special characters are not properly displayed in the output file.
Are you sure file is not getting stored with UTF-8 encoding.Basically for us we have similar setup, where we set
output encoding as utf-8, and when we do marshaltostring we don't loose encoding.
Please let us know how you identified file is not getting stored with encoding utf-8.
Regards
Venkatesh.S

Similar Messages

  • Generation of XML using XSD

    I Have to generate XML file using XSD. I have the xsd available with me ,i have the values of elements also,now i need create a xml file using the XSD or DTD, with the values i got from the database.
    Kindly help.

    Create an XML file from XSD file

  • In Reply to : How to validate org.jdom.Document object using xsd: dvohra09

    Hi All
    I am creating org.jdom.Document object using constructor Document() and adding children using setRootElement(), setChildren() and addContent() methods. The children are objects of org.jdom.Element. If i want to validate the org.jdom.Document using xsd what i have to do. Thanks in anticipation.

    I tried the below code and it is always giving the
    Parsing fatal error : The markup in the document preceding the root element must be well-formed.
    But it is possible to validate the same Document object as right document after writing it onto xml file using XMLOutputter and parsing it using DOMParser
    Thanks in anticipation
    org.jdom.Document document;
    String documentString=document.toString();
    StringReader stringReader=new
    StringReader(documentString);
    SAXBuilder saxBuilder =new
    SAXBuilder("org.apache.xerces.parsers.SAXParser",true);
    saxBuilder.setFeature("http://xml.org/sax/features/vali
    ation",  true);
    saxBuilder.setFeature("http://apache.org/xml/features/v
    lidation/schema",  true);
    saxBuilder.setFeature("http://apache.org/xml/features/v
    lidation/schema-full-checking", true);
    //Set a error handler with
    setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
    saxBuilder.build(stringReader);

  • How to validate xml using xsd

    Hi All
    please tell me how to validate xml using xsd
    regards

    Try using this link:
    = http://www.google.nl/search?q=XML+validate+oracle for instance or
    = use the search button on this forum and / or
    = read the FAQ on this (XML DB FAQ
    Thanks Eddie et all, for educating me via http://awads.net/wp/2006/11/14/barts-punishment-for-asking-dumb-questions (don't mind the URL , the info there is really useful)
    The following link on this site is just brilliant: http://www.albinoblacksheep.com/flash/posting.php
    Grz
    Marco
    Message was edited by:
    mgralike

  • Issue using XSD from MDS

    Hi
    I am having issue when using XSD from MDS. ( AIA 11G)
    I have created MDS connection and tested it and it workds. Through SOA Browser -> Resource Pallet I am able to brouse XSD also. After selecting XSD when i import , I get below mentioned error
    Exception: oracle.mds.exception.MDSException: MDS-02501: cannot load the ORAMDS URL "oramds:/apps/AIAMetaData/AIAComponents/EnterpriseObjectLibrary/Industry/HealthSciences/EBO/SupplierParty/V1/SupplierPartyEBO.xsd" because MDS session could not be created or resolved
    MDS-01330: unable to load MDS configuration document
    MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-usage_2" is invalid.
    MDS-00918: Connection details for the MDS repository are incomplete. The values for "userName, password, jdbcURL" are invalid
    Is there something i am missing?
    Bikash

    i run into the same issue a lot and it seems that everytime i modify the composite or the bpel, somehow all the userid, password, and jdbc-url properties are removed from the adf-config file. i always have to restore to a previous version from history. i have no idea what causes jdeveloper to remove these tags and haven't yet found a remedy for this problem.

  • Attemp to build loosely coupled WS using xsd:any & xsd:anyType?

    Dear All,
    i want to write a loosely coupled web service that allow
    the server to evolve independently to the client. (main
    purpose is to extend the service by adding more properties
    in the request / response message)
    i want to achieve the loosely coupled goal by adding
    xsd:any or xsd:anyType to the request / response messages
    (i.e. wsdl ComplexType). (just follow the normal XML
    guideline).
    i have try to write simple program with xsd:any (which
    mapped to SOAPElement in JAX-RPC). And the result seems
    good and can achieve my goal. ( i can consume the service
    in java and .net without problem).
    but later, i read some article, in the web, (like this: http://www.ibm.com/developerworks/xml/library/ws-tip-xsdcaution.html)
    that clams it is better to use xsd:anyType instead of
    xsd:any (as anyType is mapped to SOAPElement or java
    object if server/client can deserialize it).
    as far as i know, the support of xsd:anyType is not standardized / madatory.
    could anyone tell me your comment about using xsd:anyType or xsd:any?
    how about the support of xsd:anyType across different platform / tools?
    xsd:anyAttribute seems not supported by jax-rpc, could you please comment on using this element in the wsdl? good or bad?
    oracle will map this element to an oracle proprietary java object.
    am i choosing the right way to achieve loosely-coupled WS? any other way?
    some article claims to send request as xml doc. but it
    seems that is not very convenient to server and client as
    both sides need to write code for serialization /
    deserialization.
    why not use the existing automatic XML <--> java object provided by the jax-rpc standard?
    Thank you very much
    Message was edited by:
    lsp

    Hello,
    Is your question related to very specific element of your message or for the complete message.
    Using any/anyType even if powerful could be sometimes complex for Web Service Client developer to handle since the Java object (SOAPElement or Object) is not typed so doing late binding of schema force people to do the mapping themself any.
    So before choosing this in a wide scope on your project think also to its impact for end user/developers, and I think you are on the good path, as you said anyType will recognize the object.
    I am inviting you to also look at the Oracle Web Services Interoperability documentation.
    and this article from SUN: Interoperability With Patterns and Strategies for Document-Based Web Services
    Regards
    Tugdual Grall

  • Can I use XML using XSD

    Hi,
    I know we can use XML as data server with DTD. Is it also possible to use XSD instead of DTD. If yes would the driver be same.
    Thanks
    Jasvinder Singh

    Got SAS error when used as "jdbc:snps:xml?f=C:\myxml.xml"
    (Try to insert null into a non-nullable column: column: NAME table: STAGI_ELEMENT in statement [insert into STAGI_ELEMENT (ELEMENTORDER, ELEMENTPK, NAME, REF, SCHEMAFK, SEQUENCEFK)  values (?, ?, ?, ?, ?, ?)]
    all these table name and columns comes by itselt , non are reffereing to my data. thn i tried some jugglery in changing the XSD. then it worked , but when i reserved though model window it showed me as
    SCHEMA     Table
    ELEMENT     Table
    SEQUENCE     Table
    COMPLEXTYPE     Table
    these are part of XSD elements definations.
    what i understand that use f=xml file and d=dtd file name or d=xsd file name.

  • File Adapter: trailing space in field using XSD:Decimal in a CSV file

    Hi Folks,
    I have a problem which i am unable to understand fully.
    We have a SAP to file via XI scenario where a mail adapter is used. We are producing a CSV file as an mail attachment.
    The issue is all the decimal fields have an extra space before the next delimiter i.e. comma.
    The data type used in mapping is XSD:Decimal with 'fraction' set as 2.
    I have checked the source XML and there is no trailing spaces there. Initially i thought this might be due to doing the conversion using transformation beans in mail adapter, to rule this out i checked other files produced using FILE adapter they also appear to have same issue.
    I can't get my head around it, could not find any parameter i need to pass in content conversion either in MAIL adapter or FILE adapter to supress trailing space before the delimiter.
    I suppose this must have occured with others as well.
    Any directions would be greatly appreciated.
    Btw, we are on PI 7.0 and ECC 6
    -Praveen
    Edited by: - External Consultants Mouchel on Sep 15, 2009 5:34 PM

    Hi Mouchel,
    I personally didnot encounter this kind of issue with the file adapter at any point of time. I would suggest you to check the message mapping before and after payload in sxmb_moni. If you see in mapping you may not find out, so view the source in notepad and then see.
    Regards,
    ---Satish

  • Use XSD referencing other XSDs with include statement in Message mapping

    Hello,
    I have an XSD with include statements having reference to other 4 XSDs.One XSD out of these 4,one references one more XSD
    I referred to the thread on this :
    refrencing 1 xsd to another   https://forums.sdn.sap.com/post!default.jspa?forumID=44#
    I have created 6 External Definitions one for each XSD
    Referring to the following statement in this thread:
    In XI 3.0, there is a tab there called External References. You will see there a Source and a Name. When you click the Name, click Copy Object. Then you open the target object and paste it under the Source located just before the tabs.
    The Name you see in the External References are the ones that are declared as include or import in the XSD.
    I can see included XSD names in Source column under External References tab in External definition for main XSD.
    But Name column is always blank and these columns are not editable.Also,copy doesn't work.
    We have XSD names in include statements,but I wonder when I create External definitions out of these XSDs ,how would my main External definition know,which other External definitions are referenced?
    If I use the External definition with main XSD as target structure in my mapping,I can only see the fields from this XSD and not the fields from the included XSDs.But I need to map these fields as well.
    Can anybody please let me know how can I get a complete XSD as target structure in my mapping?
    Thanks for your help.
    Regards,
    Shweta

    Plz close other duplicate threads for the same issue first..
    Regards,
    Sarvesh

  • Problem with using XSD in PI 7.1

    Hi all,
    I am intergrating with a third party which has provided an XSD definition of their message formats.
    I have imported this file as an external definition and can use it in my message mapping fine.
    However I'm trying to create a Message Interface now and may need to reference a data type, so I have the following questions.
    1) Can you base a message interface of an external definition or do you need to create a datatype and import the XSD import it as a datatype?
    Assuming I need to create a data type I am trying to do the following.
    Create a data type FGSCSSTDShipNotify and use the tools->import XSD I am getting an error " Schema to be handled does not contain a definition of type FGSCSSTDShipNotify"
    A snippet from the schema is below and my thought is that I need to have FGSCSSTDShipNotify as a complex type not a element.
    My question is
    2) Can someone review the snippet below and give me some advice or point me to some documentation on how the xml should be formatted to import FGSCSSTDShipNotify as a data type?
    Cheers, John
    <xsd:element name="FGSCSSTDShipNotify">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element ref="FGSCSHdr">
                        </xsd:element>
                        <xsd:element ref="ShipNotifHdrLp" maxOccurs="unbounded"/>
                   </xsd:sequence>
                   <xsd:attribute name="IsRootNode" fixed="Y"/>
                   <xsd:attribute name="RootNode" fixed="FGSCSSTDShipNotify"/>
    </xsd:complexType>
    </xsd:element>

    Hi Stefan,
    Thanks for the response.
    I mispoke earlier when I said I was "trying to create a Message Interface ",
    I'm actually trying to create a Operation mapping
    Here is my scenario idoc -> http request.
    I've imported the idoc DESADV.DELVRY05 and created an external definition based of the xsd provided by the third party.
    I've created a message mapping from the idoc to the external definition that I need to send it to.
    Right now I'm just trying to finish up my mapping from idoc to their message structure, after this I will then create the outbound http call.
    I'm thinking my next steps are - please check and let me know if I'm wrong
    1) Create an operation mapping, I am in this screen, can reference the idoc as the source operation and use the message mapping as the mapping program, but can't use the external definition for the target operation.
    This brings me back to the questions
    1) Can you base a Operation mapping of an external definition or do you need to create a datatype and import the XSD import it as a datatype
    and
    2) Can someone review the snippet below and give me some advice or point me to some documentation on how the xml should be formatted to import FGSCSSTDShipNotify as a data type?
    Cheers,
    John

  • How to read a file with data in Hierarchical Structure using XSD Schema

    Hi
    We have requirement in which we have to read a FIXED LENGTH file with FILE ADAPTER. File contains the data in hierarchical structure. Hierarchy in the file is identified by the first 3 characters of every line which could be any of these : 000,001,002,003 and 004. Rest files are followed after these. So structure is like:
    000 -- Header of File. Will come only once in file. Length of this line is 43 characters
    -- 001 -- Sub Header. Child for 000. Can repeat in file. Length of this line is 51 characters
    --- 002 -- Detail record. Child for 001. Can repeat multiple times in given 001. Length of this line is 43 characters 1353
    -- 003 -- Sub Footer record at same level of 001. Will always come once with 001 record. Child for 000. Length of this line is 48 characters
    004 -- Footer of file.At same level of 000. Will come only once in file. Length of this line is 48 characters
    Requirement is to create an XSD which should validate this Hierarchical Structure also i.e data should come in this hierarchy only else raise an error while parsing the file.
    Now while configuring the FILE ADAPTER to read this file we are using Native Schema UI to create the XSD to parse this structure using an example data file. But we are not able to create a valid XSD for this file which should validate the Hierarchy also on the file.
    Pls provide any pointers or solution for this.
    Link to download the file, file structure details and XSD that we have created:
    https://docs.google.com/file/d/0B9mCtbxc3m-oUmZuSWRlUTBIcUE/edit?usp=sharing
    Thanks
    Amit Rattan
    Edited by: user11207269 on May 28, 2013 10:16 PM
    Edited by: user11207269 on May 28, 2013 10:31 PM
    Edited by: user11207269 on May 28, 2013 10:33 PM

    Heloo.. Can anyone help me on this. I need to do Hierarchial read / validation while reading the file using File Adapter using Native XSD schema.

  • DBMS to XML file using XSD for validarion rules

    Hi All,
    I am working on a migration project and my goal is to generate XML file (should also validate using XML Schema) from MySql and SQLServer database.
    Idea is to write a query and then visually map result fields to XSD file (for basic field validation) and produce XML file.
    Is there any example doing same using ODI???
    I really don't want to export tables (500+, 3M+ records) into Oracle database and then write java or pl/sql code to generate XML file.
    Any inputs highly appreciated.
    Thanx,
    Chirag Jha | Principal Consultant
    Phone: +1 561 244 5607 | Fax: +1 815 550 7245 | Mobile: +1 561 926 3308
    Oracle Oracle Communications Global Business Unit

    Hi,
    Any help on this subject?
    Thanx,
    Chirag

  • Using XSD in the syndicator

    I created an XSD using the xomLite45. I defined the XSD in the console (in the Admin>XML schemas). After that I tryed to use it in the syndicator but I am not able to open it when I defined it in the destination properties.
    What can be the problem?
    Thanks, Tal

    Hi Tal,
    Following could be the possibilities of XML schema not opening
    1) If you are using standard Repository then it could be that it has was not correctly archived due to which the Schema generated in incorect,if you are using customized repository then check and verfiy the rep in console before exporting the Schema.
    2) The XML schema generated from xomlite may not be comletely generated.Is it showing the .XSD ext and is the file  in the correct format ie xsd not xml?
    3) While giving the Schema name in Console could be you have given the XML file name instead of XSD.Check that
    4) In the Syndicator the Root may not have been populated properly.Just check whether whether the root is getting populated.
    Your problem could be due to one of these reason.
    Hope it helps
    Reward points if found useful
    Thanks
    Simona

  • Using xsd:group in Report Data Structure

    Hi all,
    I am totally new to BI Publisher trying to create a report with a data structure specified by an XML schema. This schema makes heavy use of the XML schema construct 'group', e.g. like
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:group name="custGroup">
    <xs:sequence>
    <xs:element name="customer" type="xs:string"/>
    <xs:element name="orderdetails" type="xs:string"/>
    <xs:element name="billto" type="xs:string"/>
    <xs:element name="shipto" type="xs:string"/>
    </xs:sequence>
    </xs:group>
    <xs:element name="order" type="ordertype"/>
    <xs:complexType name="ordertype">
    <xs:group ref="custGroup"/>
    <xs:attribute name="status" type="xs:string"/>
    </xs:complexType>
    </xs:schema>
    </xsd:sequence>
    </xsd:complexType>
    When importing this schema into the Word Template Builder the shown attributes do not contain the elements specified in the group but only the element 'order' of type 'ordertype'.
    Could you point me to the solution of this issue - if any? Or is BI Publisher not able to handle xsd:group constructs?
    Thanks in advance.
    Best regards,
    Stefan

    The feature has some restrictions. Does the following work for you?
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="order" type="ordertype"/>
    <xs:complexType name="ordertype">
    <xs:group ref="custGroup"/>
    <xs:attribute name="status" type="xs:string"/>
    </xs:complexType>
    <xs:group name="custGroup">
    <xs:sequence>
    <xs:element name="customer" type="xs:string"/>
    <xs:element name="orderdetails" type="xs:string"/>
    <xs:element name="billto" type="xs:string"/>
    <xs:element name="shipto" type="xs:string"/>
    </xs:sequence>
    </xs:group>
    </xs:schema>

  • Validation againt schema using xsd restrictions

    Hi, wonder if someone could give me some advice...
    I've got an attribute which is of the following type:
    <xsd:simpleType name="applicationType">
              <xsd:restriction base="xsd:NMTOKEN">
                   <xsd:enumeration value="UKAPP1"/>
                   <xsd:enumeration value="UKAPP2"/>
                   <xsd:enumeration value="UKAPP3"/>
                   <xsd:enumeration value="UKAPP4"/>
              </xsd:restriction>
    if I validate this using the validate task in OSB message flow, it passes whatever value I put in the attribute.
    If I validate my xml document using XMLSpy, it fails as I haven't entered a valid value. Missing elements etc from my xml will validate perfectly, but not these.
    Am I missing something?
    Pete

    Hi Pete,
    Good to hear from you.
    I've tried this on the latest version of OSB and it seems to work with the following simple schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/NewXMLSchema"
         xmlns:tns="http://www.example.org/NewXMLSchema" elementFormDefault="qualified">
    <element name="NewElement">
         <complexType>
              <sequence>
                   <element name="payload" type="string"></element>
              </sequence>
              <attribute name="attr" type="tns:attrType"></attribute>
         </complexType>
    </element>
    <simpleType name="attrType">
         <restriction base="NMTOKEN">
              <enumeration value="UKAPP1"/>
                   <enumeration value="UKAPP2"/>
                   <enumeration value="UKAPP3"/>
                   <enumeration value="UKAPP4"/>
              </restriction>
    </simpleType>
    </schema>
    and a validate action configured as follows:
    XPath: ./new:NewElement/@attr
    In Variable: body
    Against Resource: MCP/SimpleSchema (Type = attrType)
    Raise Error radio button checked.
    If I send in a message of the form:
    <new:NewElement attr="UKAPP3" xmlns:new="http://www.example.org/NewXMLSchema">
    <new:payload>string</new:payload>
    </new:NewElement>
    it validates OK, whereas if I send in a message of the form:
    <new:NewElement attr="UKAPP5" xmlns:new="http://www.example.org/NewXMLSchema">
    <new:payload>string</new:payload>
    </new:NewElement>
    validation fails.
    If you are still seeing issues with this, can you send me the OSB config to take a look at.

Maybe you are looking for

  • IPhoto '08 loses exif data when exporting RAW to JPG

    I'm using a Canon 40D shooting only RAW. I just recently noticed that when I export to JPG, iPhoto loses quite a bit of important EXIF data, including, aperture info. Is this a known issue, or is it something unique to my system?

  • Reader 9.0 consumes 25% CPU and freezes...open Reader first?

    I was having problems double clicking on a document and scrolling through it. After a few page down clicks, it would consume 25% CPU and lock up. This is on a quad core with 6gb memory running 64 bit Vista. What I discovered was if I instead opened u

  • Alerts for Apps

    How do I stop receiving loud random alerts for games that I have downloaded?? Thanks

  • Is there a newer version of iPlanet than 7.0.12?

    I could see some release notes about iPlanet release 7.0.13 as part of the Jan CPU released on 1/17, but i am not able to find where i can download the newer version? Any guidance will be helpful, thanks in advance.

  • Merging iWeb 06 site into iWeb 08 site

    Hi, I've looked around at other posts regarding this subject but don't really understand what's going on. I have an old site built in iWeb 06 that I want to use in iWeb 08. I have multiple copies of the Domain. I have a new site built in iWeb 08. The