简体   繁体   English

Soap Webservice透明WSDL更改

[英]Soap Webservice Transparent WSDL change

I have a webservice [call it S1] exposed and clients call that service and get back response.So good so far. 我有一个公开的Web服务(称为S1),客户端调用了该服务并获得了响应。到目前为止,一切都很好。

I have to change my WSDL a bit [for some very odd reasons] but i dnt want clients to see the change. [出于某些非常奇怪的原因]我必须稍微更改WSDL,但我不希望客户看到更改。 So my idea is to intercept the soap request somewhere b/w server and client and interceptor should modify the soap request and forward to the server.Similarly on response , again interceptor should intercept the request and change some property name and send it to the client. 所以我的想法是在服务器的某个地方拦截soap请求,客户端和拦截器应该修改soap请求并转发到服务器。类似地,在响应时,拦截器应该再次拦截请求并更改一些属性名称并将其发送给客户端。

Any idea how to do this? 任何想法如何做到这一点? One approach IMO is to use handlers but here i dont have control over how server generates service from WSDL. IMO的一种方法是使用处理程序,但在这里我无法控制服务器如何从WSDL生成服务。 How can ESB help in this? ESB如何提供帮助?

Please see its realtime application with huge requests to and from server!!! 请查看它的实时应用程序与服务器之间的巨大请求!!!

像Mule ESB这样的ESB可以通过充当Web服务的代理来提供帮助。

Can you not write a new web service with the new wsdl, then alter the old web service to simply call the new web service. 您是否可以不使用新的wsdl编写新的Web服务,然后将旧的Web服务更改为仅调用新的Web服务。 A bit like overloading a method. 有点像重载方法。 That way you can have V1 and V2 web services. 这样,您就可以拥有V1和V2 Web服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM