DataPower

DataPower

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.  Datapower Method Rewrite doesn't when FrontSideHandler is MQ

    Posted Wed April 09, 2025 12:08 PM

    Hello

    I have a WSP with an MQ as FSH. The backend expect a PUT request, so in the policy I use the 'Method Rewrite' option and set with 'PUT'

    When i check in probes, the method is empty, 

    is there an impossibility between an mq INPUT and a http out ? I remember, few years ago, i already have this issue and we solved it with this technique below

     <dp:set-request-header name="'X-HTTP-Method-Override'" value="'PUT'"/> this simulate a PUT method, but the backend doesn't accept :)

    I also try this command : <dp:set-variable name="'var://service/protocol-method'" value="'PUT'"/> But it doesn't work :

    any idea ?



    ------------------------------
    D@viiid
    ------------------------------


  • 2.  RE: Datapower Method Rewrite doesn't when FrontSideHandler is MQ

    Posted Thu April 10, 2025 02:28 AM

    Hi D@viid, I guess you can't change the HTTP method to PUT as the SOAP specification only allows POST and GET. The question now is, why does your backend expect a PUT?

    Alternatively, you could use an MPGW service.



    ------------------------------
    Pierce Shah
    Senior IT Specialist
    IBM
    ------------------------------



  • 3.  RE: Datapower Method Rewrite doesn't when FrontSideHandler is MQ

    Posted Thu April 10, 2025 03:26 AM

    The reason is the backend migrated from soap request to REST request.

    So, we keep the consumer call the WSP and i need to map the request to a json format and the new backend is expected a PUT method.

    But the problem is not PUT or GET into WSP datapower object, the problem is it's impossible to change method when WSP consume a MQ message as input request



    ------------------------------
    D@viiid
    ------------------------------



  • 4.  RE: Datapower Method Rewrite doesn't when FrontSideHandler is MQ

    Posted Thu April 10, 2025 05:24 AM

    In this case I would do service chaining i.e. the WSP sends the SOAP request to a subsequent MPGW which does the mapping.



    ------------------------------
    Pierce Shah
    Senior IT Specialist
    IBM
    ------------------------------



  • 5.  RE: Datapower Method Rewrite doesn't when FrontSideHandler is MQ

    Posted Thu April 10, 2025 06:29 AM

    too complicated :)

    Finally, I used this command : 

    <dp:url-open target="{$target}" response="responsecode-binary" http-method="put" timeout="30" content-type="application/json" http-headers="$headerValues">

    it's easier but it upsets me :)

    But thanks for your time and your advice 



    ------------------------------
    D@viiid
    ------------------------------