KD SOAP 2.0.0
Loading...
Searching...
No Matches
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
26class KDSoapClientInterfacePrivate;
27QT_BEGIN_NAMESPACE
28class QSslError;
29class QSslConfiguration;
30class QNetworkCookieJar;
31class QNetworkProxy;
32QT_END_NAMESPACE
33
56class KDSOAP_EXPORT KDSoapClientInterface
57{
58public:
64 {
66 SOAP1_1 = 1,
68 SOAP1_2 = 2
69 };
70
81 explicit KDSoapClientInterface(const QString &endPoint, const QString &messageNamespace);
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 {
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
298 void ignoreSslErrors(const QList<QSslError> &errors);
299#endif
300
311 KDSoapSslHandler *sslHandler() const;
312
313#ifndef QT_NO_SSL
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
382private:
383 friend class KDSoapThreadTask;
384 KDSoapClientInterfacePrivate *const d;
385};
386
387#endif // KDSOAPCLIENTINTERFACE_H
Definition: KDSoapAuthentication.h:37
Definition: KDSoapClientInterface.h:57
SoapVersion
Definition: KDSoapClientInterface.h:64
Style
Definition: KDSoapClientInterface.h:258
@ RPCStyle
the method name is sent as an xml element wrapping the message parameters
Definition: KDSoapClientInterface.h:259
Definition: KDSoapMessage.h:192
Definition: KDSoapMessage.h:35
Definition: KDSoapPendingCall.h:45
A class for handling SSL errors during SOAP calls.
Definition: KDSoapSslHandler.h:37

© 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 Thu Apr 2 2026 10:58:54 for KD SOAP by doxygen 1.9.6