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

xml schema validation failure

  • 1.  xml schema validation failure

    Posted Tue January 15, 2019 11:58 AM

    Hi Everyone,

    I have a peculiar problem. In my code am validating the incoming xml with a schema.
    In the schema, its defined like this:

    <xs:element name=“WeightDelivered” type=“lsse:Weight5Point2”>

    So when the incoming data has “WeightDelivered” as ‘0.000’, its failing, which is obvious.
    But when they are sending any other value in the place of trailing 0, suppose, ‘5.000’, its processing fine. But as per the validation, it should fail.
    Could somebody please explain why its happening like that.

    Regards
    Jyoti


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: xml schema validation failure

    Posted Tue January 15, 2019 06:48 PM

    type=“lsse:Weight5Point2” is a user define data type in XML schema. Have a look at the definition or pattern for this type in the XML schema file.

    Do you mind sharing the XML schema here to give you details?


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB