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

Reply via email to