I have a axis2 (v 1.5.6) generated stub using wsdl2java and the request generated from the stub consists of unwanted soap web service addressing (wsa) attributes which are not required in the request,the endpoint which receives this request does not support this.
I have seen lot of methods to remove the elements by iterating the entire soap envelope manually,but i need some method to disable it completely from the stub or entire axis2 itself.Below is the elements generated in the request.
PS:The wsdl does'nt even define wsa is required.
Any answer is appreciated.Thanks.
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>url</wsa:To>
<wsa:MessageID>F94EAE5F6CECC13E7F1610961403620</wsa:MessageID>
<wsa:Action>Upload</wsa:Action>