It is a good practice to keep schema external to your wsdl.
In Spring WS documentation it is not clearly mentioned how to publish wsdl with external schema.
After some time searching google i managed to found the solution:
<!-- WSDL -->
<sws:static-wsdl id="BookingFacadeService" location="/WEB-INF/wsdl/BookingFacadeService.wsdl" />
<!-- Schema -->
<bean
id="BookingFacadeService_schema"
class="org.springframework.xml.xsd.SimpleXsdSchema">
<property
name="xsd"
value="/WEB-INF/wsdl/BookingFacadeService_schema.xsd">
</property>
</bean>
BookingFacadeService.wsdl is my wsdl which include the external schema BookingFacadeService_schema.xsd.
Комментариев нет:
Отправить комментарий