<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oxm="http://www.springframework.org/schema/oxm"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- contextPath - package where to find request and response classes to marshall / unmarshal
if request and response are in different packages, declare marshaller and unmarshaller separately -->
<oxm:jaxb2-marshaller id="jaxb2marshaller" contextPath="eu.geomodel.schema.ws.pvplanner"/>
<bean id="pvPlannerTemplate" class="org.springframework.ws.client.core.WebServiceTemplate"
p:marshaller-ref="jaxb2marshaller" p:unmarshaller-ref="jaxb2marshaller"
p:defaultUri="https://solargis.info/ws/soap/pvPlanner"> <!-- web service endpoint uri -->
<property name="interceptors">
<list>
<bean class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"
p:securementActions="Timestamp UsernameToken"
p:securementUsername="demo"
p:securementPassword="demo"/>
</list>
</property>
</bean>
</beans>
|