Spring's Object/XML Mapping support : Converting an XML document to and from an object. This conversion process is also known as XML Marshalling, or XML Serialization.
a marshaller is responsible for serializing an object (graph) to XML
an unmarshaller deserializes the XML to an object graph
<oxm:jaxb2-marshaller id="anyWSMarshaller" contextPath="com.utkarsh.org.phase2.jaxbgenerated"/>
<bean id="anyServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
<property name="marshaller" ref="acbsPaymentsAdvancesWSMarshaller"/>
<property name="unmarshaller" ref="acbsPaymentsAdvancesWSMarshaller"/>
<property name="defaultUri" value="http://localhost:8080/SpringOXMApp/anyUrl/testService"/>
a marshaller is responsible for serializing an object (graph) to XML
an unmarshaller deserializes the XML to an object graph
<oxm:jaxb2-marshaller id="anyWSMarshaller" contextPath="com.utkarsh.org.phase2.jaxbgenerated"/>
<bean id="anyServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
<property name="marshaller" ref="acbsPaymentsAdvancesWSMarshaller"/>
<property name="unmarshaller" ref="acbsPaymentsAdvancesWSMarshaller"/>
<property name="defaultUri" value="http://localhost:8080/SpringOXMApp/anyUrl/testService"/>
<property name="messageSenders">
<list>
<ref bean="httpMsgSender"/>
</list>
</property>
<property name="interceptors">
<list>
<ref bean="anyWSecurityInterceptor" />
</list>
</property>
</bean>
Comments
Post a Comment