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
------------------------------
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