Link against: senmessages.lib
#include <MSenMessage.h>
Inherited by CSenSoapEnvelope2.
Public Types | |
enum | TClass { EMessageBase = 0, EHttpGetMsg = 1, EHttpPostMsg = 2, EHttpPutMsg = 3, EHttpDeleteMsg = 4, ESoapEnvelope = 5, ESoapMessage = 6, ESoapEnvelope2 = 7, ESoapMessage2 = 8, ESoapMessageDom2 = 9, EAtomMessage = 10 } |
Class Enumeration. More... | |
enum | TDirection { EOutbound = 0, EInbound = 1 } |
Direction Enumeration. More... | |
Public Member Functions | |
virtual TClass | Type ()=0 |
Gets the Message Type. | |
virtual TDirection | Direction ()=0 |
Gets the Message Direction. | |
virtual TInt | SetContext (MSenMessageContext *apNotOwnedContext)=0 |
Sets message context for this message. | |
virtual MSenMessageContext * | Context ()=0 |
Getter for message's context. | |
virtual TInt | SetProperties (MSenProperties *apOwnedProperties)=0 |
Sets properties for this message. | |
virtual MSenProperties * | Properties ()=0 |
Getter for message specific (transport) properties. | |
virtual TBool | IsSafeToCast (TClass aType)=0 |
virtual TInt | TxnId ()=0 |
Getter for transaction ID of this message. | |
virtual MSenMessage * | CloneL ()=0 |
Clone method that duplicates this message -- including all member data in the message. |
|
Class Enumeration. |
|
Direction Enumeration. |
|
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.
Implemented in CSenSoapEnvelope2, and CSenSoapMessage2. |
|
Getter for message's context.
Implemented in CSenSoapEnvelope2. |
|
Gets the Message Direction. Implemented in CSenSoapEnvelope2. |
|
|
Getter for message specific (transport) properties.
Implemented in CSenSoapEnvelope2. |
|
Sets message context for this message. If context already exists, it is discarded and replaced by this context (context reset is performed).
Implemented in CSenSoapEnvelope2. |
|
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.
Implemented in CSenSoapEnvelope2. |
|
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.
Implemented in CSenSoapEnvelope2. |
|
Gets the Message Type. Implemented in CSenSoapEnvelope2, and CSenSoapMessage2. |