Listing 4 provides a simple helloworld WSDL file that represents an example service.
清单4提供了代表示例服务的简单helloworldWSDL文件。
You will likely have to create the helloworld directory, but the parent directories will already be there.
您可能需要创建helloworld目录,但父目录可能已经存在了。
You can skip the rest of the chapter for now if you want to jump right into the code and customize the helloworld project for your own small database application.
如果开发者为了自己的小型数据库应用想立即编码和定制helloworld项目,那么现在就可以跳过本章的剩余部分。
You will then attach the WSSecurity default policy set to the service providers and service references in the two composition units of the helloworld sample: helloworldws and helloworldwsclient.
然后,将WSSecurity default策略集附加到helloworld示例的以下两个组合单元中的服务提供者和服务引用:helloworldws和helloworldwsclient。
Expand the HelloWorld port definition.
展开HelloWorldportdefinition。
Select the HelloWorld check box when prompted.
当提示出现时,请选择HelloWorld复选框。
Listing 1. Code for the newly created HelloWorld class.
列表1新建HelloWorld类的代码。
Listing 1 shows the template file for the HelloWorld example.
清单1中所示的是HelloWorld示例的模板文件。
HelloWorld interacts with MessageLogger using two references.
HelloWorld使用两个引用与MessageLogger进行交互。
Figure 2 shows the WSDL describing the interface for HelloWorld
图2显示了描述HelloWorld的接口的WSDL
The code in Listing 9 illustrates the simple HelloWorld POJO class.
清单9中的代码说明了简单的HelloWorldpojo类。
Suppose you want to debug the user interface creation in HelloWorld.
假设您想调试HelloWorld中的用户界面创建。
This will encrypt the string HelloWorld with the generated secret key.
这样将使用生成的秘钥加密字符串HelloWorld。
See the Interface editor view of this WSDL, named HelloWorld in Figure 2.
请参见图2中该WSDL的接口编辑器(名为HelloWorld)。
Listing 2 shows the HelloWorld example implemented using the Ming library.
清单2显示了使用ming库实现的HelloWorld示例。
You can now run the HelloWorld sample, as described in its associated readme file.
现在可以按照HelloWorld示例关联的自述文件中所述运行该示例。
Now, it's time to save, compile, and run the HelloWorld application you've created.
现在需要保存、编译和运行您创建的HelloWorld应用程序。
The example project is in the HelloWorld folder in the source code download for this book.
该项目示例在该书下载的源代码中的HelloWorld文件夹中。
First, compile the source code and build the Web archive (WAR) file for the HelloWorld service.
首先,编译源代码并为HelloWorld服务构建Web归档(WAR)文件。
Now, you can invoke the HelloWorld service with an HTTP client such as Curl, as shown in Listing 3.
现在,您可以使用一个HTTP客户机(比如Curl)调用HelloWorld服务,如清单3所示。
Now, let's build the HelloWorld service, and then deploy and run it in the Tomcat 6.0 servlet container.
我们现在开始构建HelloWorld服务,然后将其部署到Tomcat 6.0servlet容器中并运行。
In this section, we will obtain the Home interface to a HelloWorld bean published in a CosNaming namespace.
在这一节,我们将在CosNaming名称空间中获得已发布的HelloWorldbean的Home接口。
After the code changes are made I need to start the server so that I can test out the HelloWorld application.
代码更改后需要启动服务器,这样才能测试HelloWorld应用程序。
Listing 2 contains a complete client main class that calls Listing 1's HelloWorld service using the call object.
清单2中给出了使用Call对象调用清单1的HelloWorld服务的完整客户机主类。
The following steps show how to configure the required JMS resources for the HelloWorld Web service implementation.
下面的步骤介绍了如何为实现HelloWorldWeb服务配置所需的JMS资源。
Listing 3 contains a complete client main class that calls Listing 1's HelloWorld service via this Dispatch object.
清单3中给出了通过Dispatch对象调用清单1的HelloWorld服务的完整客户机主类。
Now type the following URL into a Web browser window to instigate the setMessage operation on the HelloWorld service
现在,在Web浏览器窗口键入以下URL,以激活HelloWorld服务上的setMessage操作
The simple HelloWorld example in Listing 1 shows how a managed bean is accessed through EL expression within a ZUL file.
清单1中简单的HelloWorld例子显示了如何通过ZUL文件中的EL表达式来访问托管bean。
In this step we create the additional Web router module to handle incoming HTTP requests to the HelloWorld Web service implementation.
在这一步里,创建附加的web路由器模块来处理对HelloWorld Web服务实现的传入HTTP请求。
Using the above 12 steps, we created a HelloWorld sample plug-in, a HelloWorld feature, and a HelloWorld update site to encapsulate them.
通过以上的12个步骤,我们创建了一个HelloWorld样例插件、一个HelloWorld特性,以及一个用来封装它们的HelloWorld更新站点。
应用推荐