Hi to all! I have this question on how to process some information of a SOAP message before it reaches the AxisServlet. I have a Struts applicacion that can fire a web service, some client in some other computer and platform (.NET) executes this web service as usual. In my struts action, if everything goes alright, i forward the request to axisServlet and execute my webservice. But, i want to handle the soap message before forwading to the axis servlet, cause i want to check some soap message params. The problem is that when i get the message from the request:
Message requestMsg = new Message(request.getInputStream(),false, ...)
And the I do something like getting the SOAP Part:
I am consuming the inputStream from the request, so if everything is ok, and then forwading to the axis servlet I get the following error:
Which simply means that the inputStream is not closed, but it is locked and has no "available" bytes to read, so is very much the same like having no soap message, throwing that SAX exception because there is no a xml to read actually. How coud i solve this issue? or is there any othr way to preprocess the soap message in my action?