org.apache.axis.constants

Class Style

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
Style

public class Style
extends Enum

Description of the different styles
style=rpc, use=encoded
First element of the SOAP body is the operation. The operation contains elements describing the parameters, which are serialized as encoded (possibly multi-ref)
   <soap:body>
      <operation>
         <arg1>...</arg1>
         <arg2>...</arg2>
      </operation>
 

style=RPC, use=literal
First element of the SOAP body is the operation. The operation contains elements describing the parameters, which are serialized as encoded (no multi-ref)\
   <soap:body>
      <operation>
         <arg1>...</arg1>
         <arg2>...</arg2>
      </operation>
 

style=document, use=literal
Elements of the SOAP body are the names of the parameters (there is no wrapper operation...no multi-ref)
   <soap:body>
         <arg1>...</arg1>
         <arg2>...</arg2>
 

style=wrapped
Special case of DOCLIT where there is only one parameter and it has the same qname as the operation. In such cases, there is no actual type with the name...the elements are treated as parameters to the operation
   <soap:body>
      <one-arg-same-name-as-operation>
         <elemofarg1>...</elemofarg1>
         <elemofarg2>...</elemofarg2>
 

style=document, use=encoded
There is not an enclosing operation name element, but the parmeterss are encoded using SOAP encoding This mode is not (well?) supported by Axis.

Author:
Richard Sitze

See Also:
Serialized Form

Nested Class Summary

static class
Style.Type

Nested classes/interfaces inherited from class org.apache.axis.constants.Enum

Enum.Type

Field Summary

static Style
DEFAULT
static Style
DOCUMENT
static String
DOCUMENT_STR
static Style
MESSAGE
static String
MESSAGE_STR
static Style
RPC
static String
RPC_STR
static Style
WRAPPED
static String
WRAPPED_STR

Fields inherited from class org.apache.axis.constants.Enum

log, name, value

Constructor Summary

Style()

Method Summary

static Style
getDefault()
QName
getProvider()
static Style
getStyle(String style)
static Style
getStyle(String style, Style dephault)
static Style
getStyle(int style)
static String[]
getStyles()
static boolean
isValid(String style)
static int
size()

Methods inherited from class org.apache.axis.constants.Enum

equals, equals, getName, getType, getValue, hashCode, toString

Field Details

DEFAULT

public static final Style DEFAULT


DOCUMENT

public static final Style DOCUMENT


DOCUMENT_STR

public static final String DOCUMENT_STR


MESSAGE

public static final Style MESSAGE


MESSAGE_STR

public static final String MESSAGE_STR


RPC

public static final Style RPC


RPC_STR

public static final String RPC_STR


WRAPPED

public static final Style WRAPPED


WRAPPED_STR

public static final String WRAPPED_STR

Constructor Details

Style

protected Style()

Method Details

getDefault

public static Style getDefault()


getProvider

public final QName getProvider()


getStyle

public static final Style getStyle(String style)


getStyle

public static final Style getStyle(String style,
                                   Style dephault)


getStyle

public static final Style getStyle(int style)


getStyles

public static final String[] getStyles()


isValid

public static final boolean isValid(String style)


size

public static final int size()


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.