This section describes how to create and manage Web service clients from a Web service. Each procedure requires that you first:
Connect to the server that contains the Web service.
Expand the Web Services icon.
Expand the Web service collection to which the Web service belongs.
The
wizards described in this section generate a test client runtime
JAR file, sybasewstrt.jar, which contains one
file, manifest.mf, that lists the JAR files
required by the runtime client:
When compiling the client class, do not include sybasewstrt.jar. Set the required JARs in the classpath individually.
The classpath should include at a minimum: sybasewstrt.jar, sybasewst.jar, jaxrpc.jar, and the path to the client artifacts.
When running the client, use either the “-classpath” option, or “set classpath” to specify the location of the required files identified by sybasewstrt.jar.
After using the wizard to generate the various files required by the client, see Chapter 9, “Developing Web Service Clients” for a description of how to develop a client.
Creating a Web service client
Right-click the Web service and then select Create Web Service Client.
The Create Web Service Client wizard displays.
Follow the wizard instructions described in Table 4-4. Click Finish when done.
The wizard generates the test client, and necessary client artifacts in the package you specify.
Creating a JSP client
This procedure generates JSP client pages from the Web service and stores them on the server. Once created, you can test the JSP pages by Launching the JSP client.
Right-click the Web service and then select Create JSP client.
Launching a JSP client
This procedure launches the JSP client you created in the proceeding procedure, by starting a Web browser, and running the JSP.
Right-click the Web service and then select Launch JSP Client.
Deleting a JSP client
If you created a JSP client for this Web service, this procedure deletes it.
Right-click the Web service and then select Delete JSP Client.
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |