New Web Service from WSDL Wizard: Name and Location

The New Web Service from WSDL wizard creates a new Web Service from a WSDL file.

In the Name and Location page, you have to set the following properties:

Element Description

Web Service Name

Specifies the name of the web service. The name is used to name the files that are created by the web service wizard.
Project Name of the project.
Location Specifies the source root where the web service files will be created. By default, you only have one source root, the src folder. To add additional source roots, right-click the project node in the Projects window, choose Properties, click Sources, and define a new source package folder.
Package Specifies the package name where the web service files will be housed.

Select Local WSDL File or Enter WSDL URL

Type the location or URL of the WSDL file or click Browse to locate the WSDL file on your local system.

WSDL Service Port

WSDL service port specified in WSDL file. This field is populated automatically when you specify the WSDL file. You can click Browse to specify a service port if the WSDL file specifies more than one service port.

Use Provider

When selected, the service endpoint implements the Provider interface as a dynamic alternative to an SEI. Provider implementations receive requests as raw XML data, and must send responses as raw XML data. The class declaration is annotated with @WebServiceProvider. You will need to add the implementation of the invoke method to the class. The element name should be changed to:
Implement javax.ws.xml.Provider Interface

Implement Web Service as Stateless Session Bean

When selected the class declaration is annotated with the @Stateless annotation.


Related Topics

Developing Applications with NetBeans IDE,

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.