Results 1 to 3 of 3

Thread: Using AxiomSoapMessageFactory on server side

  1. #1
    Join Date
    Jul 2008
    Posts
    4

    Default 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

  2. #2
    Join Date
    Dec 2007
    Posts
    25

    Default

    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.

  3. #3
    Join Date
    Jul 2008
    Posts
    4

    Default

    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
  •