小编Dar*_*hop的帖子

如何:配置Spring-WS以使用“?WSDL”样式的URL发布WSDL文件?

我正在尝试使用Mule ESB配置Web服务代理。

我正在尝试使用Mule的WSProxyService进行此操作,但是在逐步调试了相应的代码(使用调试器)之后,很显然该类将替换端点地址。

问题是Spring-WS WSDL地址的样式为http://xxxx/xxxx.wsdl,但是WSProxyService期望使用http:// xxxx / xxxx?wsdlhttp:// xxxx / xxxx&wsdl。它将远程端点地址替换为本地WSDL地址;它在问号处剪切了远程WSDL地址,即“?WSDL”打算被切掉,以便创建搜索词。但是由于Spring-WS,这是行不通的。

分解:

WSProxyService最终尝试使用

http://xxxx/xxxx.wsdl
Run Code Online (Sandbox Code Playgroud)

取代

http://xxxx/xxxx
Run Code Online (Sandbox Code Playgroud)

http://yyyy/yyyy
Run Code Online (Sandbox Code Playgroud)

失败...导致实际的Web服务调用直接而不是通过代理进行。

有没有人注意到/解决了这个问题?

干杯,达伦

web-services spring-ws mule

5
推荐指数
2
解决办法
6423
查看次数

标签 统计

mule ×1

spring-ws ×1

web-services ×1