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
Expand all | Collapse all

How to change default exception which is thrown when Validate Input is turned on

  • 1.  How to change default exception which is thrown when Validate Input is turned on

    Posted Thu August 06, 2020 04:10 AM

    Hi all,

    I am building REST API and wondering if there is any way to change the exception response when validation of input fails?

    This is response I am getting through postman:

    image

    And I want to send JSON with message that validation failed. Is there a way to change that default response? Becasue in that case request is not entering the pipeline.


    #Application-Platform
    #API-Portal
    #Integration-Server-and-ESB
    #API-Management
    #API-Gateway
    #webMethods


  • 2.  RE: How to change default exception which is thrown when Validate Input is turned on

    Posted Thu August 06, 2020 11:11 AM

    Hi Filip,

    Yes you can definitely customize the outbound response (Content-Type: application/json) back to the requester/client.

    Please check if this article helps you with Response Processing terms!

    http://techcommunity.softwareag.com/pwiki/-/wiki/Main/Invoke%20webMethods%20IS%20policy%20in%20API%20Gateway%2010.2

    HTH,
    RMG


    #Integration-Server-and-ESB
    #API-Gateway
    #webMethods
    #API-Management
    #Application-Platform
    #API-Portal


  • 3.  RE: How to change default exception which is thrown when Validate Input is turned on

    Posted Thu August 27, 2020 02:18 AM