Would somebody please give me some pointers on how to setup an XML translation filter on POST?
The idea is for the JBossWS stuff to see my translated XML to create its message from so the filter must run before the @WebService servlet.
I am trying to get the JBossWS stuff to read RPC/encoded SOAP messages, and was thinking that I might be able to run the XML through a filter on POST to spit out RPC/literal XML that the JBossWS code could then understand.
Never mind, it was easier than I thought. The servlet doesn't do anything until after the filters run, so all you have to do is pass in a modified ServletRequest to the next filter on the chain.
The trickiest part is faking an HttpServletRequest with the modified String as the ServletInputStream.