Editing Java Service Operation Parameter Properties

You can edit service operations on the Service Interface page of the Java Service editor. The editor makes corresponding changes to the Java method prototype when you change a service operation name or parameters. You can also edit the method prototypes directly in the Java source code.

To edit the properties of a service operation parameter:

  1. On the Service Interface page, expand the Operation Parameters section.

  2. If the Properties Panel is not visible, display it by right-clicking in the background of the Service Interface page and choosing Show Properties Panel from the context menu.

  3. Highlight the parameter of interest and edit its properties in the Properties Panel. The following table lists the properties:

    Java Service operation parameter properties

    PropertyDescription
    NameThe parameter name. For input parameters, this matches to the name of the corresponding Java method parameter.
    DescriptionAn optional description of the parameter.
    Style

    Input indicates an input parameter. Output indicates that this parameter specifies the Java method return type.

    Operations can have only one Output parameter, since Java methods can return only one value. Consequently, you cannot change this setting if an output parameter is specified in the operation signature. To change which parameter specifies the return type, change the existing output parameter to an input parameter, then modify the properties of the parameter that will become the new output parameter.

    Datatype

    The parameter or return value datatype. Choose Simple Type to pick from a list of common scalar types. Choose Complex/Array Type to specify a Java class that is not listed or an array type.

    To specify a complex or array type, enter the Java class name of the type, for example, com.mycompany.MySpecialType. To specify an array, include the array brackets in the type qualifier, for example, java.util.Date[] or int[][].

    To browse for a Java class name, click Browse for Complex Type.

Browsing for Java Parameter or Return Value Types

Editing Java Service Operation Parameter Lists

Editing Java Service Operation Properties

Editing the Java Source Code for a Service

Java Service Datatypes

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com