net.rim.device.api.io.parser.soap
Class SOAPBody

java.lang.Object
  extended by net.rim.device.api.io.parser.soap.SOAPElement
      extended by net.rim.device.api.io.parser.soap.SOAPElementContainer
          extended by net.rim.device.api.io.parser.soap.SOAPBody

public class SOAPBody
extends SOAPElementContainer

Represents the body of a SOAP message. It extends SOAPElementContainer. Other SOAPElement objects can be nested inside it.

Since:
BlackBerry API 6.0.0

Constructor Summary
SOAPBody()
          Constructs a SOAPBody.
 
Method Summary
 String getMethod()
          Returns the method name for the RPC request defined in this SOAPBody.
 String getMethodNamespace()
          Returns the method namespace for the RPC request defined in this SOAPBody.
 void setMethod(String method)
          Sets the method name for this RPC request.
 void setMethod(String method, String methodNamespace)
          Sets for the method name.
 void setMethodNamespace(String methodNamespace)
          Sets the method namespace for the RPC request defined in this SOAPBody.
 
Methods inherited from class net.rim.device.api.io.parser.soap.SOAPElementContainer
addChild, addDecimal, addInt, addLong, addSOAPPrimitive, addString, getChildAt, getChildren
 
Methods inherited from class net.rim.device.api.io.parser.soap.SOAPElement
getAttribute, getAttributes, getName, getNamespace, getType, putAttribute, setAttributes, setName, setNamespace, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

SOAPBody

public SOAPBody()
Constructs a SOAPBody.

Since:
BlackBerry API 6.0.0


Method Detail

getMethod

public String getMethod()
Returns the method name for the RPC request defined in this SOAPBody. Use this for RPC-style requests only.

Returns:
Method for RPC style SOAP request. Calling this method on a SOAPBody object generated during the parsing of SOAP message will return null.
Since:
BlackBerry API 6.0.0

setMethod

public void setMethod(String method)
Sets the method name for this RPC request. This method should be used this for generating RPC-style requests only.

Parameters:
method - Method for RPC style SOAP request.
Since:
BlackBerry API 6.0.0

getMethodNamespace

public String getMethodNamespace()
Returns the method namespace for the RPC request defined in this SOAPBody. Use this for RPC-style requests only

Returns:
Method namespace for the RPC request.
Since:
BlackBerry API 6.0.0

setMethodNamespace

public void setMethodNamespace(String methodNamespace)
Sets the method namespace for the RPC request defined in this SOAPBody. This method should be used this for generating RPC-style requests only.

Since:
BlackBerry API 6.0.0

setMethod

public void setMethod(String method,
                      String methodNamespace)
Sets for the method name. Use this for RPC-style requests only. Use when the method has a namespace. This method should be used this for generating RPC-style requests only.

Parameters:
method - The method of the RPC request.
methodNamespace - The namespace to use in the method tag.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal