javax.jws
Annotation Type WebResult


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface WebResult

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


Optional Element Summary
 String name
          Name of return value as it appears in the WSDL and messages on the wire.
 String targetNamespace
          The XML namespace for the return value.
 

name

public abstract String name
Name of return value as it appears in the WSDL and messages on the wire. For RPC bindings, this is the name of the wsdl:part representing the return value. For document bindings, this is the local name of the XML element representing the return value.

Default:
"result"

targetNamespace

public abstract String targetNamespace
The XML namespace for the return value. Only used with document bindings, where the return value maps to an XML element. Defaults to the targetNamespace of the Web Service.

Default:
""