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

Returns:

value of true to pull the parameter from a message header rather then the message body or false otherwise
header
()

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

public String

Returns:

the name of return value
name
()

Name of return value.

public String

Returns:

the name of the wsdl:part
partName
()

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

public String

Returns:

the XML namespace
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.

Returns:boolean

value of true to pull the parameter from a message header rather then the message body or false otherwise

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.

Returns:String

the name of 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.

Returns:String

the name of the wsdl:part

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.

Returns:String

the XML namespace