Hi Team ,
We have Implemented simple MPGW service
This service should works like calling the back end with "post" method and the request content type should be the "application/json" so the input request body is json message
Here we are calling a Dynamic Back-end (we are implemented xslt just for the URI concatenation Rest all the data we are passing through as it is no changes in the content type in the processing rule)
But before reaching to the back-end the content type is automatically getting changed to text/html instead of json and it not supported by back end
Note : It is working when we tried with static back-end
Please find below error which we are getting as a Response
HTTP/1.1 200 OK
X-Backside-Transport: FAIL FAIL
Connection: Keep-Alive
Transfer-Encoding: chunked
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json
Expires: -1
Date: Fri, 06 Jan 2023 08:42:48 GMT
Set-Cookie: SESSION-GOAGD60EKGF=5ccba3d837877882f1754a821a7fb5a1f0fa08fa96070967543e23cc3245d722cb9c9607;expires=Fri, 06-Jan-2023 09:42:49 GMT;path=/;secure;httponly
X-Client-IP: 10.1.23.30
X-Global-Transaction-ID: 78261473
{"Message":"The request entity's media type 'text/html' is not supported for this resource.","ExceptionMessage":"No MediaTypeFormatter is available to read an object of type 'UpdateBagInformationRequest' from content with media type 'text/html'.","ExceptionType":"System.Net.Http.UnsupportedMediaTypeException","StackTrace":" at System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)\r\n at System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage request, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)"}
------------------------------
HARSHAVARDHAN SANTHALA
------------------------------