00001 /* 00002 * ============================================================================== 00003 * Name : SenSoapMessage.h 00004 * Part of : Web Services Framework / Utils 00005 * Interface : 00006 * Description : CSenSoapMessage is an utility class offering capability to 00007 * parse XML SOAP envelope and manipulation methods to alter its 00008 * contents. 00009 * Version : 00010 * 00011 * Copyright © 2002-2005 Nokia. All rights reserved. 00012 * This material, including documentation and any related 00013 * computer programs, is protected by copyright controlled by 00014 * Nokia. All rights are reserved. Copying, including 00015 * reproducing, storing, adapting or translating, any 00016 * or all of this material requires the prior written consent of 00017 * Nokia. This material also contains confidential 00018 * information which may not be disclosed to others without the 00019 * prior written consent of Nokia. 00020 * ============================================================================== 00021 */ 00022 00023 #ifndef SEN_SOAP_MESSAGE_H 00024 #define SEN_SOAP_MESSAGE_H 00025 00026 // INCLUDES 00027 #include <SenWsSecurityHeader.h> 00028 #include <SenSoapEnvelope.h> 00029 00030 // CLASS DECLARATION 00031 00038 class CSenSoapMessage : public CSenSoapEnvelope 00039 { 00040 public: // Constructors and destructor 00041 00045 IMPORT_C static CSenSoapMessage* NewL(); 00046 00052 IMPORT_C static CSenSoapMessage* NewL(TSOAPVersion aVersion); 00053 00061 IMPORT_C static CSenSoapMessage* NewL(TSOAPVersion aVersion, const TDesC8& aSecurityNs); 00062 00066 IMPORT_C virtual ~CSenSoapMessage(); 00067 00068 // New functions 00069 00076 IMPORT_C void SetSecurityHeaderL(const TDesC8& aData); 00077 00088 IMPORT_C TInt AddSecurityTokenL(const TDesC8& aNewToken); 00089 00090 protected: 00091 00095 IMPORT_C CSenSoapMessage::CSenSoapMessage(); 00096 00097 // New functions 00098 00106 IMPORT_C virtual CSenWsSecurityHeader* NewSecurityHeaderLC( 00107 const TDesC8* aData=NULL); 00108 00109 // Functions from base classes 00110 00111 // From CSenSoapEnvelope 00112 00127 IMPORT_C virtual void ParseHeaderL(const TDesC8& aNsUri, 00128 const TDesC8& aLocalName, 00129 const TDesC8& aQName, 00130 const RAttributeArray& aAttributes); 00131 00136 IMPORT_C void BaseConstructL(); 00137 00142 IMPORT_C void BaseConstructL(TSOAPVersion aVersion); 00143 00151 IMPORT_C void BaseConstructL(TSOAPVersion aVersion, const TDesC8& aSecurityNs); 00152 00153 protected: // Data 00154 // Owned, but element not owned 00155 CSenWsSecurityHeader* ipSecurityHeader; 00156 }; 00157 00158 #endif // SEN_SOAP_MESSAGE_H 00159 00160 // End of File 00161 00162