get paid to paste

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:p="http://www.springframework.org/schema/p" 
	xmlns:util="http://www.springframework.org/schema/util" 
	xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/aop
           http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-2.5.xsd
           http://www.springframework.org/schema/util 
       	   http://www.springframework.org/schema/util/spring-util-2.0.xsd">
	<description>Example configuration to get you started.</description>

	<context:component-scan base-package="co.uti.oi" />
	<bean id="myClientWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate" 
	p:defaultUri="http://localhost:8003/services/ProcessProductOrder_V0_2?wsdl"	
	p:marshaller-ref="myMarshaller" p:unmarshaller-ref="myUnmarshaller">
		<constructor-arg ref="myMessageFactory"/>		 
	</bean>
	
	<bean id="myMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
		<property name="soapVersion">
            <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_11"/>
        </property>  
         <property name="messageFactory">
                <bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"/>
         </property>      
         
	</bean>

	<bean id="myMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
		<property name="contextPath" value="com.test.vo"/>
	</bean>

	<bean id="myUnmarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
	   <property name="contextPath"     value="com.test.vo"/>
	</bean>
	<bean id="webserviceClient" class="com.test.SpringWSClient">
	 <property name="myClientWebServiceTemplate"  ref="myClientWebServiceTemplate"></property>
	</bean>
  

</beans>

Pasted: Jul 19, 2011, 3:00:13 pm
Views: 46