cs包含服务代码的主要部分。
清单4显示了Web服务代码。
首先,让我们检查例9中显示的异步服务代码。
First, let's examine the code for the asynchronous service, shown in Example 9.
可以保证线程与中断服务代码的互斥。
It ensures mutual exclusion among threads but also interrupt handling code.
该控制器类包含可用于客户机的Web服务代码。
The controller class contains the code the Web service makes available to a client.
在代码编辑器中打开实体服务代码文件。
在轴心点实现高速缓存系统将其与服务代码分离开来。
Implementing the caching system at the pivot point isolates it from the service code.
这些设置与Web服务代码产生器有紧密的联系。
These settings are closely related to the Web services code generation.
这个练习的目标是将高速缓存与实际的Web服务代码分离开来。
The goal in this exercise is to isolate the cache from the actual web service code.
您应该已经能更好地避免自底向上的Web服务代码生成问题了。
You should be in a much better position to avoid bottom-up Web services code generation problems.
此服务代码以框架实现的形式生成,其中包含直接引发异常的服务方法。
This service code is generated in the form of a skeleton implementation, with service methods that just throw an exception.
如服务代码中所示,我使用SOAPContext请求对象来获取附件信息。
I use the SOAPContext request object to get the attachment information as shown in the service code.
换句话说,它就是Web服务代码中带有用户可访问的public方法的类。
In other words, it's the class in the Web service code with public methods that users can access.
因为服务是一个分离关注点,建议你把服务代码放到它自己的文件里。
Given that the service is a separate concern, we suggest that you write the service code in its own file.
对于大客户和经销商,采用服务代码识别,提供优于普通用户的服务。
For large customers and distributors, service code used to identify and provide superior to ordinary users.
服务代码实现WSDL接口并将业务与映射逻辑应用于调用和映射来自后端系统的结果。
The service code implements the WSDL interface and applies business and mapping logic to call into and map results from backend systems.
这里介绍的是如何利用一个现存的应用软件使这个由下自上的Web服务代码产生器工作的。
Here is how the bottom-up Web services code generation works using an existing application.
因为Web服务代码中可能定义了多个类,所以必须仅选择其中一个作为Web服务的接口。
Because there may be multiple classes defined in the Web service code, you must select only one of them as an interface to the Web service.
如果您的Web服务代码有问题,那么下面这些通用的告诫及故障检修指导原则可以给您一些帮助。
Here are some general caveats and troubleshooting guidelines to assist you if you have problems with your Web service code.
与紧耦合方法不同,使用本文提出的适配器方法将给您留下可高度重用和可配置的Web服务代码。
Unlike a tightly coupled approach, using the adapter approach presented in this paper leaves you with Web services invocation code that is highly reusable and configurable.
服务内部数据被描述为“现在”,这些数据一般是对服务私有的,被服务代码封装好的。
Data on the inside is described as living in the "now." the data is usually private to the service and encapsulated by service code.
这些开发人员由于不熟悉Web服务技术与开发的复杂性,在大部分服务代码实现上都要依赖于工具。
These developers, unfamiliar with the intricacies of Web services technology and development, rely on tools for most of the service code implementation.
SEA还将负责与编写安全性服务代码的程序员及在部署系统前对其进行测试的安全性系统测试人员合作。
The SEA will also be responsible for working with programmers who have to code security services and security system testers who can put the system through a testing phase before it is deployed.
尽管JMS方法支持一些异步服务,但是JMS将客户端和服务代码束缚到了某些消息基础设施的使用之上。
The JMS approach supports a range of asynchronous services, but JMS does tie the client and service code to the use of some messaging infrastructure.
就好的一面而言,JIBX可让您在Web服务接口添加到现有服务代码的情况下直接使用现有类。
On the plus side, JIBX lets you work directly with existing classes in cases where web service interfaces are being added to existing service code.
在工作区左下角中的Snippets视图中,单击包含目标Web服务代码片段的某个特定抽屉。
In the Snippets view in the lower left of the workspace, click on the specific drawer containing the target Web service snippet.
确保%INCLUDE “ lsxsd .lss ”行位于Web服务代码的Options部分中。
Make sure that the % INCLUDE "lsxsd.lss" line is in the Options section of the Web service code.
客户端代码和服务代码看起来就像使用了某些魔法,通过来自SCA运行时注入得到了服务和传入的回调的引用。
The code for the client and for the service looks like it USES some piece of magic, with the references for the service and for the callback arriving through injection from the SCA runtime.
如果您尝试了本文的所有建议,但仍旧遇到自底向上的Web服务代码生成问题,那么该问题可能是软件的缺陷。
If you try all the Suggestions in this article and still encounter bottom-up Web services code generation problems, the problem may be a software defect.
如果您使用EJB或者JMS绑定类型,您将在Web服务代码产生的过程中获得一个非顺应性的警告。
You will get a non-compliant warning during Web services code generation if you use EJB or JMS binding types.
应用推荐