发布计算器服务供客户机调用。
The calculator service is published and available for clients to invoke.
实现用于EJB客户端的计算器服务。
目前,我们没有通过计算器服务来公开这些属性。
We do not currently expose these attributes via the calculator service.
此信息用于在我们的计算器服务实现中进行分派。
This information is used to dispatch onto our calculator service implementation.
清单6显示了用于调用计算器服务的客户端代码。
Listing 6 illustrates client code for invoking the calculator service.
清单5显示了一个针对计算器服务的有效SOAP消息。
Listing 5 highlights a valid SOAP message targeted to the calculator service.
为了测试这个轻量级客户机,我决定重新实现计算器服务。
To test this lightweight client, I decided to re-implement the client for the calculator service.
计算器服务是AXIS用户指南中的第二个例子,因此并不很难。
The calculator service is the second example in the AXIS user guide, so it's not too difficult to get started.
清单8展示了对计算器服务的Web服务部署描述符所做的更新。
Listing 8 shows the updates made to the calculator service's Web services deployment descriptor.
它提供基本的业务功能,比如股票报价服务或计算器服务。
It provides basic business functions, such as a stock-quote service or a calculator service.
清单4描述了可以存在于计算器服务会话Bean控制器中的逻辑。
Listing 4 depicts the logic that can exist within the calculator service session bean controller.
要达到此目的,可以创建一个计算器资源并且扩展该计算器服务实现。
To accomplish this, create a calculator resource and extend the Calculator service implementation.
清单1显示了提供简单add函数的一个JAX - WS计算器服务的最简单实现。
Listing 1 shows the simplest implementation of the JAX-WS calculator service that provides a simple add function.
从计算器服务向add服务发出一个简单的add调用似乎使用了一个很长的调用链!
Phew! That seems like a long chain to make a single add call from the calculator service to the add service.
这个来自SCA应用程序的示例具有更加复杂的调用,包括计算器服务和减法服务方法等等。
This example from the SCA application has the more-complicated call from the calculator service to a subtract service method.
我们将用几个步骤开发一个简单的整数计算器服务,它接受SOAP、HTTP - GET或HTTP - POST。
We will develop a simple integer Calculator service in a few steps that accepts SOAP, HTTP-GET, or HTTP-POST.
清单11展示了对于使用隐含的资源(Implied Resource)模式访问计算器服务所需的客户端代码的更新。
Listing 11 shows the updates to the client code needed to access the calculator service using the Implied Resource pattern.
这是包含计算器服务的WebSphereApplicationServerWeb服务运行时的端点地址。
This is the endpoint address of the WebSphere Application Server Web services runtime containing the calculator service.
使请求与对特定的计算器总数的访问相关联的一个可供选择的方法,是使这种相关性成为计算器服务接口正式的部分。
An alternative means of correlating requests to access a particular calculator total is to make that correlation a formal part of the calculator service interface.
清单7展示了一条由客户端程序(该客户端程序选择在控制部分中包含WS -Addressing信息)发送的目标为我们的计算器服务的消息。
Listing 7 shows a message targeted for our calculator service sent by a client program that has chosen to include WS-Addressing information in the control section.
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.
通过使用 WSAD中支持的Web服务向导,我们能够很容易地生成所需的构件来将我们的计算器服务无状态的会话EJB组件作为 Web 服务公开。
We were able to easily generate the necessary artifacts to expose our calculator service stateless session EJB component as a Web service using the Web Services wizard support in WSAD.
开发这个服务的下一步自然是为每个用户分配一个特定的计算器实例。
The natural next step in developing this service would be to allocate each user a particular calculator instance.
它可以利用每个请求的服务实现可用的现有上下文作为理解所要遵照的计算器状态的一种方法。
It could take advantage of existing context that is available to the service implementation on each request as a means for understanding the calculator state that is to be acted upon.
存在很多的方法供服务实现者选择以代表客户端来维护计算器总数。
There are many ways in which the service implementer could choose to maintain the calculator total on behalf of a client.
例如,提供者可以在创建请求者要使用的计算器之前添加逻辑,以便确保请求者在一个为访问这个服务付费的组织中。
For example, the provider could add logic that, before creating a calculator for the requestor to use, ensures that the requestor is in an organization that has paid for access to this service.
请注意,CalculatorService . ear包括完整的源代码,它展示了为把我们的计算器作为一个Web服务资源来公开所做的改变。
Please note that CalculatorService.ear contains the full source code showing the updates made to our calculator to expose it as a Web services resource.
ear同样包括将我们更新的计算器接口作为能够通过使用HTTP上的SOAP调用的Web服务公开的代码。
CalculatorService.ear also contains code that exposes our updated calculator interface as a Web service that can be invoked using SOAP over HTTP.
将计算器状态表示成web服务资源。
Representing the calculator state as a Web services resource.
例如,抵押贷款计算器功能(图中的右侧)调用一个部署在大型机上并使用CICSWeb服务运行的Web服务。
For example, the Mortgage Calculator function (on the right in the figure) invokes a Web service that was deployed onto a mainframe and runs using CICS Web services.
应用推荐