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)文件,以描述作为客户机存根生成依据的接口。
Create a new class in Eclipse (call it MockConection) that implements the Connection interface. Check the option to generate stubs for inherited abstract methods (see Figure 2).
在Eclipse中创建一个完成Connection接口的新类(称它为MockConection),检查为继承的抽象方法产生桩模块的选项(见图2)。
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.
因为WSDL包含了对服务接口的完整描述,所以可以使用它来创建能简化服务访问的存根。
应用推荐