Numbers Web Service end to end scenario

Author: Lukas Jungmann
Last update: $Date: 2009/10/29 16:50:43 $, $Revision: 1.1.1.1 $
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.

Creating ejb project

  • 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

Creating web service

  • 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

Implementing web service

  • Implement addNumbers operation to look like this:

Testing web service

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:

Project Features

About this Project

QA was started in November 2009, is owned by Jiří Kovalský, and has 97 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close