Original Message:
Sent: Thu April 10, 2025 05:24 AM
From: Pierce Shah
Subject: Datapower Method Rewrite doesn't when FrontSideHandler is MQ
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
Original Message:
Sent: Thu April 10, 2025 03:25 AM
From: D@viiid
Subject: Datapower Method Rewrite doesn't when FrontSideHandler is MQ
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
Original Message:
Sent: Thu April 10, 2025 02:28 AM
From: Pierce Shah
Subject: Datapower Method Rewrite doesn't when FrontSideHandler is MQ
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
Original Message:
Sent: Wed April 09, 2025 12:07 PM
From: D@viiid
Subject: Datapower Method Rewrite doesn't when FrontSideHandler is MQ
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
------------------------------