How can i chnage the HTTP Method in wso2 esb using java class mediator currently I am using mc.setDoingGET(false); mc.setDoingPOX(true); I want to take a post request to ESB and then send to a webservice via GET or vice versa but the above code is not working at all
Use the property mediator with property name: HTTP_METHOD and http method name as the value (GET,POST etc) and scope as 'axis2'.
If you want to change this property in the java class level, you may do the following:
msgCtx.setProperty(Constants.Configuration.HTTP_METHOD, "GET");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With