如果例如orders.wsdl进口Orders.xsd,怎么能使用静态-WSDL配置有没有办法在Spring WS 2中公开静态XSD?
<sws:static-wsdl id="orders" location="/WEB-INF/wsdl/orders.wsdl"/>
使得Orders.xsd可以在浏览器中查看等http://host/context/Orders.xsd
动态WSDL支撑它。
<sws:dynamic-wsdl id="orders"
portTypeName="Orders"
locationUri="http://localhost:8080/ordersService/">
<sws:xsd location="/WEB-INF/xsd/Orders.xsd"/>
</sws:dynamic-wsdl>
但是static-wsdl没有sws:xsd属性。
这就是我在spring-ws 1.5中所做的。看起来我们被这种有点混乱的方法困住了。 Spring建议使用静态wsdl,但不能为导入的xsd添加'sws:xsd location'。打败我。 – 2012-07-25 05:48:03