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
相关文章
更多Drupal Forums instead of phpBB or vBulletin: A casestudy
Becoming a data scientist
Solr: a custom Search RequestHandler
trouble is a friend
ServletOutputStream cannot be resolved to a type
Spring Data: a new perspective of data operations
Stack Overflow Architecture Update - Now At 95 Million Page Views A Month
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!