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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Pubschemavalidate issue

  • 1.  Pubschemavalidate issue

    Posted Fri August 13, 2004 02:44 PM

    Min,

    In the validate service are you passing in ConformsTo= Schema or DocumentType (fully qualified name),and what all the other params are you passing to that service.

    HTH,


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


  • 2.  RE: Pubschemavalidate issue

    Posted Fri August 13, 2004 03:27 PM

    I use the send XML file to do quick test, there is only the validate service in the flow, and take ‘node’ as input, ‘object’ and ‘conformsTo’ of validate is set, ‘object’ is set as input node and ‘conformsTo’ is set to the fullname of the schema document type which is created base on the xsd file. I haven’t set the optional input parameter as I consider they are irrelevant.

    Thanks


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


  • 3.  RE: Pubschemavalidate issue

    Posted Fri August 13, 2004 03:42 PM

    I just notice the pieces of schema I provided in first letter is missing some text, and when I tried to resubmit it, it still got missing when I preview my new message, it seems that the cgi function I am currently using to post message get rid of any text inside “” and symbols such as “=”. I’ll try to upload my .xsd and .xml by attach function, hope that works.

    schema
    phonenumber_test_1.xsd (0.4 k)


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


  • 4.  RE: Pubschemavalidate issue

    Posted Fri August 13, 2004 04:05 PM

    Min,

    I loaded your Schema and it just created ELEMENTS/PHONENUMBERS/Anonymous but not COMPLEXTYPES.

    And so i parsed the xml document with just passing PhoneNumbers and it parsed fine and when validating against the Schema and i got this Exception

    “com.wm.app.b2b.server.ServiceException: [ISS.0062.9024] Integration Server does not support this type of object in validation >>>BasicData:PhoneNumbers=<<<vectors=false complex=true hasBody=true hasChld=true”

    So are you getting this same error in the validate service?This is the error you are looking for?

    HTH,


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


  • 5.  RE: Pubschemavalidate issue

    Posted Sat August 14, 2004 12:43 AM

    Min Li and RMG,
    the difference might arise with you both using different IS versions?

    I remember that with v6, the schema validation was more strict.

    Min li,
    on what version of IS you seeing this behaviour?

    • Saurabh.

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


  • 6.  RE: Pubschemavalidate issue

    Posted Sat August 14, 2004 01:13 AM

    Saurabh,

    you may be right,i am on IS6.x version…and it is behaving as expected…

    Let wait and c for Min Li’s response.

    Thanks,


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


  • 7.  RE: Pubschemavalidate issue

    Posted Mon August 16, 2004 12:46 PM

    Hello, All,

    Thank you for your response. The IS version I am with is IS6.0.1.

    When I validate the xml document of phone number against the schema, I don’t have any service exception as RMG described. What I am complaining about is, when xml file with an empty phonenumber element is validated against schema, I am expecting isValid return false and errors be returned. (Which is the case with XMLSPY), because in the schema, it is defined at least one of the child element should appear for telephone number. However, with pub.schema.validate service, it always return isValid as true.

    I can only create the schema in WM Developer by loading xsd file and it always create ELEMENTS/PHONENUMBERS/Anonymous but not COMPLEXTYPES even I define so in xsd file. I would like your advice if you know how to create the COMPLEXTYPES in schema and if that is the key of this problem.

    Thanks


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


  • 8.  RE: Pubschemavalidate issue

    Posted Mon August 16, 2004 03:37 PM

    Min,

    Still i am getting the same exception and here with attaching the complex xsd file.please check this one and test the validate service.

    HTH,
    RMG


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


  • 9.  RE: Pubschemavalidate issue

    Posted Tue August 17, 2004 09:45 AM

    RMG,

    The reason that you get the exception is probably that, the xsd file you are using does not define the element. If you use this one, you should not get the exception.


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


  • 10.  RE: Pubschemavalidate issue

    Posted Tue August 17, 2004 02:47 PM

    Min,

    I loaded the schema but Still getting the same exception which i mentioned above in the validate service.


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