Link against: senmessages.lib
#include <SenSoapEnvelope2.h>
Inherits CSenFragmentBase, and MSenMessage.
Inherited by CSenSoapMessage2.
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 | ~CSenSoapEnvelope2 () |
Destructor. |
|
virtual IMPORT_C TPtrC8 | SetBodyL (const TDesC8 &aBody) |
Sets body of the envelope. |
|
virtual IMPORT_C TXmlEngElement | SetBodyL (TXmlEngElement aBodyElement) |
Sets body of the envelope. |
|
virtual IMPORT_C TXmlEngElement | BodyL () |
Getter for envelopes body. |
|
virtual IMPORT_C TXmlEngElement | HeaderL () |
Getter for envelopes header. |
|
virtual IMPORT_C TXmlEngElement | AddHeaderL (TXmlEngElement 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 CSenSoapFault2 * | DetachFaultL () |
Detaches the <Fault> element from the envelope, removing the element from the envelope. |
|
virtual IMPORT_C CSenSoapFault2 * | 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. |
|
IMPORT_C TBool | HasHeader () |
IMPORT_C TBool | HasBody () |
virtual IMPORT_C TSOAPVersion | SoapVersion () |
Getter for currently effecitve SOAP version. |
|
virtual IMPORT_C TClass | Type () |
Gets the Message Type. |
|
virtual IMPORT_C TDirection | Direction () |
Gets the Message Direction. |
|
virtual IMPORT_C TInt | SetContext (MSenMessageContext *apOwnedContext) |
Sets message context for this message. |
|
virtual IMPORT_C MSenMessageContext * | Context () |
Getter for message's context. |
|
virtual IMPORT_C TInt | SetProperties (MSenProperties *apOwnedProperties) |
Sets properties for this message. |
|
virtual IMPORT_C MSenProperties * | Properties () |
Getter for message specific (transport) properties. |
|
virtual IMPORT_C TBool | IsSafeToCast (TClass aType) |
virtual IMPORT_C TInt | TxnId () |
Getter for transaction ID of this message. |
|
virtual IMPORT_C MSenMessage * | CloneL () |
Clone method that duplicates this message -- including all member data in the message. |
|
Static Public Member Functions |
|
static IMPORT_C CSenSoapEnvelope2 * | NewL () |
Two-phased constructor. |
|
static IMPORT_C CSenSoapEnvelope2 * | NewLC () |
Two-phased constructor. |
|
static IMPORT_C CSenSoapEnvelope2 * | NewL (MSenMessageContext &aContext) |
Two-phased constructor. |
|
static IMPORT_C CSenSoapEnvelope2 * | NewLC (MSenMessageContext &aContext) |
Two-phased constructor. |
|
static IMPORT_C CSenSoapEnvelope2 * | NewL (CSenSoapEnvelope2 &aEnvelope) |
Two-phased copy constructor. |
|
static IMPORT_C CSenSoapEnvelope2 * | NewLC (CSenSoapEnvelope2 &aEnvelope) |
Two-phased copy constructor. |
|
Protected Member Functions |
|
CSenSoapEnvelope2 () | |
Constructor. |
|
IMPORT_C void | BaseConstructL (TSOAPVersion aVersion) |
This method should be called from the deriving classes ConstructL() methods. |
|
IMPORT_C void | BaseConstructL () |
This method should be called from the deriving classes ConstructL() methods. |
|
IMPORT_C void | BaseConstructL (MSenMessageContext &aMessage) |
This method should be called from the deriving classes ConstructL() methods. |
|
IMPORT_C void | BaseConstructL (MSenMessageContext &aMessage, TSOAPVersion aVersion) |
This method should be called from the deriving classes ConstructL() methods. |
|
IMPORT_C void | BaseConstructL (CSenSoapEnvelope2 &aEnvelope) |
This method should be called from the deriving classes ConstructL() methods. |
|
virtual IMPORT_C void | ParseHeaderL (const RTagInfo &aElement, const RAttributeArray &aAttributes) |
This method should be overridden by subclasses. |
|
virtual IMPORT_C void | OnStartElementL (const RTagInfo &aElement, const RAttributeArray &aAttributes, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnEndElementL (const RTagInfo &aElement, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C CSenFragmentBase * | CreateBodyFragmentL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttributes, TXmlEngElement &aParent, RSenDocument &aOwnerDocument) |
Protected Attributes |
|
CSenFragmentBase * | ipBodyFragment |
CSenFragmentBase * | ipHeaderFragment |
HBufC8 * | ipSoapAction |
TInt | iTransactionId |
MSenProperties * | ipProperties |
MSenMessageContext * | ipNotOwnedContext |
TAny * | ipReserved |
TBool | iFault |
TDirection | iDirection |
|
Destructor. |
|
Constructor. |
|
Adds an element to the header.
|
|
This method should be called from the deriving classes ConstructL() methods.
|
|
This method should be called from the deriving classes ConstructL() methods.
Reimplemented in CSenSoapMessage2. |
|
This method should be called from the deriving classes ConstructL() methods.
Reimplemented in CSenSoapMessage2. |
|
This method should be called from the deriving classes ConstructL() methods.
Reimplemented in CSenSoapMessage2. |
|
This method should be called from the deriving classes ConstructL() methods.
Reimplemented in CSenSoapMessage2. |
|
Getter for the envelope body as a UTF-8 form XML string.
|
|
Getter for envelopes body.
|
|
Clone method that duplicates this message -- including all member data in the message. For the service consumers, a typical use case for cloning the message is when there is need to preserve the received response beyond the life time of a transaction. Normally, the response messages, that are owned by service connection are de-allocated after execution returns from MSenServiceConsumer interface's HandleMessageL or HandleErrorL method, back to the service connection.
Implements MSenMessage. Reimplemented in CSenSoapMessage2. |
|
Getter for message's context.
Implements MSenMessage. |
|
|
Detaches the <Fault> element from the envelope, removing the element from the envelope.
|
|
Gets the Message Direction. Implements MSenMessage. |
|
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 copy constructor. |
|
Two-phased constructor. Reimplemented in CSenSoapMessage2. |
|
Two-phased constructor. Reimplemented in CSenSoapMessage2. |
|
Two-phased copy constructor. |
|
Two-phased constructor. Reimplemented in CSenSoapMessage2. |
|
Two-phased constructor. Reimplemented in CSenSoapMessage2. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
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 CSenSoapMessage2. |
|
Getter for message specific (transport) properties.
Implements MSenMessage. |
|
Sets body of the envelope.
|
|
Sets body of the envelope.
|
|
Sets message context for this message. If context already exists, it is discarded and replaced by this context (context reset is performed).
Implements MSenMessage. |
|
Sets properties for this message. Most typical use case is to set message spesific transport properties.
2. If context is NOT available, properties will be directly owned by this message.
Implements MSenMessage. |
|
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.
|
|
Getter for currently effecitve SOAP version.
|
|
Getter for transaction ID of this message. In case of receiving a response message from service provider, this transaction ID may be used to map the response with request that the service consumer sent via service connection. In such case, the consumer can store return value from SendL method that was invoked in order maintain this mapping.
Implements MSenMessage. |
|
Gets the Message Type. Implements MSenMessage. Reimplemented in CSenSoapMessage2. |
|
|
|
|
|
|
|
|
|