清单10显示客户端使用不同的工作组和用户名连接到一台服务器。
Listing 10 shows the client connecting to a server using a different workgroup and user name.
因为本文讲述如何构建搜索页面,所以在客户端需要有一个页面(参见清单1)来充当搜索工具的用户界面。
Because this article is about building a search page, you need a page on the client side (see Listing 1) to act as the user interface for the search facility.
如果再次运行测试客户端,您应该看到类似清单6输出所示的内容。
If you run the test client again, you should see something like the output shown in Listing 6.
清单7显示了一个新客户端实现,该实现测试返回项的类型。
Listing 7 shows a new client implementation that tests the type of the returned items.
下面的步骤和清单说明服务器和客户端所用的基本配置命令及其输出。
The following steps and listings shows basic configuration commands for server and client and its output.
计算整个网格的工资总额,然后除以网格中的员工总数(清单10).此代码在客户端运行。
Calculate the total of the salaries across the grid and then divide that by the total number of employees in the grid (Listing 10). This code is run client side.
该方法删除了客户端现有策略清单中选中的策略。
This method deletes the selected policies from client's existing policy list.
此时,如果响应可用,则调用立即返回且客户端得以回滚,如下面的清单5所示。
Here the invocation returns immediately and the client gets a callback when the response is available, as shown in Listing 5 below.
这个客户端类如清单2所示。
清单6显示了一个服务客户端SCDL示例。
解析XML(而不是直接使用HTML)的新客户端代码位于清单7中。
The new client-side code that parses XML instead of using the HTML directly is in Listing 7.
插件清单捕获客户端插件将使用哪些LPEX扩展点。
The plug-in manifest captures which LPEX extension points your client plug-in will use.
SOAP客户端将会产生一个请求数据包(清单7)。
The SOAP client will generate a request packet ( Listing 7).
JMS应用程序客户端部分需要清单5所示格式的XML。
The client part of the JMS application requires the XML to be in the format shown in Listing 5.
清单5显示了需要对客户端进行的处理。
Listing 5 illustrates what you need to do for the client side.
当您在JBoss版本4中运行这段代码时,您得到的客户端结果如清单4所示。
When you run this code in JBoss version 4, you get the client-side results in Listing 4.
在客户端类中,取消清单24中addheader调用的注释。
In the client class, uncomment the addHeader invocation in Listing 24.
在客户端类中,取消清单26中的以下Accept头媒体类型设置的注释。
In the client class, uncomment the following Accept header media type setting in Listing 26.
清单7展示了客户端截取程序的invoke方法。
Listing 7 shows the client-side interceptor's invoke method.
清单3:向不同客户端推送数据的代码。
假设您想要定义一个InsufficientFundFault的子类(称为AccountInsufficientFundFault)来携带请求客户端的帐号(查看清单5)。
Suppose you want to define a subclass of InsufficientFundFault, called AccountInsufficientFundFault, to carry the account number of the requesting client (see Listing 5).
清单12.提取流量事件数据的简单客户端。
最后,Claimcheck服务上的checkin操作被调用,且存储附件的文件名返回到调用客户端代码(清单2)。
Finally, the checkin operation on the Claim check service is invoked and the name of the file that stores the attachment is returned to the calling client code (Listing 2).
对于针对CLDC 1.0的Web服务客户端,所生成的存根如清单9所示。
For the Web service client targeting CLDC 1.0, the generated stub is like that in Listing 9.
清单3:一个代理服务的客户端类。
addressing模块激活WS -addressing支持,如清单3客户端代码所示。
The addressing module activates WS-Addressing support, just as in the Listing 3 client code.
下载客户端之后,解压二进制文件,见清单1。
After you have downloaded the client, extract the binaries, as shown in Listing 1.
从生成客户端代码入手,如清单1 中所示的 JsonRestStoreTree.jsp 代码。
Start with the generation of the client-side code, as shown in Listing 1, with the JsonRestStoreTree.jsp code.
该方法向客户端现有的策略清单中添加新的策略。
This method adds a new policy to the client's existing policy list.
利用带新的客户端构件的同一客户端实现请求订单,清单6显示了响应结果。
Using the same client implementation with the new client artifacts to request an order produces the response shown in Listing 6.
应用推荐