Creating a web service from an annotated Java bean by using a wizard
After annotating a Java™ bean, you can generate a web service application by using the web services wizard. With the wizard, you can create a WSDL file in your web services project before you deploy the application to a server.
Before you begin
About this task
Note: If the bean already has a @javax.jws.WebService annotation,
many of the fields in the wizard will be disabled because the wizard
does not need to generate a delegate bean for you. You will only be
able to select to generate a WSDL file. If you have added only the
@javax.jws.WebService to your Java bean and want to enable other options such as SOAP 1.2 binding or
MTOM, you should exit the wizard and either remove the annotation
or proceed to create the web service using the annotations documentation.
The wizard will not allow you to append new annotations to a pre-existing
partially annotated bean.
To create a web service from an annotated Java bean:Procedure
Results
Your Java bean is
published as a web service on the server that you specified. If the
level of service generation that you selected in the wizard was Start
or Test, your web service is also started.
Note: If you used the @BindingType
annotation in your Java bean
to specify a WSDL 1.1 SOAP 1.2 binding, the wizard generates a WSDL
file with this type of binding.
For more information about the web services wizard, including other options for your web service, see the related tasks.