The endpoint of a Java service must be a Java class or source file that implements public methods that match all the operations in the service interface. By default, a new service's endpoint matches the name of the Java source file or class file that you specified when creating the service. In most configurations, there is no need to change the default setting. However, if you created the service from a Java interface, you must specify a Java class that implements the interface as the service endpoint.
To set an endpoint for a Java service:
Open the Java Service that you want to add an endpoint to.
In the service editor, select the Service Interface tab.
To verify that no hidden endpoints exist, click the icon in the editor menu bar to display a hidden endpoint.
Add an endpoint. Do the following:
Right-click the interface box and choose Add Endpoint.
Specify the endpoint properties as described below.
(Optional) Change the Java file that is bound to the endpoint:
Right-click the endpoint box and choose Edit Endpoint.
Choose Resource as the Endpoint Type.
Click Next to accept the default name endpoint or rename the endpoint.
Specify the path to the source or class file to bind the endpoint to. Click Next.
Specify any JAR files or file system directories that must be added to the class path to load dependent classes. If you are defining a service from an existing Java class or source file, add any items that are required in the runtime or compile-time class path. For details on using this page, see classpath folder or library dependencies. Click Next.
Choose the Java methods to expose as service operations. Click Next.
Review the information on the Summary page, which displays a summary of the settings for the new service. To edit a value, click Back. When done, click Finish.
Save the service. Select File|Save from the menu bar.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com