webservice calling another webservice

自作多情 提交于 2019-12-25 09:26:32

问题


Does anyone know how to call one webservice from another webservice? Is it even possible? I am using weblogic but it doesnt really go into details with regards to how the WSDLs would change from the invoking web service to the second one.

Any tips on how I would call one form another would be appreicated.

thanks

Mark


回答1:


I can't speak for web logic, but for Web services, and of course it is possible to call Web services from Web services. The WSDL does not change at all since it only describes the public interface of your service, which does not change if you decide to out-source the internal logic to another service. What you probably need to do is to generate a Web service client based on the WSDL of the second service. This generated code can then be used by the first service.

As an alternative you may want to look into WS-BPEL. It is a domain specific language for composite services, i.e. for stitching multiple WSDL services together in order to provide a higher-level WSDL service. Eclipse BPEL Designer could be starting point for the modelling tool, Apache ODE for the runtime.



来源:https://stackoverflow.com/questions/5751089/webservice-calling-another-webservice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!