oracle.wsdl.extension.soap
Class SOAPBody

java.lang.Object
  |
  +--oracle.wsdl.common.WSDLElementImpl
        |
        +--oracle.wsdl.extension.soap.SOAPBody
All Implemented Interfaces:
ExtensibilityElement, java.io.Serializable, WSDLElement

public class SOAPBody
extends oracle.wsdl.common.WSDLElementImpl
implements ExtensibilityElement

SOAPBody represents soap:body element which is used to specify how the message parts appear inside the SOAP body element for both RPC-oriented or document-oriented messages.

See Also:
Serialized Form

Constructor Summary
SOAPBody(int use)
          Initialize with use value.
 
Method Summary
TypeMethod
 void addPart(java.lang.String part)
          Add a part that will appear within the SOAP body portion of an envelope
 java.lang.String getElementName()
          Get element name which is soap:body
 SOAPEncodingStyle getEncodingStyle()
          Get encodingStyle
 java.lang.String getNamespaceURI()
          Get namspace URI
 java.util.List getParts()
          Get the parts that will appear within the SOAP body portion of an envelope
 int getUse()
          Get the use value
 void removePart(java.lang.String part)
          Remove a part that would appear within the SOAP body portion of an envelope
 void serialize(java.io.PrintWriter writer, boolean indent, int indentLevel)
          Serialize this WSDL element
 void setEncodingStyle(SOAPEncodingStyle encodingStyle)
          Set encodingStyle
 void setNamespaceURI(java.lang.String namespaceURI)
          Set namespace URI
 void setUse(int use)
          Set the use value
 
Methods inherited from class oracle.wsdl.common.WSDLElementImpl
getChildWSDLElements, getOwnerDefinitions, getParent, setParent, validateExtensionsRecursively
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.wsdl.internal.WSDLElement
getOwnerDefinitions, getParent
 

Constructor Detail

SOAPBody

public SOAPBody(int use)
Initialize with use value. The value of use can be SOAPConstants.USE_LITERAL for literal, or SOAPConstants.USE_ENCODED for encoded.
Parameters:
use - the use value
Method Detail

getElementName

public java.lang.String getElementName()
Get element name which is soap:body
Specified by:
getElementName in interface ExtensibilityElement
Returns:
soap:body

getParts

public java.util.List getParts()
Get the parts that will appear within the SOAP body portion of an envelope
Returns:
a list of part names

addPart

public void addPart(java.lang.String part)
Add a part that will appear within the SOAP body portion of an envelope
Parameters:
part - the name of part

removePart

public void removePart(java.lang.String part)
Remove a part that would appear within the SOAP body portion of an envelope
Parameters:
part - the name of part to remove

getUse

public int getUse()
Get the use value
Returns:
SOAPConstants.USE_LITERAL for literal, or SOAPConstants.USE_ENCODED for encoded

setUse

public void setUse(int use)
Set the use value
Parameters:
use - SOAPConstants.USE_LITERAL for literal, or SOAPConstants.USE_ENCODED for encoded

getEncodingStyle

public SOAPEncodingStyle getEncodingStyle()
Get encodingStyle
Returns:
encodingStyle that consists of a list of URIs; return null if not exist.

setEncodingStyle

public void setEncodingStyle(SOAPEncodingStyle encodingStyle)
Set encodingStyle
Parameters:
encodingStyle - a list of URIs

getNamespaceURI

public java.lang.String getNamespaceURI()
Get namspace URI
Returns:
namespace URI

setNamespaceURI

public void setNamespaceURI(java.lang.String namespaceURI)
Set namespace URI
Parameters:
namespaceURI - the namespace to set

serialize

public void serialize(java.io.PrintWriter writer,
                      boolean indent,
                      int indentLevel)
Description copied from interface: WSDLElement
Serialize this WSDL element
Specified by:
serialize in interface WSDLElement
Following copied from interface: oracle.wsdl.internal.WSDLElement
Parameters:
writer - a print writer as a sink
indent - indicates whether indentation will be applied to serialization
indentLevel - the levels of indentation starting from 0.


Copyright © 2001 Oracle SOAP. All Rights Reserved.