FileDocCategorySizeDatePackage
Style.javaAPI DocApache Axis 1.45329Sat Apr 22 18:57:28 BST 2006org.apache.axis.constants

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

Fields Summary
private static final Type
type
public static final String
RPC_STR
public static final String
DOCUMENT_STR
public static final String
WRAPPED_STR
public static final String
MESSAGE_STR
public static final Style
RPC
public static final Style
DOCUMENT
public static final Style
WRAPPED
public static final Style
MESSAGE
public static final Style
DEFAULT
private QName
provider
Constructors Summary
private Style(int value, String name, QName provider)

        super(type, value, name);
        this.provider = provider;
    
protected Style()

        super(type, DEFAULT.getValue(), DEFAULT.getName());
        this.provider = DEFAULT.getProvider();
    
Methods Summary
public static org.apache.axis.constants.StylegetDefault()

 return (Style)type.getDefault(); 
public final javax.xml.namespace.QNamegetProvider()

 return provider; 
public static final org.apache.axis.constants.StylegetStyle(int style)

        return type.getStyle(style);
    
public static final org.apache.axis.constants.StylegetStyle(java.lang.String style)

        return type.getStyle(style);
    
public static final org.apache.axis.constants.StylegetStyle(java.lang.String style, org.apache.axis.constants.Style dephault)

        return type.getStyle(style, dephault);
    
public static final java.lang.String[]getStyles()

        return type.getEnumNames();
    
public static final booleanisValid(java.lang.String style)

        return type.isValid(style);
    
private java.lang.ObjectreadResolve()

        return type.getStyle(value);
    
public static final intsize()

        return type.size();