I recently solved the problem of the direct streaming with Spring WS, thanks to Arjen for the fast response. The trick was to disable payload caching in the Axiom message factory.
I now suffering from that global decision, we have either to enable or disable payload caching for the whole system. We would like to have webservices with streaming and also some which enables validation (which is not possible if payload caching is disabled)
So is it possible to map an specific endpoint to an specific message factory? It’s easy to do with webservice clients, but what about endpoints? Any ideas?
Thank you!
You’re right, it’s very easy on client side passing the specific
WebServiceMessageFactoryinstance to theWebServiceTemplateconstructor.Anyway, I guess it’s also possible on server side.
If you can use different url mappings, the simplest way I found out is based on the configuration of two (or more) differents
MessageDispatcherServletin yourweb.xml. Then you just have to pass as init parameter the specific bean name of theWebServiceMessageFactoryinstance you prefer. Something like this:Then, you just have to add your different message factory beans to your spring-ws context.
Hope this helps.