KD SOAP  1.10.0
KDSoapMessageWriter_p.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap library.
4 **
5 ** SPDX-FileCopyrightText: 2010-2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDSoap OR LicenseRef-KDAB-KDSoap-US
8 **
9 ** Licensees holding valid commercial KD Soap licenses may use this file in
10 ** accordance with the KD Soap Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 #ifndef KDSOAPMESSAGEWRITER_P_H
17 #define KDSOAPMESSAGEWRITER_P_H
18 
19 #include "KDSoapMessage.h"
20 #include "KDSoapAuthentication.h"
21 #include "KDSoapClientInterface.h"
22 #include <QtCore/QXmlStreamWriter>
23 #include <QtCore/QByteArray>
24 #include <QtCore/QString>
25 #include <QtCore/QMap>
26 class KDSoapMessage;
27 class KDSoapHeaders;
28 class KDSoapNamespacePrefixes;
29 class KDSoapValue;
30 class KDSoapValueList;
31 
36 class KDSOAP_EXPORT KDSoapMessageWriter
37 {
38 public:
39  KDSoapMessageWriter();
40 
41  void setVersion(KDSoap::SoapVersion version);
42  void setMessageNamespace(const QString &ns);
43 
44  QByteArray messageToXml(const KDSoapMessage &message, const QString &method /*empty in document style*/,
45  const KDSoapHeaders &headers,
46  const QMap<QString, KDSoapMessage> &persistentHeaders,
47  const KDSoapAuthentication &authentication = KDSoapAuthentication()) const;
48 
49 private:
50  QString m_messageNamespace;
51  KDSoap::SoapVersion m_version;
52 
53 };
54 
55 #endif // KDSOAPMESSAGEWRITER_P_H
Definition: KDSoapValue.h:69
Definition: KDSoapMessage.h:188
Definition: KDSoapAuthentication.h:36
Definition: KDSoapMessage.h:34
Definition: KDSoapValue.h:330

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/