SenSoapMessage2.h

Go to the documentation of this file.
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_MESSAGE2_H
00024 #define SEN_SOAP_MESSAGE2_H
00025 
00026 //  INCLUDES
00027 #include <SenWsSecurityHeader2.h>
00028 #include <SenSoapEnvelope2.h>
00029 
00030 class MSenMessageContext;
00031 
00032 // CLASS DECLARATION
00033 
00040 class CSenSoapMessage2 : public CSenSoapEnvelope2
00041     {
00042     public:  // Constructors and destructor
00043 
00047         IMPORT_C static CSenSoapMessage2* NewL();
00048 
00052         IMPORT_C static CSenSoapMessage2* NewLC();
00053 
00057             IMPORT_C static CSenSoapMessage2* NewL(TSOAPVersion aVersion);
00058 
00062             IMPORT_C static CSenSoapMessage2* NewLC(TSOAPVersion aVersion);
00063 
00067         IMPORT_C static CSenSoapMessage2* NewL(TSOAPVersion aVersion, const TDesC8& aSecurityNs);
00068 
00072         IMPORT_C static CSenSoapMessage2* NewLC(TSOAPVersion aVersion, const TDesC8& aSecurityNs);
00073 
00077         IMPORT_C static CSenSoapMessage2* NewL(MSenMessageContext& aContext);
00078 
00082         IMPORT_C static CSenSoapMessage2* NewLC(MSenMessageContext& aContext);
00083 
00087             IMPORT_C static CSenSoapMessage2* NewL(MSenMessageContext& aContext,
00088                                                    TSOAPVersion aVersion);
00089 
00093             IMPORT_C static CSenSoapMessage2* NewLC(MSenMessageContext& aContext,
00094                                                     TSOAPVersion aVersion);
00095 
00099         IMPORT_C static CSenSoapMessage2* NewL(MSenMessageContext& aContext,
00100                                                TSOAPVersion aVersion,
00101                                                const TDesC8& aSecurityNs);
00102 
00106         IMPORT_C static CSenSoapMessage2* NewLC(MSenMessageContext& aContext,
00107                                                 TSOAPVersion aVersion,
00108                                                 const TDesC8& aSecurityNs);
00109 
00113         IMPORT_C static CSenSoapMessage2* NewL(CSenSoapMessage2& aMessage);
00114 
00118         IMPORT_C static CSenSoapMessage2* NewLC(CSenSoapMessage2& aMessage);
00119 
00123         IMPORT_C virtual ~CSenSoapMessage2();
00124 
00125         // New functions
00126 
00133         IMPORT_C void SetSecurityHeaderL(const TDesC8& aData);
00134 
00145         IMPORT_C TInt AddSecurityTokenL(const TDesC8& aNewToken);
00146         
00147     public: // From MSenMessage
00148         IMPORT_C virtual TClass Type();
00149         IMPORT_C virtual MSenMessage* CloneL();
00150 
00151     protected:
00152 
00156         IMPORT_C CSenSoapMessage2::CSenSoapMessage2();
00157 
00158         // New functions
00159 
00167         IMPORT_C virtual CSenWsSecurityHeader2* NewSecurityHeaderLC(
00168                                                     const TDesC8* aData,
00169                                                     RSenDocument aDocument,
00170                                                     TXmlEngElement element);
00171 
00172         // Functions from base classes
00173 
00174         // From CSenSoapEnvelope
00175         IMPORT_C virtual void ParseHeaderL(const RTagInfo& aElement,
00176                                            const RAttributeArray& aAttributes);
00177 
00182         IMPORT_C void BaseConstructL();
00183 
00188             IMPORT_C void BaseConstructL(TSOAPVersion aVersion);
00189             
00194         IMPORT_C void BaseConstructL(TSOAPVersion aVersion, const TDesC8& aSecurityNs);     
00195 
00200         IMPORT_C void BaseConstructL(MSenMessageContext& aContext);
00201 
00206             IMPORT_C void BaseConstructL(MSenMessageContext& aContext,
00207                                          TSOAPVersion aVersion);
00208             
00213         IMPORT_C void BaseConstructL(MSenMessageContext& aContext,
00214                                      TSOAPVersion aVersion,
00215                                      const TDesC8& aSecurityNs);            
00216 
00222         IMPORT_C void BaseConstructL(CSenSoapMessage2& aMessage);
00223 
00224     protected: // Data
00225         // Owned, but element not owned
00226         CSenWsSecurityHeader2* ipSecurityHeader;
00227     };
00228 
00229 #endif // SEN_SOAP_MESSAGE_H
00230 
00231 // End of File
00232 
00233 

Copyright © Nokia Corporation 2001-2007
Back to top