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
  • 1.  XML Schema validation errors.

    Posted Fri August 31, 2012 07:50 AM

    Hi All,

    I’m trying to figure out a solution where I need to drop the xml tags for some of the optional fields if they’re null in the XML.

    Basically, I am getting schema validation error for optional fields ( The property says allow null false and required is false ) but when there is no value the IS is treating it as a null value and throwing schema validation error.

    How to avoid this situation and drop the xml tags for optional fields. Please let me know.


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


  • 2.  RE: XML Schema validation errors.

    Posted Fri August 31, 2012 01:43 PM

    Try this service ps.util.idata:removeNullFields, its been a while i used this but i think this service should remove empty fields from the doc.

    Cheers,
    Akshith


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


  • 3.  RE: XML Schema validation errors.

    Posted Fri August 31, 2012 03:31 PM

    Hi Akki,

    Thanks for the post. Just wanted to know is there any other functionality other than using a external service to remove null fields?

    My main problem is the document is failing schema validation for optional fields as well( min occurs 0 and allow null false ).

    Pls assist if you have any other thoughts.


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