[Dev] When to use NO_ENTITY_BODY

2016-07-28 Thread Udara Liyanage
Hi, According to [1], NO_ENTITY_BODY property is set if the client want to get response with entities for requests which does not have an entity body such as GET and DELETE. 1) My first question according to [1] by default ESB will not send a response for requests without body. That is OK for DEL

Re: [Dev] When to use NO_ENTITY_BODY

2016-07-28 Thread Vijitha Ekanayake
Hi Udara, We need to remove NO_ENTITY_BODY property if we want to generate a response from the ESB itself to a request without an entity body, for example, GET request. According to commit[1], NO_ENTITY_BODY property programmatically removed from the code as an improvement in PayloadFactory mediat

Re: [Dev] When to use NO_ENTITY_BODY

2016-07-28 Thread Vijitha Ekanayake
[adding commit revision] https://github.com/VijithaEkanayake/wso2-synapse-1/commit/ba2ba967079de74971454064f126360a38a9c878 On Thu, Jul 28, 2016 at 3:02 PM, Vijitha Ekanayake wrote: > Hi Udara, > > We need to remove NO_ENTITY_BODY property if we want to generate a > response from the ESB itself