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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Http OPTIONS not triggering the REST resource

    Posted 09/18/20 04:46 AM

    Hi All: I have a situation where the partner will be sending the HTTP OPTIONS before sending actual POST body . we need to send them a "custom header back when they srnd http OPTIONS. when i test from postman it shows 200 OK for OPTIONS but it doesn’t triggger the _default. But I am not able to capture the savepipeline, I mean it doesn’t kick in the REST method. I am not sure maybe server is responding with 200 and not letting the OPTIONS hit the code. I created _post and _default event. What extended settings do I need to add. I have the below at the moment.

    watt.server.cors.allowedOrigins=*
    watt.server.cors.enabled=true
    watt.server.cors.exposedHeaders=
    watt.server.cors.host=
    watt.server.cors.maxAge=-1
    watt.server.cors.supportedHeaders=Accept,Cache-Control,authorization,samlassertion,Content-Type,content-type
    watt.server.cors.supportedMethods=GET,POST,PUT,DELETE,OPTIONS,HEAD
    watt.server.cors.supportsCredentials=false


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


  • 2.  RE: Http OPTIONS not triggering the REST resource

    Posted 09/18/20 11:33 AM

    Hi Kumar,

    Please note that OPTIONS does not transfer control to your REST resources.

    Regards,
    -Kalpesh.


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


  • 3.  RE: Http OPTIONS not triggering the REST resource

    Posted 09/21/20 02:59 AM

    Thanks Kalpesh! So, there is no way that it will hit the REST resource. I mean, is it limitation in webMethods.


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


  • 4.  RE: Http OPTIONS not triggering the REST resource

    Posted 09/21/20 08:31 AM

    Hi Kumar,

    Yes, this is the current behavior and follows HTTP spec defined @ HTTP/1.1: Method Definitions.

    Regards,
    -Kalpesh.


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


  • 5.  RE: Http OPTIONS not triggering the REST resource

    Posted 09/18/20 12:40 PM

    Hi Kumar,

    See if you can use _default service to have a logic to send the desired response if $httpMethod=OPTIONS in the request itself.

    For _default, $httpMethod is a required parameter that the client need to send.

    Regards,
    Firoz N


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


  • 6.  RE: Http OPTIONS not triggering the REST resource