This section describes how to expose a component as a Web service.
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.
Property |
Description |
---|---|
Collection Name |
Name of the Web service collection to which this Web service is exposed. Make sure the Web collection name and Web service name combination are unique when exposing the component as a Web service. |
Context path |
Location of the Web service. |
Endpoint address URI |
A valid Uniform Resource Identifier (URI) for the location where the WSDL document is published. The target namespace should not include the file name; WST appends the appropriate file name when the WSDL document is generated. The target namespace can be a Uniform Resource Name (URN), which is a globally unique and persistent URI.
|
Binding Style |
The SOAP binding style:
|
Use |
Specify the use (LITERAL or ENCODED) of items in the generated WSDL binding when exposing a Web service. |