Spring-WS:SimpleWsdl11Definition,具有WSDL的多节点分类(Spring-WS: SimpleWsdl11Definition with a multi-node taxonomy for WSDL)
Spring-WS 1.5:使用SimpleWsdl11Definition,在XML配置中公开WSDL很简单(来自Spring-WS doc):
<bean id="orders" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition"> <constructor-arg value="/WEB-INF/wsdl/Orders.wsdl"/> </bean>
产生一个公开WSDL的URL:
http://localhost:8080/spring-ws/orders.wsdl
SimpleWsdl11Definition bean id +“.wsdl”在部署时成为WSDL URL的叶子,它涵盖了单节点分类。
我需要支持具有多节点分类法的WSDL的暴露。
例如:
http://localhost:8080/spring-ws/domain/subdomain/foo.wsdl
这是如何在Spring-WS中完成的? Bean ID属性不允许使用“/”字符,因此我想知道影响WSDL URL的方式有哪些。
注意:使用生成的WSDL将不会选项(出于向后一致性的原因),例如使用DefaultWsdl11Definition。 与SimpleWsdl11Definition一样,我想将WSDL的请求映射到静态WSDL。
谢谢。
Spring-WS 1.5: Using SimpleWsdl11Definition, exposing a WSDL is straightforward (from Spring-WS doc) in XML configuration:
<bean id="orders" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition"> <constructor-arg value="/WEB-INF/wsdl/Orders.wsdl"/> </bean>
Yields a URL exposing the WSDL at:
http://localhost:8080/spring-ws/orders.wsdl
The SimpleWsdl11Definition bean id + ".wsdl" becomes the leaf of the WSDL's URL when deployed, which covers a single-node taxonomy.
I need to support exposure of WSDLs that have multi-node taxonomies.
For instance:
http://localhost:8080/spring-ws/domain/subdomain/foo.wsdl
How is this accomplished in Spring-WS? Bean ID attributes do not allow "/" characters, so I wonder what ways exist to influence the WSDL URL.
Note: Using generated WSDLs will not be on option (for backward-consistency reasons), for instance with DefaultWsdl11Definition. As with SimpleWsdl11Definition, I'd like to map requests for the WSDL to the static WSDL.
Thanks.
原文:https://stackoverflow.com/questions/3407855