KD SOAP: /home/allen/projects/kdsoap/src/KDSoapClient/KDSoapClientInterface.h Source File

| KD SOAP 2.0.0

KDSoapClientInterface.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap library.
4 **
5 ** SPDX-FileCopyrightText: 2010-2021 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 KDSOAPCLIENTINTERFACE_H
17 #define KDSOAPCLIENTINTERFACE_H
18
19 #include <QtCore/QtGlobal>
20 #include <QtCore/QString>
21 #include "KDSoapMessage.h"
22 #include "KDSoapPendingCall.h"
23
24 class KDSoapAuthentication;
25 class KDSoapSslHandler;
26 class KDSoapClientInterfacePrivate;
27 QT_BEGIN_NAMESPACE
28 class QSslError;
29 class QSslConfiguration;
30 class QNetworkCookieJar;
31 class QNetworkProxy;
32 QT_END_NAMESPACE
33
56 class KDSOAP_EXPORT KDSoapClientInterface
57 {
58 public:
63 enum SoapVersion
64 {
66 SOAP1_1 = 1,
68 SOAP1_2 = 2
69 };
70
81 explicit KDSoapClientInterface(const QString &endPoint, const QString &messageNamespace);
86 ~KDSoapClientInterface();
87
132 KDSoapPendingCall asyncCall(const QString &method, const KDSoapMessage &message, const QString &soapAction = QString(),
133 const KDSoapHeaders &headers = KDSoapHeaders());
134
149 KDSoapMessage call(const QString &method, const KDSoapMessage &message, const QString &soapAction = QString(),
150 const KDSoapHeaders &headers = KDSoapHeaders());
151
165 void callNoReply(const QString &method, const KDSoapMessage &message, const QString &soapAction = QString(),
166 const KDSoapHeaders &headers = KDSoapHeaders());
167
172 void setAuthentication(const KDSoapAuthentication &authentication);
173
179 void setHeader(const QString &name, const KDSoapMessage &header);
180
186 void setSoapVersion(KDSoapClientInterface::SoapVersion version);
187
191 KDSoapClientInterface::SoapVersion soapVersion() const;
192
197 QString endPoint() const;
198
205 void setEndPoint(const QString &endPoint);
206
213 QNetworkCookieJar *cookieJar() const;
214
221 void setCookieJar(QNetworkCookieJar *jar);
222
228 QNetworkProxy proxy() const;
229
235 void setProxy(const QNetworkProxy &proxy);
236
242 void setRawHTTPHeaders(const QMap<QByteArray, QByteArray> &headers);
243
257 enum Style
258 {
259 RPCStyle,
260 DocumentStyle
261 };
262
267 void setStyle(Style style);
268
273 Style style() const;
274
280 KDSoapHeaders lastResponseHeaders() const;
281
286 void ignoreSslErrors();
287
288 #ifndef QT_NO_SSL
289
298 void ignoreSslErrors(const QList<QSslError> &errors);
299 #endif
300
311 KDSoapSslHandler *sslHandler() const;
312
313 #ifndef QT_NO_SSL
314
318 QSslConfiguration sslConfiguration() const;
319
324 void setSslConfiguration(const QSslConfiguration &config);
325 #endif
326
332 int timeout() const;
333
339 void setTimeout(int msecs);
340
350 void setSendSoapActionInHttpHeader(bool sendInHttpHeader);
351
359 bool sendSoapActionInHttpHeader() const;
360
369 void setSendSoapActionInWsAddressingHeader(bool sendInWsAddressingHeader);
370
380 bool sendSoapActionInWsAddressingHeader() const;
381
382 private:
383 friend class KDSoapThreadTask;
384 KDSoapClientInterfacePrivate *const d;
385 };
386
387 #endif // KDSOAPCLIENTINTERFACE_H
KDSoapHeaders
Definition: KDSoapMessage.h:192
KDSoapAuthentication
Definition: KDSoapAuthentication.h:37
KDSoapClientInterface::Style
Style
Definition: KDSoapClientInterface.h:258
KDSoapClientInterface
Definition: KDSoapClientInterface.h:57
QList< QSslError >
KDSoapSslHandler
A class for handling SSL errors during SOAP calls.
Definition: KDSoapSslHandler.h:37
KDSoapMessage
Definition: KDSoapMessage.h:35
QString
KDSoapClientInterface::RPCStyle
@ RPCStyle
the method name is sent as an xml element wrapping the message parameters
Definition: KDSoapClientInterface.h:259
QMap< QByteArray, QByteArray >
KDSoapClientInterface::SoapVersion
SoapVersion
Definition: KDSoapClientInterface.h:64
KDSoapPendingCall
Definition: KDSoapPendingCall.h:45

© 2010-2021 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/
Generated on Wed Jun 30 2021 18:19:27 for KD SOAP by doxygen 1.8.20