网络服务调用另一个网络服务 [英] webservice calling another webservice

查看:32
本文介绍了网络服务调用另一个网络服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何从另一个网络服务调用一个网络服务?甚至有可能吗?我正在使用 weblogic,但它并没有真正详细介绍 WSDL 如何从调用 Web 服务更改为第二个服务.

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.

谢谢

标记

推荐答案

我说的不是 Web 逻辑,而是 Web 服务,当然也可以从 Web 服务调用 Web 服务.WSDL 根本没有改变,因为它只描述了服务的公共接口,如果您决定将内部逻辑外包给另一个服务,它也不会改变.您可能需要做的是根据第二个服务的 WSDL 生成一个 Web 服务客户端.然后,第一个服务可以使用此生成的代码.

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.

作为替代方案,您可能希望研究 WS-BPEL.它是一种用于复合服务的领域特定语言,即将多个 WSDL 服务拼接在一起以提供更高级别的 WSDL 服务.Eclipse BPEL Designer 可以作为建模工具的起点,Apache ODE 用于运行时.

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.

这篇关于网络服务调用另一个网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆