Advertisement
Guest User

Untitled

a guest
Dec 15th, 2009
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.90 KB | None | 0 0
  1. <!-- Marshaller -->
  2.     <bean id="castorMarshaller" class="org.springframework.oxm.castor.CastorMarshaller">
  3.         <property name="mappingLocation" value="classpath:mapping.xml" />
  4.     </bean>
  5.  
  6.     <!-- Schema for objects used in communication -->
  7.     <bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
  8.         <property name="xsd" value="classpath:src/java/hr.xsd"/>
  9.     </bean>
  10.  
  11.     <!-- Encryption handler -->
  12.     <bean id="keyStoreHandler" class="org.springframework.ws.soap.security.xwss.callback.KeyStoreCallbackHandler">
  13.         <property name="trustStore" ref="trustStore" />
  14.         <property name="keyStore" ref="trustStore" />
  15.         <property name="privateKeyPassword" value="*****" />
  16.     </bean>
  17.  
  18.     <!-- Web service client -->
  19.     <bean id="webserviceClient" class="com.mycompany.ws.client.WebServiceClient">
  20.         <property name="defaultUri" value="http://localhost:8084/SpringWebservice/" />
  21.         <property name="marshaller" ref="castorMarshaller" />
  22.         <property name="unmarshaller" ref="castorMarshaller" />
  23.         <property name="interceptors">
  24.             <list>
  25.                 <ref local="wsSecurityInterceptor"/>
  26.             </list>
  27.         </property>
  28.     </bean>
  29.     <!-- RSA Keys -->
  30.     <bean id="trustStore" class="org.springframework.ws.soap.security.support.KeyStoreFactoryBean">
  31.         <property name="password" value="*****"/>
  32.         <property name="location" value="classpath:keys.jks"/>
  33.     </bean>
  34.     <!-- Security Interceptor which SHOULD DECRYPT!! -->
  35.     <bean id="wsSecurityInterceptor"  class="org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor">
  36.         <property name="policyConfiguration" value="classpath:wss-client-config.xml" />
  37.         <property name="callbackHandlers">
  38.             <list>
  39.                 <ref local="keyStoreHandler" />                
  40.             </list>
  41.         </property>
  42.     </bean>
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement