-
Jul 3rd, 2008, 06:56 AM
#1
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.
ameremortal
-
Jul 3rd, 2008, 08:54 AM
#2
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.
<bean id="messageFactory"
class="org.springframework.ws.soap.axiom.AxiomSoap MessageFactory">
<property name="payloadCaching" value="false"/>
</bean>
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
#3
Thanks a lot jimcummings! It helped.
I used MessageDispatcherServlet so it worked smoothly for me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules