API published in: S60 3rd Ed
Link against: senutils.lib
Required Capabilities
NetworkServices ReadUserData WriteUserData
#include <sensoapenvelope.h>
Inherits CSenBaseFragment.
Inherited by CSenSoapMessage.
Typically WSC uses this class to parse messages received through WSF HandleMessageL() and HandleErrorL() callbacks. Class has convenience methods for checking if a SOAP envelope body contains a fault and functionality to detach SOAP Fault object out from it. Also possibility to set SOAPAction HTTP header is supported.
Public Member Functions |
|
virtual IMPORT_C | ~CSenSoapEnvelope () |
Destructor. |
|
virtual IMPORT_C TPtrC8 | SetBodyL (const TDesC8 &aBody) |
Sets body of the envelope. |
|
virtual IMPORT_C CSenElement & | BodyL () |
Getter for envelopes body. |
|
virtual IMPORT_C CSenElement & | HeaderL () |
Getter for envelopes header. |
|
virtual IMPORT_C CSenElement & | AddHeaderL (CSenElement &aHeaderElement) |
Adds an element to the header. |
|
virtual IMPORT_C HBufC8 * | BodyAsStringL () |
Getter for the envelope body as a UTF-8 form XML string. |
|
virtual IMPORT_C TBool | IsFault () |
Checks if this SOAP envelope body contains SOAP fault or not. |
|
virtual IMPORT_C CSenSoapFault * | DetachFaultL () |
Detaches the <Fault> element from the envelope, removing the element from the envelope. |
|
virtual IMPORT_C CSenSoapFault * | FaultL () |
Gets the <Fault> element. |
|
virtual IMPORT_C TPtrC8 | SetSoapActionL (const TDesC8 &aSoapAction) |
Sets the SOAP action HTTP header. |
|
virtual IMPORT_C TPtrC8 | SoapAction () |
Gets the soap action header. |
|
Static Public Member Functions |
|
static IMPORT_C CSenSoapEnvelope * | NewL () |
Two-phased constructor. |
|
Protected Member Functions |
|
CSenSoapEnvelope () | |
Constructor. |
|
IMPORT_C void | BaseConstructL () |
This method should be called from the deriving classes ConstructL() methods. |
|
virtual IMPORT_C void | ParseHeaderL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes) |
This method should be overridden by subclasses. |
|
virtual IMPORT_C void | StartElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes) |
Callback function which implement the XML content handler interface. |
|
virtual IMPORT_C void | EndElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName) |
Callback function which implement the XML content handler interface. |
|
Protected Attributes |
|
CSenBaseFragment * | ipBodyFragment |
CSenBaseFragment * | ipHeaderFragment |
HBufC8 * | ipSoapAction |
|
Destructor. |
|
Constructor. |
|
Adds an element to the header.
|
|
This method should be called from the deriving classes ConstructL() methods. Reimplemented in CSenSoapMessage. |
|
Getter for the envelope body as a UTF-8 form XML string.
|
|
Getter for envelopes body.
|
|
Detaches the <Fault> element from the envelope, removing the element from the envelope.
|
|
Callback function which implement the XML content handler interface. This callback will occur on each end element tag found in the XML document.
Reimplemented from CSenBaseFragment. |
|
Gets the <Fault> element. Ownership is not transferred. NULL if not a fault.
|
|
Getter for envelopes header.
|
|
Checks if this SOAP envelope body contains SOAP fault or not.
|
|
Two-phased constructor. Reimplemented in CSenSoapMessage. |
|
This method should be overridden by subclasses. Implements functionality to parse SOAP header if one is found during parsing the envelope. Parses all elements found under top <Header> element by using DOM fragment.
Reimplemented in CSenSoapMessage. |
|
Sets body of the envelope.
|
|
Sets the SOAP action HTTP header. WSF will use this value while submitting this SOAP envelope request over HTTP/S transport.
|
|
Gets the soap action header.
|
|
Callback function which implement the XML content handler interface. This callback will occur on each start element tag found in the XML document. The SOAP envelope recognizes and parses the following elements and their corresponding attributes inside namespace defined in KSoapXmlns: KEnvelopeName, "Envelope" KHeaderName, "Header" KBodyName, "Body" KFault, "Fault" (only if found inside Body element)
Reimplemented from CSenBaseFragment. |
|
|
|