This section describes how to expose and deploy files and components as Web services:
Deploying refers to the process of selecting a Java file or component that is located in the WST development tool (In the Package Explorer or Project view) and using one of the Deploy wizards to create the Web service and install/deploy it to a server as well as display it in the Sybase Web Services view.
Exposing refers to the process of selecting a supported component type that already resides on the server (Sybase Web Services view) and using one of the Expose wizards to make it available as a Web service.
There are several ways to deploy and expose components as Web services depending on the options you choose, type of component, and location of component or file. For example:
You can use the “Quickly Deploy as Web Service” or “Deploy as Web Service” wizards. Both of these wizards are available from the package explorer and from individual projects and are used to deploy a Java file as a Web service. Quickly deploying a Web service automatically uses default settings for most options.
You can use the “Expose as Web Service” or “Quickly Expose as Web Service” wizards. Both of these wizards are available from the Other components folder of the Sybase Web Services view, and allow you to expose an existing EAServer component as a Web service.
From the package explorer you can also select a WSDD file and choose Deploy (which is different from the wizards above).
This section describes how to expose a component as a Web service.
For the parameter names of an exposed component to display in the WST development tool:
Verify the parameter names are correct in the component’s IDL file.
Verify the stub classes are generated and compiled in debug mode before the component is exposed as a Web service.
Before generating stubs from EAServer Manager for the component you are exposing, use one of two ways to set the compiler to compile stubs using debug mode:
Add -DSERVER_STUBS_DEBUG=true to
the com.sybase.jaguar.server.jvm.options property
in the server.props file, located in the /repository/Server subdirectory
of your EAServer installation. server is the
name of the EAServer you are modifying. For example, jaguar.props.
Restart the server. This server-wide setting results in all classes being compiled with debug mode for the server.
Add com.sybase.jaguar.component.javac.debug=true to
the component.props file for the component
you are exposing, located in the /repository/component/package_name subdirectory
of your EAServer installation. package_name is
the name of the package that contains the component you are modifying,
and component is the name of the component within that package.
For example, /repository/SurfSideVideoPB/n_store.props. This
affects the modified component only, since code generation and compilation
checks the property at the component level first. If the component.javac.debug is
set to “false,” the classes are compiled with normal
mode (non-debug) even though SERVER_STUBS_DEBUG is
set to true in the server.props file.
Using the Expose wizard to expose a Web service
From the Sybase Web Services view, highlight the component that you are exposing.
Right-click the file and select Expose As Web Service.
The Expose as a Web Service wizard displays. Table 4-6 describes the Expose as a Web Service properties. Complete the information and click next to move to the next window and Finish when done.
Error messages are logged in the server’s log file and server’s servlet log file. Check these files for any error conditions. For example, if you see a non-unique context path error, verify that the exposed component does not share the same Web collection name and Web service name as another exposed component, and re-expose the Web service.
Use the quickly expose wizard to use commonly used defaults to expose a component as a Web service.
Using the quickly expose wizard to expose a Web
service
Highlight the package that contains the file (Java file, component, Web service, and so on) that you are deploying and exposing.
Right click the file and select Quickly Expose As a Web Service.
The Progress information window displays, indicating that the Web service is being exposed to the server to which you are connected.
This section describes how to deploy a component or file as a Web service.
Using the deploy wizard to deploy a Web service
From the Package Explorer or Project that contains the file to be deployed, highlight the Java file that you are deploying.
Right click the file and then select Deploy As Web Service.
The Deploy as a Web Service wizard displays. Table 4-6 describes the Deploy as a Web Service properties. Complete the information and click next to move to the next wizard and Finish when done.
Use the quickly deploy wizard to use commonly used defaults to deploy a component as a Web service.
Using the quickly deploy wizard to deploy a Web
service
Highlight the component that you are deploying.
Right click the file and then select Quickly Deploy As a Web Service.
The Progress information screen displays indicating that the Web service is being deployed to the server to which you are connected. The deployed Web service also appears in the Sybase Web services view.
| Copyright © 2005. Sybase Inc. All rights reserved. |
|
|