The Web Service wizard assists you in creating a new Web service,
configuring it for deployment, and deploying the Web service to a server.
Once your Web service is deployed, the wizard assists you in generating the
client proxy and sample application to test the Web service. When you have
completed testing, you can publish your Web service to a UDDI Business Registry
using the Export wizard.
For more information on EJB application development,
refer to EJB tools.
Note: Rational Developer products support
enterprise bean Web service creation from stateless session enterprise beans.
The
Web service you are creating acts as a client to the enterprise bean.
The enterprise bean must be deployed before launching the Web service wizard.
To
create a Web service from an enterprise bean:
After the Web service has been created, the following may occur depending
on the options you selected:
- If you have selected to test the generated proxy using Web service JSPs,
the proxy is launched in a Web browser at the following URL: http://localhost: port/WebProjectClient/sampleBeanName/ WebService/TestClient.jsp You can use this
sample application to test the Web service by selecting a method, entering
a value for the method, and clicking Invoke. The result of the method
will display in the results pane.
- If you have selected to test the generated proxy using the Universal Test
Client, it will be launched in a browser window at the following URL: http://localhost:9080/UTC/preload?object=proxy.soap. ProxyNameProxy In the Reference pane, under
Object References, expand the proxy to display the methods of the Web service.
Click the method you want to test, enter a value in the Parameters pane, and
click Invoke. The result will be generated below.
- If you have selected to test the Web service using the Web Services Explorer,
the Explorer will open. Select the operation you want to test, enter the required
information, and click Go. The result will display in the Status pane.
- If you have selected to publish the Web service, the Web Services Explorer
is launched displaying the page required to publish your Web service to the IBM UDDI
Test Registry. Follow the instructions in Publishing the Web service to
complete this task.
Important: If your methods contain types, not supported by
the sample, such as arrays, indexed properties, and collections, the methods
will be omitted from the sample and you will receive a warning message.
Once
you have created your Web service from an enterprise bean, you may test the
methods of your Web service, using the Universal Test Client, and then publish
your Web service to a UDDI Business Registry. For more information on testing
and publishing your applications, refer to the Server tools documentation.
For
more information on EJBs, refer to the EJB application development documentation.