I have a REST service which uses hypermedias with siren content. To be useable, the client have to send a Accept header with this value:
application/vnd.siren+json
But when I virtualize this service via Centrasite to the Mediator package, requests are rejected.
When I use an accept with only application/json
requests are accepted but the content is without hypermedias links, so it is not useable.
I have changed the content-types.xml
file in resources of package Mediator like that:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<content-types xmlns="http://contentTypes.mediator.softwareag">
<!-- Please enter the custom content-types
<content-type type="xml">
<name></name>
</content-type>
-->
<content-type type="json">
<name>application/vnd.siren+json</name>
</content-type>
</content-types>
With that, requests with siren are now accepted, but without hypermedias content (as with application/json)
How can I force Mediator to accept this accept header and transfer it to the endpoint without changing it?
I use a webMethods Integration Server 9.7 with IS_9.7_Core_Fix19 and a Mediator 9.7.0.0017-0490
Update:
After viewing endpoint logs, it seems that the header and the response are correct, but the response is truncated by mediator. All the siren content is removed from the JSON response, but the response is still well formed, but incomplete, without any log in Mediator even in Debug mode.
Is it a Mediator problem, an axis one, or anything else?