|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ksoap2.SoapEnvelope
public class SoapEnvelope
A SOAP envelope, holding head and body objects. While this basic envelope supports literal encoding as content format via KDom, The SoapSerializationEnvelope provides support for the SOAP Serialization format specification and simple object serialization.
Field Summary | |
---|---|
java.lang.Object |
bodyIn
The body object received with this envelope. |
java.lang.Object |
bodyOut
The body object to be sent with this envelope. |
java.lang.String |
enc
Encoding namespace, set by the constructor |
static java.lang.String |
ENC
Namespace constant: http://schemas.xmlsoap.org/soap/encoding/ |
static java.lang.String |
ENC2001
|
java.lang.String |
encodingStyle
|
java.lang.String |
env
Envelope namespace, set by the constructor |
static java.lang.String |
ENV
Namespace constant: http://schemas.xmlsoap.org/soap/envelope/ |
static java.lang.String |
ENV2001
|
org.kxml2.kdom.Element[] |
headerIn
Incoming header elements |
org.kxml2.kdom.Element[] |
headerOut
Outgoing header elements |
static int |
VER10
SOAP Version 1.0 constant |
static int |
VER11
SOAP Version 1.1 constant |
static int |
VER12
SOAP Version 1.2 constant |
int |
version
The SOAP version, set by the constructor |
java.lang.String |
xsd
Xml Schema data namespace, set by the constructor |
static java.lang.String |
XSD
Namespace constant: http://www.w3.org/2001/XMLSchema |
static java.lang.String |
XSD1999
Namespace constant: http://www.w3.org/1999/XMLSchema |
java.lang.String |
xsi
Xml Schema instance namespace, set by the constructor |
static java.lang.String |
XSI
Namespace constant: http://www.w3.org/2001/XMLSchema |
static java.lang.String |
XSI1999
Namespace constant: http://www.w3.org/1999/XMLSchema |
Constructor Summary | |
---|---|
SoapEnvelope(int version)
Initializes a SOAP Envelope. |
Method Summary | |
---|---|
void |
parse(org.xmlpull.v1.XmlPullParser parser)
Parses the SOAP envelope from the given parser |
void |
parseBody(org.xmlpull.v1.XmlPullParser parser)
|
void |
parseHeader(org.xmlpull.v1.XmlPullParser parser)
|
void |
setOutputSoapObject(java.lang.Object soapObject)
Assigns the object to the envelope as the outbound message for the soap call. |
static boolean |
stringToBoolean(java.lang.String booleanAsString)
Returns true for the string values "1" and "true", ignoring upper/lower case and whitespace, false otherwise. |
void |
write(org.xmlpull.v1.XmlSerializer writer)
Writes the complete envelope including header and body elements to the given XML writer. |
void |
writeBody(org.xmlpull.v1.XmlSerializer writer)
Writes the SOAP body stored in the object variable bodyIn, Overwrite this method for customized writing of the soap message body. |
void |
writeHeader(org.xmlpull.v1.XmlSerializer writer)
Writes the header elements contained in headerOut |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VER10
public static final int VER11
public static final int VER12
public static final java.lang.String ENV2001
public static final java.lang.String ENC2001
public static final java.lang.String ENV
public static final java.lang.String ENC
public static final java.lang.String XSD
public static final java.lang.String XSI
public static final java.lang.String XSD1999
public static final java.lang.String XSI1999
public java.lang.Object bodyIn
public java.lang.Object bodyOut
public org.kxml2.kdom.Element[] headerIn
public org.kxml2.kdom.Element[] headerOut
public java.lang.String encodingStyle
public int version
public java.lang.String env
public java.lang.String enc
public java.lang.String xsi
public java.lang.String xsd
Constructor Detail |
---|
public SoapEnvelope(int version)
Method Detail |
---|
public static boolean stringToBoolean(java.lang.String booleanAsString)
public void parse(org.xmlpull.v1.XmlPullParser parser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void parseHeader(org.xmlpull.v1.XmlPullParser parser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void parseBody(org.xmlpull.v1.XmlPullParser parser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void write(org.xmlpull.v1.XmlSerializer writer) throws java.io.IOException
java.io.IOException
public void writeHeader(org.xmlpull.v1.XmlSerializer writer) throws java.io.IOException
java.io.IOException
public void writeBody(org.xmlpull.v1.XmlSerializer writer) throws java.io.IOException
java.io.IOException
public void setOutputSoapObject(java.lang.Object soapObject)
soapObject
- the object to send in the soap call.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |