What is the difference between web service and remoting?

前端 未结 7 1648
轮回少年
轮回少年 2021-02-04 04:17

I know web service and have some knowledge on remoting. Both concepts invoke methods on the client machine so where lies the difference ??

Through remoting we can also e

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-04 04:42

    .NET Remoting concept is a Microsoft/.NET specific interprocess communication technology.

    The term "Web service" is very diffuse due to its hype. But I think the W3C definition is intended in most cases. It defines the use of WSDL as interface description and SOAP as message protocol.

    According to Microsoft .NET Remoting: A Technical Overview on MSDN, Remoting uses either a binary or XML encoding. Whereas the XML encoding uses SOAP. But as far as I know, it does not adhere to the WS-I Basic Profile. Hence, it provides an extremely limited Web service interoperability.

    Both concepts allow interprocess communication. If your application only uses .NET, then using .NET Remoting is a good choice.

    However, if you plan to provide interoperability with other programming languages than you should use Web services.

提交回复
热议问题