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

schema validation in webmethods 8

  • 1.  schema validation in webmethods 8

    Posted Mon January 16, 2012 05:14 PM

    my xml is as follows
    —>document
    —>document
    —>doclist

    —>doclist


    i use a schema validation whenever i pass values to the above document in webMethods 8,But Isvalid is true even when i pass multiple occurrences for which is actually a document.
    My document is normal IS document and i am using pub.schema validation in wm 8 .
    Is there any addition property settings need for validation to be failed when any structure mismatch occurs .

    Please advice .
    Thanks
    Pran


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


  • 2.  RE: schema validation in webmethods 8

    Posted Mon January 16, 2012 05:33 PM

    i tried generatng xsd using create XSD ,and could see no settings as maxoccurs =1 for .
    Is there any propert settings to set a document as maxoccurs-1 inside IS document
    or do i have to manually edit xsd and then validate against xsd?i tried generatng xsd using create XSD ,and could see no settings as maxoccurs =1 for .
    Is there any propert settings to set a document as maxoccurs-1 inside IS document
    or do i have to manually edit xsd and then validate against xsd?
    please advice


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


  • 3.  RE: schema validation in webmethods 8

    Posted Tue January 17, 2012 10:44 AM

    Pran, ideally it should reject with possible message like below.
    [ISC.0082.XXXX] Dimension mismatch, Single item expected

    A document is not an array, in any case it shouldn’t allow more than one document to be appearing in the input!

    sample files constructed for testing are as follows

    1. A document type is created and is validated against the following sample
    <?xml version="1.0"?> list1 - item1 list1 - item2
    <list1> 
    <listItem> list2 - item1 </listItem>
    <listItem> list2 - item2  </listItem>
    </list1>
    
    1. Above document type is also tested with below sample which resulted in “isvalid” to false! along with the error described above!
    <?xml version="1.0"?> list1 - item1 list1 - item2 list2 - item1 list2 - item2 list1 - item1 list1 - item2 list2 - item1 list2 - item2
    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 4.  RE: schema validation in webmethods 8

    Posted Fri January 27, 2012 12:25 PM

    Hi PRP,

    I am doing the schema validation against xml schema which was got created when i imported wsdl file. What ever the values that i am going to give input it is giving no errors. Even though i was tried with providing wrong datetime format. In case of document type validation instead of schema validation it is behaving correctly. While i am using schema then it is not giving validation error. I am doing in 8.2 v. Is any body observed same behaviour? i am using pub.schema:validate service.

    Thanks,
    Raj


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