在实践上,这意味着开发人员必须通过手工编写兼容接口、处理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.
您需要创建一个存根operation元素,并在创建接口以后填充此引用。
You need to create a stub operation element and fill in this reference after creating the interface.
这将导入WSDL文件,并将在Web项目的src目录中创建接口文件和相关联的存根文件,如图29中所示。
This imports the WSDL file and also creates the interface file and associated stub files in the SRC directory of the Web project, as shown in Figure 29.
向导还创建了一个存根类(假设WSDL包括SOAP/HTTP 的绑定)EchoSoapBindingStub,这个类实现了在上文中定义的echo接口。
The wizard also produces a stub class called (assuming the WSDL includes a binding for SOAP/HTTP) EchoSoapBindingStub that implements the echo interface defined above.
公开服务端点接口并创建Web服务描述语言(Web Service Description Language,WSDL)文件,以描述作为客户机存根生成依据的接口。
Expose the service endpoint interface and create a Web service Description Language (WSDL) file that describes the interface from which to generate the client stubs.
公开服务端点接口并创建Web服务描述语言(Web Service Description Language,WSDL)文件,以描述作为客户机存根生成依据的接口。
Expose the service endpoint interface and create a Web service Description Language (WSDL) file that describes the interface from which to generate the client stubs.
应用推荐