IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

XML schema creation

  • 1.  XML schema creation

    Posted Tue December 05, 2006 12:35 AM

    I am having an issue where i am trying to create a xml schema from a xml and i am getting this error.

    Could not create Schema
    The DTD for this XML document could not be used.

    The xml is well formed and valid (from xmlSpy) but when I select the file from the browse window i am getting this error.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: XML schema creation

    Posted Tue December 05, 2006 03:00 AM

    Since you already using XML Spy, why not create an XSD instead of creating your schema from an XML instance document?

    You can only create an IS schema from an XML document if that document references a DTD. You can also create IS schemas from XSD’s and DTD’s.

    See the Developer User’s Guide “Creating and IS Schema” section for more details.

    Mark


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: XML schema creation

    Posted Tue December 05, 2006 05:02 PM

    The xsd is the issue - we have an xsd we are running 6.1 and the xsd is valid but it has a choice branch. When we try to create a schema nothing happens (the progress bar pops up but no schema is created) - Any ideas on why this happens.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: XML schema creation

    Posted Tue December 05, 2006 05:16 PM

    Your original post stated “i am trying to create a xml schema from a xml” and said nothing about an XML Schema (XSD). The error message you are getting is the one returned when you attempt to create an IS Schema from an XML document that does not refer to a DTD.

    If you’d like to post the XSD that is giving the problem, I’ll try to take a quick look. Otherwise, I won’t waste my time guessing on what might be the issue.

    IS has no problem creating IS Schemas from XSD’s which use choice models, unions and other fun XML constructs. You just have to stay away from recursive (self referencing) definitions. See the IntegrationServerSchemaReference.pdf document for more about IS Schemas.

    Mark


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 5.  RE: XML schema creation

    Posted Tue December 05, 2006 07:03 PM

    Correct - we have been trying to work around this issue from every possible direction. Here is the xsd
    my.zip (28.7 KB)


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 6.  RE: XML schema creation

    Posted Tue December 05, 2006 09:32 PM

    I was able to use Developer 6.5 to successfully create an IS Schema from the my.xsd that you attached in your previous post with no errors and no warnings.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 7.  RE: XML schema creation

    Posted Thu January 08, 2009 05:03 PM

    Is there a way to generate XSD from an IS document.
    I have a very big IS Document which has several fields with constaints like min, max length etc. And all the constaints are defined directly in IS documents using property window. Is there a way that I can genrate IS schema or XSD file from this IS Document?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 8.  RE: XML schema creation

    Posted Thu January 08, 2009 06:51 PM

    If found pub.schema:createXSD service can generate XSD schema when I pass Fully qualified name of a document type, service, or specification on IS.
    But when I looked at the schema for an IS document which has few fields with pick list choices I could not field those pick list choice values in XSD. Is there any way to get those pick list choices values in generated XSD


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: XML schema creation

    Posted Wed April 18, 2012 02:38 PM

    Is there any way to create XSD schema from an IS schema ?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 10.  RE: XML schema creation

    Posted Fri April 20, 2012 02:18 PM

    Not within Developer and not using the built-in services.

    Mark


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 11.  RE: XML schema creation

    Posted Fri April 20, 2012 07:05 PM

    Hi Vijayvjp,
    Try the below…It must work

    just delete the pick list.
    use property Content type, and select the string or anyother as requires…then click on customize and give enumaration values(you can say pick list).

    Now try to create XSD…you shoul definitely get XSD in the format you are looking…


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods