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.  TResponse return codes

    Posted Wed March 19, 2003 09:36 PM

    What is the recommended way to do error handling on insert/update/delete? In these cases, one gets back a TResponse, but I’m unsure of what the error codes are for TResponse#getReturnValue(). I have found the documentation for two sets of Tamino Messages and Codes: General Messages – but, for instance, I couldn’t find a message that simply said, “Insert succeeded.”

    Thanks.


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: TResponse return codes

    Posted Wed March 19, 2003 11:45 PM

    Hello Phil,

    with the Tamino API for Java I think that the recommended way to handle errors is to handle the Exceptions which the various methods declare and throw.

    I believe that Tamino will always return a zero response code for a successful operation.
    So if you get “0” from TResponse.getReturnValue() the operation probably succeeded.

    Hope that helps,
    Trevor.


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management