Jul 3rd, 2008, 06:56 AM
Using AxiomSoapMessageFactory on server side
I am interested to know how exactly I can use a AxiomSoapMessageFactory in my web service implementation. In the tutorial I saw the way to do it for the client code through the messageFactory, but I was not able to find a way to use Axiom in server implementation.
Jul 3rd, 2008, 08:54 AM
If you're using the MessageDispatcherServlet or the JMS-based WebServiceMessageDrivenBean, then it will automatically detect a top-level bean with the name of message factory. So something like the following as a top-level bean would do.
<property name="payloadCaching" value="false"/>
But if you're using a message receiver that extends WebServiceMessageReceiverObjectSupport like WebServiceMessageReceiverHandlerAdapter or the JMS-based WebServiceMessageListener, then I think having messageFactory as a top-level bean isn't enough, you would need to inject the above messageFactory bean into your message receiver via its setMessageFactory() method.
Jul 3rd, 2008, 09:42 AM
Thanks a lot jimcummings! It helped.
I used MessageDispatcherServlet so it worked smoothly for me.