Thank you Fazlan it worked. On Sat, Nov 23, 2019, 17:20 Fazlan Nazeem <[email protected]> wrote:
> Hi Shiva, > > You should be able to it by placing the following property in the in > sequence. > > <property name="FORCE_POST_PUT_NOBODY" value="true" scope="axis2" type= > "BOOLEAN"/> > > On Thu, Nov 21, 2019 at 4:16 PM Shiva Kumar <[email protected]> > wrote: > >> Hi Team, >> >> I have a backend API which has POST request with empty body and the >> content type is application/json but WSO2 API manager 2.1.0 is rejecting >> the request with 400 bad request response. Is it possible to send post >> request with empty body? >> >> I tried to check if the body is empty in my custom in sequence like this >> but even for both empty and non empty body log is showing Message Body >> Blank. >> >> <filter xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" >> source="$body" xpath="boolean(//soapenv:Body/*[1])"> >> <then> >> <log level="info"> >> <property value="Message Body Available" name="A"/> >> </log> >> </then> >> <else> >> <log level="info"> >> <property value="Message Body Blank" name="B"/> >> </log> >> </else> >> </filter> >> >> Thanks, >> >> Shiva >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> > > > -- > Thanks & Regards, > > *Fazlan Nazeem | *Associate Technical Lead | WSO2 Inc > Mobile : +94772338839 | [email protected] > > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
