Hi Mohan,
You indicate "set variable(defined content-type: "application/json" - 2nd time)
". How are you doing that? The variable to be set that is returned to the client is message.headers.content-type
. If you're doing that, you should see a response header containing application/json. If you're setting some variable only named content-type, that has no bearing to what is returned to the client.
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------
Original Message:
Sent: Thu September 26, 2024 07:12 PM
From: Mohan Vamsi Mullapudi
Subject: Response Header Content-Type
Hello
raw soap response has Content-Type: text/xml;charset=UTF-8, when I click on json response : "The content you are trying to view cannot be viewed as JSON" because of the content-type
flow : jwt validation -> header Validation -> XSLT(converting json into soap)-> invoke -> xslt(xml to json, have content-type: "application/json") -> set variable(defined content-type: "application/json" - 2nd time) but still raw SOAP response has content-type: text/xml. My API is in OPEN API v3.0.0 . Any pointers.
------------------------------
Mohan Vamsi Mullapudi
------------------------------