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
  • 1.  FormatService

    Posted Tue October 05, 2004 07:46 PM

    Guys,
    I am parsing a file using convertToValues. FOr one of the fields, I am using the FormatService to format the date.

    But, some times, the input value is not in the required format and the convertToValues is not throwing exceptions. 
    
    The format date service expects date of format dd-MMM-yy, and returns yyyy-MM-dd hh:mm:ss.SSS. When i pass in the wrong format, its not throwing any exception nor is it coming out of the service.
    

    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 2.  RE: FormatService

    Posted Tue October 05, 2004 10:13 PM

    Brian,

    You have to put a Try/Catch sequence in the FormatService logic and exit with SignalFailure,so that if wrong date format then it will be catched and raise an exception in the flow.

    HTH,
    RMG.


    #Integration-Server-and-ESB
    #edi
    #webMethods