Implementing Service-to-Service Calls in a Java Service

A Java service can call any other service through the Java service proxy interface.

The Service editor provides drag-and-drop support to add service invocations to your Java method implementations.

  1. Open the service file that you want to edit and select the Service Interface tab in the editor.
  2. Double-click the line connecting the service interface and the binding to open the Binding editor.
  3. In the Service Explorer and navigate to the service you want to call.
  4. Expand the service interfaces to show the operation that you want to call.
  5. Drag the operation from the Service Explorer to the Service editor, and drop it on the Java service operation that is to implement the service invocation.

    The Java Service editor generates a proxy for the service if a proxy does not already exist, then adds a call to the Java proxy method that corresponds to the service operation to invoke.

  6. Display the Source page to view the proxy method call in the source.
  7. Modify the code to change the assignment of parameters and return values, and optionally add code to handle exceptions that may be thrown by the service invocation.
Related concepts
Exceptions in a Java Service
Calling Java Proxy Methods
Related tasks
Generating Java Service Proxies
Related reference
Java Service Datatypes

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.