Top Description Methods
jakarta.jws

public @Interface WebResult

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.Retention, .RetentionPolicy, .Target, .ElementType

Customizes the mapping of the return value to a WSDL part and XML element.
Since
1.6

Method Summary

Modifier and TypeMethod and Description
public boolean
header()

If true, the result is pulled from a message header rather then the message body.

public String
name()

Name of return value.

public String
partName()

The name of the wsdl:part representing this return value.

public String
targetNamespace()

The XML namespace for the return value.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

headerback to summary
public boolean header()

If true, the result is pulled from a message header rather then the message body.

Since
2.0
nameback to summary
public String name()

Name of return value.

If the operation is rpc style and @WebResult.partName has not been specified, this is the name of the wsdl:part representing the return value.
If the operation is document style or the return value maps to a header, this is the local name of the XML element representing the return value.

partNameback to summary
public String partName()

The name of the wsdl:part representing this return value.

This is only used if the operation is rpc style, or if the operation is document style and the parameter style is BARE.

Since
2.0
targetNamespaceback to summary
public String targetNamespace()

The XML namespace for the return value.

Only used if the operation is document style or the return value maps to a header. If the target namespace is set to ��, this represents the empty namespace.