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

Validate Schema

  • 1.  Validate Schema

    Posted Mon April 14, 2008 03:35 PM

    hello anybody could helpme how to validate schema below is the flow
    but i am get errors while execution

    pub.file:getfile
    pub.string:bytesToString
    pub.xml:xmlStringToXMLNode
    pub.schema:validate

    i am getting error:

    Could not run ‘validate’.

    com.wm.app.b2b.server.ServiceException: [ISS.0062.9024] Integration Server does not support this type of object in validation DOCUMENT System ID: null Public ID: null

    thanks in advance
    gomathi


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


  • 2.  RE: Validate Schema

    Posted Mon April 14, 2008 04:03 PM

    Gomathi,

    Try converting XML Node to document and then pub.schema:validate. That should work.

    HTH,
    Snehal


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


  • 3.  RE: Validate Schema

    Posted Mon April 14, 2008 04:16 PM

    Actually, pub.schema:validate works best when validating an XML node object against and IS schema created from an XSD. If you map the inputs to validate correctly, it will work as described in the built-in services guide.

    Can you expand on what you are mapping to the input parameters of the validate service?

    Mark


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


  • 4.  RE: Validate Schema

    Posted Wed April 16, 2008 10:38 PM

    hi mark,

    I am mapping node to object input parameter and IS doc type to conformsto input parameter in Validate Service,pls let me know what i am doing wrong

    thanks
    gomathi


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


  • 5.  RE: Validate Schema

    Posted Wed April 16, 2008 11:52 PM

    I believe that in order to validate an IS node your conforms-to needs to be set to the fully-qualified name of an IS schema created from an XML Schema XSD file.

    M


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


  • 6.  RE: Validate Schema

    Posted Wed April 16, 2008 11:58 PM

    hi mark,
    I have set conforms-to the fully-qualified name of an IS schema created from an XML Schema XSD file,still i am not able to validate

    Gomathi


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


  • 7.  RE: Validate Schema

    Posted Thu April 17, 2008 06:02 AM

    Please read Built in service reference for pub.schema:validate service. It seems that you are not using proper combination for validation.


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


  • 8.  RE: Validate Schema

    Posted Thu April 17, 2008 05:13 PM

    What error are you getting now? Perhaps the node you are attempting to validate is not properly formed or incomplete.


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


  • 9.  RE: Validate Schema

    Posted Sat April 19, 2008 05:04 PM

    hi mark
    if i validate schema thru pub.xml:xmlNodeToDocument its validating,but pub.xml:xmlStringToXMLNode its not validating,giving below error

    Could not run ‘validate’.

    com.wm.app.b2b.server.ServiceException: [ISS.0062.9024] Integration Server does not support this type of object in validation DOCUMENT System ID: null Public ID: null

    in both i am validating to same schema,in first case document is mapped to object,in second case node is mapped to object,should i specify anything differently

    thanks
    gomathi


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


  • 10.  RE: Validate Schema

    Posted Mon April 21, 2008 01:44 AM

    Hi There,

    You need also need to map different input to “conformsTo”. If your input to “object” is webMethods document which is result of xmlnodetodcoument service then confirmsTo should be ful path of webMethods doctype. If your input to “objet” is node which is result of xmlstringtonode then input to “conformsTo” should be webMethods schmea object which you create from XSD Schema file.

    Hope this helps… This is explained in detail in inbuilt services guide.

    Ta,
    Ajit


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


  • 11.  RE: Validate Schema

    Posted Thu December 11, 2014 03:51 AM

    Hello, I’m facing the same problem with this. (currently using IS Version 8.2.2.0 Updates IS_8.2_SP2_Core_Fix14)
    And the current solution of my problem is with snehalsm * method.

    Is there any way how to fix pub.schema:validate [ISS.0062.9024] Integration Server does not support this type of object in validation DOCUMENT System ID: null Public ID: null

    Btw many thanks to Snehal for alternative solution…


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


  • 12.  RE: Validate Schema

    Posted Thu December 11, 2014 09:11 AM

    FYI - This error is expected because “Currently, only XML, pipeline, and document (IData object) validation are supported.”


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