web-services - 什么是 Web 服务中的代理和 stub ?

标签 web-services proxy stub

根据 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/

相关文章:

web-services - 如果 SPF 记录限定符包含在另一个 SPF 记录中,如果父记录比子记录更严格,对 SPF 记录限定符有什么影响?

proxy - 什么时候应该在 HTTP 代理服务器上使用 CONNECT 和 GET HTTP 方法?

python - 无法将代理和链接传递到线程池以获取结果

c++ - 如何在 C 中 stub 套接字?

java - 重用 javax.xml.ws.Service 对象安全吗?

C#/Java - 从 Android 模拟器使用 WCF 服务

javascript - Cypress : stub 打开的窗口

ruby - 如何使用 RSpec stub Array 实例方法

java - 调用 web 服务 : javax.net.ssl.SSLException:收到致命警报:protocol_version

java - Java中读取系统代理