根据 https://channel9.msdn.com/Forums/TechOff/203516-Whats-a-proxy-stub 的定义
Proxy is the piece of code that doesn't perform any functions of its own, but instead is responsible for calling the real code.
但我不清楚 stub ,
什么是 stub ,它有什么作用?
两者有什么区别?
最佳答案
假设您在谈论 RPC[ 1 ] Web 服务中的系统(SOAP[ 2 ]、REST[ 3 ] 等)
What is stub?
远程对象的 stub 充当远程对象的客户端代理(本地代表)。
what it does?
它负责对方法调用者调用的远程对象进行方法调用。
关于web-services - 什么是 Web 服务中的代理和 stub ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48611273/