第一个是头文件,它声明库导出的所有函数,而且代码中的客户机包括这些函数。
The first is a header file, which declares all the functions exported by the library and will be included by the client in the code.
就像桌面应用一样,我们可以把一个应用服务器列表嵌到客户端代码里,Web客户端包括一个称为Servers . XML的文件,它保存了可用服务器的列表。
Just like the desktop client above, we can embed our list of application servers into the client code. The web client contains a file called "servers.xml", which has a list of available servers.
jsp(它包含在CalculatorService . ear中)包括用于调用我们作为Web服务的计算器服务的样本客户端代码。
CalculatorTestExecute.jsp (which is included in CalculatorService.ear) contains sample client code for invoking our calculator service as a Web service.
应用推荐