Numbers Web Service end to end scenario
Author: Lukas Jungmann
Last update: $Date: 2006/07/14 13:44:39 $, $Revision: 1.2 $
Introduction:
This end to end scenario should test creation of web service
from wsdl with simple logging message handler in EJB project.
The scenario covers developing of JAX-WS 2.0 based web service.
The document is not intended as test specification for this
feature but describes developing web service in NetBeans 5.5.
Table of Contents
EJB module sources are avalaible
here.
- Go to File - New Project - Enterprise - EJB Module
- Specify
NumbersWS as Project Name
- Specify project's directory
- Choose
Java EE 5 as J2EE version and
- Click
Finish
- Go to File - New File - Web services - Web Service from WSDL - Next
- Specify name of web service, eg.
NumbersWS
- Specify package for the web service, eg.
org.netbeans.end2end.numberssample
- Download this wsdl
and use path to it in
WSDL File textfield
- Click
Finish
- Implement
addNumbers operation to look like this:
Now we finished our web application with web service and we're ready
to build and deploy it and check web service if it works correctly.
- Invoke
Deploy action from project's context menu
- Invoke
Test Web Service action from web service's context menu
Let's test web service using the form opened in web browser: