Generating client-side components for the sample ws-resource.
生成样本ws - Resource的客户端组件。
To deploy the WS-Resource as a feature, perform these steps.
若要将WS - Resource部署为特性,请执行以下步骤。
Set up a topic to be published upon creation of a new WS-Resource instance.
通过创建一个新的Web服务资源实例来设置要发布的主题。
This code simulates a component that changes the state of the Calculator WS-Resource.
该代码可以模拟组件来更改Calculator Web服务资源的状态。
Use the WS-Resource client wizard (of the Mobile Web Services toolkit) to generate the client stub code.
使用(MobileWebServicestoolkit的)WS - Resourceclient向导来生成clientstub代码。
Figure 8 shows the relationship between all four specifications with respect to the WS-Resource Framework.
图8显示了所有这四个规范相对于WS - Resource Framework的关系。
In the previous section, you saw how immediate destruction support can be added to the calculator WS-Resource.
在前一部分中,您了解了如何将立即销毁支持添加到计算器Web服务资源。
The clients of the Calculator WS-Resource can now call the destroy method to explicitly destroy it, as shown in Listing 4.
计算器Web服务资源的客户端现在可以调用destroy方法来显式地销毁它,如清单4中所示。
Listing 8 wraps the call to the WS-Resource in a convenient function that can be called from anywhere within your HTML page.
清单8将对WS - Resource的调用包装在可以从html页中的任何位置调用的适当函数中。
The WS-Resource Lifetime specification standardizes the means by which a resource with a dynamic life cycle can be destroyed.
Web服务资源生命周期(WS - ResourceLifetime)规范标准化了销毁具有动态生命周期的资源的方法。
The Web services resource Framework (WS-Resource) defines a family of specifications for accessing stateful resources using Web services.
Web服务资源框架(WS - Resource)定义了使用Web服务访问有状态资源的一系列规范。
Initiate a change in state of the WS-Resource that results in the Web service producing a notification message which it then sends to the broker.
Web服务资源状态的改变使Web服务产生通知消息并将消息转送至代理。
Also in the previous code snippet, the OperationContext has been used to set up the communication channel between the client and the WS-Resource.
在前面的代码片段中,OperationContext用于建立客户机和WS - Resource之间的信道。
The Web Services Resource Framework (WS-Resource -- see Resources) defines a family of specifications for accessing stateful resources using Web services.
Web服务资源框架(WS-Resource,请参阅参考资料)定义了使用 Web 服务访问有状态资源的一系列规范。
The custom port types of the WS-Resource (also referred to as service methods) are generated as part of the AddressServiceManager of the adapter component.
WS - Resource的定制端口类型(也称为服务方法)是适配器组件的AddressServiceManager的一部分。
WS-Resource Framework is essential where the stateful resources involved in the Web services interaction such as shopping cart, printer, print job, and so on.
在Web服务交互涉及到有状态资源(如购物车、打印机、打印作业等等)的情况下,WS - ResourceFramework是必需的。
This paper showed you how a Web service interface can provide access to the properties of a WS-Resource whose state is modeled using an entity bean with CMP/A.
本文向您说明了对于使用CMP/A实体bean对其状态建模的Web服务资源,Web 服务接口如何提供对该资源属性的访问。
You have now seen how the scheduled destruction of a WS-Resource can be implemented using the scheduler service in WebSphere Application Server, Enterprise Edition.
现在您已经看到了可以如何使用WebSphereApplicationServerEnterpriseEdition中的调度程序服务来实现Web服务资源的预定销毁。
To focus the attention on the method and the tools used to develop a WS-Resource, let's use a very simple data object, such as Address, and model it as a WS-Resource.
为了将精力集中在用来开发WS - Resource的方法和工具上,我们将使用一个非常简单的数据对象(例如address)作为WS - Resource进行建模。
You can also have the WS-Resource client set this interval by calling the SetTerminationTime operation, provided that the Calculator Web service implements the operation.
您还可以通过调用SetTerminationTime 操作来让Web服务资源的客户端设置此时间间隔。
The WS-Resource provider wizard generates two projects in the Eclipse workspace, one each of the two provider-side bundles, namely, the adapter bundle and the Web services bundle.
WS - ResourceProvider向导将在Eclipse工作区中生成两个项目,用于两个提供程序端bundle,即适配器bundle和Web服务bundle。
To support immediate destruction, the Calculator WS-Resource has to support the destroy message exchange pattern so that a service requestor can request the resource's immediate destruction.
为了支持立即销毁,计算器Web 服务资源必须支持销毁消息交换模式,只有这样,服务请求者才可以请求资源的立即销毁。
The PublisherHelper provides a publish method that the WS-Resource USES to publish any change in the values of its resource properties. The publish method takes the following parameters as input.
PublisherHelper提供publish方法,Web服务资源可以使用该方法发布自身资源属性值的任何更改。
The framework does not cache these values; however, the framework maintains a list of all valid resource property names in the resource property document for any given instance of the WS-Resource.
资源框架不会缓存这些值;但是框架将为任何给定的WS - Resource实例维护ResourceProperty文档中所有有效资源属性名称的列表。
WS-Notification provides a standard method for a client (the consumer) to subscribe to notifications about a particular resource.
WS - Notification为客户机(使用者)提供了一个标准方法用于订阅关于特定资源的通知。
In other words, we are replacing the resource properties document with a JSON object and using HTTP methods in lieu of WS-RP methods.
换句话说,我们正使用JSON对象替代资源属性文档,并使用HTTP方法替代WS - RP方法。
In other words, we are replacing the resource properties document with a JSON object and using HTTP methods in lieu of WS-RP methods.
换句话说,我们正使用JSON对象替代资源属性文档,并使用HTTP方法替代WS - RP方法。
应用推荐