SWS Javadoc Comments

The Java Service editor inserts special Javadoc comments above the Java source code for public methods. These comments which public Java methods are exposed in the service interface. The format of these comments is:

@sws method;property-list
      
            

Where property-list is a comma-separated list of name-value pairs of property assignments, for example:

@sws method;expose=true;visible=true

The following table describes the properties that can appear in SWS Javadoc comments:

Valid SWS Javadoc comment properties

Property nameDescription
exposeSpecifies whether the Java method is part of the service interface. A value of true indicates that the method translates to an equivalent operation in the service interface. A value of false or no value indicates the method is not exposed in the service interface.
visibleThis property takes values of true and false and corresponds to the visible property for the translated operation in the service interface, which specifies whether the operation is included in the service's WSDL interface after deployment.
returnNameIf the method has a return type, specifies the name of the service operation parameter that corresponds to the return value.
styleSpecifies the operation style.

Editing the Java Source Code for a Service

Editing Java Service Operation Properties

Editing Java Service Operation Parameter Lists

Editing Java Service Operation Parameter Properties

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