webMethods

webMethods

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
  • 1.  Date format validation

    Posted Wed June 26, 2013 10:44 AM

    Hi Folks,

    Third party system consumes wM WSDL. In this WSDL one field holds date content , as per mapping format should be dd/MM/yyyy. Flow service would discard the request if data doesn’t conforms to the document type defined.
    Applying date constraint with the format throws error.

    I am not sure how to validate date format. As of now , I am using pub.schema:validate with input as document

    Can you please suggest some ideas?

    Thanks
    MohanKumar


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


  • 2.  RE: Date format validation

    Posted Wed June 26, 2013 11:21 AM

    So is the schema:validate against the DTD/Schema not working for you?


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


  • 3.  RE: Date format validation

    Posted Wed June 26, 2013 01:40 PM

    I’ve given conformsTo as document type not DTD/Schema in “pub.schema:validate” built in service


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


  • 4.  RE: Date format validation

    Posted Wed June 26, 2013 04:08 PM

    RMG,
    Yes, anyway it’s not working.

    Can I get some idea from you or other members?


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


  • 5.  RE: Date format validation

    Posted Tue July 02, 2013 10:43 AM

    When you open the WM WSDL do you see your date format as an enumeration on that field?

    I think what you did in the first place is the right way to do it, use the validations on fields as enumerations and then set the “conforms to” property on the service. This should filter out all the junk data and thow SOAP faults to the consuming application.


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


  • 6.  RE: Date format validation

    Posted Tue July 02, 2013 12:43 PM

    Validation on content can be removed by settting ignore content to “true”

    Try that and let us see


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