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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Allow null constraint in document type

    Posted 05/16/18 07:17 AM

    Hi All,

    I have a schema imported where for one of the field “ProjectType” Required is “true” and allow null is “false”.

    When I’m posting the xml from soapui as below
    a ---- > schema validation is “true” . Which is expected

    But if I pass as (empty tag) -----> schema validation is true. This should have failed validation as constraint “allow null” is false.

    Please advice on this.


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Allow null constraint in document type

    Posted 05/16/18 11:25 AM

    Hi Monica,

    the empty tag does not represent a null value, but just an object of length=0.

    would be rendered as a null value.

    If you require the empty tag (without xsi:nil-attribute) to fail validation, add a minLength=“1” to the fields restrictions in the xsd.
    Then validation will fail with “… is shorter than minimum length”.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods