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 |