For example:
I have three endpoints and I need to assign on each of them PayloadValidatingInterceptor with particular schema (xsd):Code:<bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping"> <property name="mappings"> <props> <prop key="{http://www.something.org}firstRQ">firstEndpoint</prop--> <prop key="{http://www.something.org}secondRQ">secondEndpoint</prop> <prop key="{http://www.something.org}thirdRQ">thirdEndpoint</prop> </props> </property> <property name="interceptors"> <list> <ref bean="loggingInterceptor" /> <ref bean="requestInterceptor" /> </list> </property> </bean>
on firstEndpoint
on secondEndpointCode:<bean id="firstValidatingInterceptor" class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor"> <property name="schema" value="/WEB-INF/firstRQ.xsd"/> <property name="validateRequest" value="true"/> <property name="validateResponse" value="false"/> </bean>
on thirdEndpointCode:<bean id="secondValidatingInterceptor" class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor"> <property name="schema" value="/WEB-INF/secondRQ.xsd"/> <property name="validateRequest" value="true"/> <property name="validateResponse" value="false"/> </bean>
But I can't find any example how to assign a particular interceptor on a particular endpoint. Does anybody know how to do that?Code:<bean id="thirdValidatingInterceptor" class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor"> <property name="schema" value="/WEB-INF/thirdRQ.xsd"/> <property name="validateRequest" value="true"/> <property name="validateResponse" value="false"/> </bean>


Reply With Quote