Announcement Announcement Module
Collapse
No announcement yet.
How to configure in spring for client interface Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to configure in spring for client interface

    Hi,

    I have a WSDL with me. I need to create Client interface.

    I have used WSDL2Java command from Axis to create POJOs , It has created 60 POJOs, I included them in my project.

    I need to create an interface using Spring Webservices.

    What else do I need to have to use marshalSendAndReceive method.

    I don't have any Request or Response classes created.

    Please help me in writing the method and configuring in application context.

    Thanks in advance.

    My spring configuration would look like:

    <bean id="marshaller"
    class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
    </bean>
    <bean id="webserviceTemplate"
    class="org.springframework.ws.client.core.WebServi ceTemplate">
    <property name="messageFactory">
    <bean
    class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory" />
    </property>
    <property name="messageSender">
    <bean id="messageSender"
    class="org.springframework.ws.transport.http.HttpU rlConnectionMessageSender" />
    </property>
    <property name="defaultUri" value="${ERPServicesEndPointUrl}" />
    <property name="marshaller" ref="marshaller" />
    <property name="unmarshaller" ref="marshaller" />

    Thanks in advance,
    Vuppala
Working...
X