Hi,
One of my clients exposed the following service for us to invoke from OSB 12c.
Uri: http://localhost/TestService
Http Method: DELETE
Body payload :
{
"param1" : "xyz",
"param2" : "test"
}
content-type : application/json
REST adapter's DELETE method expects input as query/template params and not Body.
Hence, I am not able to use it.
But I tried using HTTP protocol adapter in OSB. Chose Service Type as Rest. And set the following params -
Body -
{
"param1" : "xyz",
"param2" : "test"
}
Outbound:
<con:mode>request-response</con:mode> |
<con:qualityOfService>best-effort</con:qualityOfService> |
<http:Accept>application/json</http:Accept> |
<http:Content-Type>application/json</http:Content-Type> |
<http:http-method>DELETE</http:http-method> |
<con:doOutboundWss>true</con:doOutboundWss> |
HTTP, Accept and Content-type - all are set correctly. But still I am getting 400 Invalid request error.
Can you please let me know if OSB (http adapter/rest adapter) supports DELETE with payload in body?
Thanks!!!