Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Marshaller -->
- <bean id="castorMarshaller" class="org.springframework.oxm.castor.CastorMarshaller">
- <property name="mappingLocation" value="classpath:mapping.xml" />
- </bean>
- <!-- Schema for objects used in communication -->
- <bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
- <property name="xsd" value="classpath:src/java/hr.xsd"/>
- </bean>
- <!-- Encryption handler -->
- <bean id="keyStoreHandler" class="org.springframework.ws.soap.security.xwss.callback.KeyStoreCallbackHandler">
- <property name="trustStore" ref="trustStore" />
- <property name="keyStore" ref="trustStore" />
- <property name="privateKeyPassword" value="*****" />
- </bean>
- <!-- Web service client -->
- <bean id="webserviceClient" class="com.mycompany.ws.client.WebServiceClient">
- <property name="defaultUri" value="http://localhost:8084/SpringWebservice/" />
- <property name="marshaller" ref="castorMarshaller" />
- <property name="unmarshaller" ref="castorMarshaller" />
- <property name="interceptors">
- <list>
- <ref local="wsSecurityInterceptor"/>
- </list>
- </property>
- </bean>
- <!-- RSA Keys -->
- <bean id="trustStore" class="org.springframework.ws.soap.security.support.KeyStoreFactoryBean">
- <property name="password" value="*****"/>
- <property name="location" value="classpath:keys.jks"/>
- </bean>
- <!-- Security Interceptor which SHOULD DECRYPT!! -->
- <bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor">
- <property name="policyConfiguration" value="classpath:wss-client-config.xml" />
- <property name="callbackHandlers">
- <list>
- <ref local="keyStoreHandler" />
- </list>
- </property>
- </bean>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement