-
Mar 19th, 2009, 11:23 AM
#1
Multiple schema file problem
Hi
I am having a problem for multiple schema.
Two schema file,
One is:
<bean id="orderSchema" class="....">
<property name="xsd" value="/WEB-INF/xsd/Orders.xsd"/>
</bean>
Another one is:
<bean id="customerSchema" class=".....">
<property name="xsd" value="/WEB-INF/xsd/Customer.xsd"/>
</bean>
Here is my DefaultWsdl
<bean id="orders" class=".....DefaultWsdl11Definition">
<property name="schema" ref="orderSchema"/>
<property name="portTypeName" value="Orders"/>
<property name="locationUri" value="http://localhost:8080/order/"/>
</bean>
<bean id="orders" class="org.springframework.ws.wsdl.wsdl11.DefaultW sdl11Definition">
<property name="schema" ref="customerSchema"/>
<property name="portTypeName" value="Orders"/>
<property name="locationUri" value="http://localhost:8080/customer/"/>
</bean>
I want two location Uri here for two schema file. Now how can i map those two schema file in my
<bean id="orderMapping"
class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping">
<property name="interceptors">
<list>
<ref bean="wsSecurityInterceptor"/>
<bean class="org.springframework.ws.server.endpoint.inte rceptor.PayloadLoggingInterceptor"/>
<bean class="org.springframework.ws.soap.server.endpoint .interceptor.PayloadValidatingInterceptor">
<property name="xsdSchemaCollection" ref="orderSchema"/>
<property name="validateRequest" value="true"/>
<property name="validateResponse" value="false"/>
</bean>
</list>
</property>
<property name="order" value="1"/>
</bean>
Here how can i add two schema reference in xsdSchemaCollection property or is there any alternative way?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules