Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

December/2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
222324 25262728
293031    

[ Archives News
for 'Java Technology' ]

home > news > java technology > totd #98: create a metro jax-ws web service using glassfish tools bundle for eclipse

TOTD #98: Create a Metro JAX-WS Web service using GlassFish Tools Bundle for Eclipse

Now that you've installed GlassFish Tools Bundle for Eclipse 1.1, lets use this bundle to create a simple Metro/JAX-WS compliant Web service and deploy on GlassFish. These steps will work with either Eclipse 3.4.2 or 3.5 with WTP Java EE support. Lets create a simple "Dynamic Web Project" as shown below: Name the project "HelloMetro" and take all other defaults: Click on "Finish" to complete the project creation. Metro allows to create a Web service from a POJO class. So let's add a POJO to the project by right-clicking on the project and selecting "New", "Class" as shown below:    Specify the package name as "server", class name as "HelloService" and click on "Finish". Add a simple method to the newly generated class as: public String sayHello(String name) { return "Hello " + name + "!!"; } Expand the project, go to "HelloService.java" in "server" package, right-click, select "Web Services", "Create Web service". Click on "Web service runtime: Apache Axis" and select "Metro (JAX-WS) Runtime" as the Web service runtime as shown below: Move the slider on the left to top. This will enable testing of the deployed Web service. The completed configuration looks like: and click on "Next >". Select the checkbox "Copy Metro library jars to the project" to resolve the references correctly as shown below: and click on "Next >". This bundles the application and deploys to GlassFish and provides a...


Date: August, 26 2009
Url: http://www.java.net/blog/arungupta/archive/2009/08/26/totd-98-create-metro-jax-ws-web-service-using-glassfish-tools-bund


Others News

©2002-2019Java-Virtual-Machine.net pt | Free Bootstrap Template | best website builder software | bootstrap dropdown menu | bootstrap navbar