Adding a Service Operation to a Java Service

Add a service operation to a Java service using the Service editor.

Service operations cannot be overloaded. Because WSDL does not support method overloading, you cannot expose overloaded Java methods in the service interface. That is, you cannot expose two Java methods that have the same name and differ in the parameter types they accept. If you need to call overloaded Java methods from the service interface, create Java wrapper methods in the implementation class that have different method names and code them to call the overloaded methods. Expose the wrapper methods in the service interface.

  1. Open the Java service.
  2. Select the Service Interface tab in the editor.
  3. Right-click the service interface box and select Add Request Response Operation.
  4. Expand the Operation Parameters section and click Add. The operation you selected appears in the Operations Parameters list and its properties display in the Properties section.
Related concepts
Java Source Code for a Service
Related tasks
Editing Java Service Endpoint Properties
Editing Java Service Operation Parameter Lists
Removing a Service Operation From a Java Service
Related reference
Java Service Datatypes
Supported Java Exceptions

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.