-
Nov 25th, 2008, 08:10 PM
#1
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
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