在实践上,这意味着开发人员必须通过手工编写兼容接口、处理WSDL文件甚至动态方法和自我度量,以便为远程对象创建存根。
What this means in practice is that developers create stubs for remote objects by writing compatible interfaces by hand, processing WSDL files, or even dynamic methods and introspection.
无需创建接口和去掉整个模拟对象的存根—您可以有选择地重写方法并返回一个简单的模拟响应。
No need to create an interface and stub out an entire mock object - you can strategically override that one method and return a simple mocked-out response.
因为WSDL包含了对服务接口的完整描述,所以可以使用它来创建能简化服务访问的存根。
Because WSDL contains a thorough description of the interface to a service, it is possible to use it to create stubs that simplify access to the service.
应用推荐