Multi-Language Programming : Simplifying web service programming

本文探讨了通用对象环境如何管理多种语言的接口对象,并通过实现SOAP接口成为WebService代理,简化了WebService开发。应用程序在此环境中调用WebService如同本地函数调用一样便捷。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

     Let’s go deeper into common object environment. The environment manages interface objects of multiple different languages and provides interface to these languages to define object’s attributes, functions and events. It holds all information and parameters about the objects.       Therefore, it can act as a proxy to other applications outside to complete some functions or function calls.
    Web service is a popular method of remote call, which uses SOAP as interface standard. Common object environment can implement SOAP interface, and thus become a proxy for web service. This will simply the development of web service. The applications, components or libraries developed based on the environment may not aware of web service call. There are no difference between web service calls and normal calls. Let’s use a diagram to further illustrate.

    In above figure, a class object defined in java language has a function “Add”. For its c/c++ instance, application can call “Add” function through environment as previously talked about. The “Add” function of c/c++ instance can also be used as web service. In this case, the WSDL file can be generated automatically by environment proxy. Other application can get WSDL of the instance by http post request. Then, they can initiate web service call, and the proxy routing the call to the function of the class object. The class object does not know whether the call is web service call or normal function call. It only needs to implement the “Add” function body using java. Is it simple?
    Common object environment holds all information of interface. Thus, it can act as a proxy and generate WSDL file to provide web service function to outside applications, which will simply the development of web services.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值