2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: This utility class represents SOAP fault element according to
15 * SOAP fault specification.
26 #ifndef SEN_SOAP_FAULT_H
27 #define SEN_SOAP_FAULT_H
30 #include <SenBaseElement.h>
31 #include <SenSoapConstants.h>
37 * This utility class represents SOAP fault element according to SOAP fault
39 * SOAP fault element has following child elements:
48 class CSenSoapFault : public CSenBaseElement
50 public: // Constructors and destructor
53 * Copy constructor, making a copy of the original source element.
55 * @param aCopiedSource Element where source will be copied.
57 IMPORT_C static CSenSoapFault* NewL(CSenElement& aCopiedSource);
62 * @param aNsUri is the XML namespace of this SOAP fault
63 * @param aLocalName is the localname for this SOAP fault
64 * @param aQName is the qualifiedname for this SOAP fault
65 * @param aAttributes are the XML attributes for this SOAP fault
66 * Parameters are used to construct the soap fault.
68 IMPORT_C static CSenSoapFault* NewL(const TDesC8& aNsUri,
69 const TDesC8& aLocalName,
71 const RAttributeArray& aAttributes);
76 IMPORT_C virtual ~CSenSoapFault();
82 * @return the content of <faultcode> element as UTF-8 form string
83 * or KNullDesC8, if element is not available
85 IMPORT_C TPtrC8 FaultCode();
89 * @return the content of <Subcode> element as UTF-8 form string
90 * or KNullDesC8, if element is not available
92 IMPORT_C TPtrC8 FaultSubcode();
96 * @return the content of <faultstring> element as UTF-8 form string
97 * or KNullDesC8, if element is not available
99 IMPORT_C TPtrC8 FaultString();
102 * @since Series60 3.0
103 * @return the content of <faultactor> element as UTF-8 form string
104 * or KNullDesC8, if element is not available
106 IMPORT_C TPtrC8 FaultActor();
109 * @since Series60 3.0
110 * @return the content of <detail> element as UTF-8 form string
111 * or KNullDesC8, if element is not available
113 IMPORT_C TPtrC8 Detail();
118 * C++ default constructor
120 IMPORT_C CSenSoapFault();
123 * Basic ConstructL function
124 * @since Series60 3.0
125 * @param aCopiedSource is the CSenElement from which data to this
126 * SOAP fault object is to be copied.
128 IMPORT_C void ConstructL(CSenElement& aCopiedSource);
131 * Basic ConstructL function
132 * @since Series60 3.0
133 * @param aNsUri is the XML namespace URI of this SOAP fault
134 * @param aLocalName is the XML localname URI of this SOAP fault
135 * @param aQName is the XML qualifiedname URI of this SOAP fault
136 * @param aAttributes are the XML attributes for this SOAP fault
138 IMPORT_C void ConstructL(const TDesC8& aNsUri,
139 const TDesC8& aLocalName,
140 const TDesC8& aQName,
141 const RAttributeArray& aAttributes);
144 #endif // SEN_SOAP_ENVELOPE_H