16 #ifndef KDSOAPCLIENTINTERFACE_P_H
17 #define KDSOAPCLIENTINTERFACE_P_H
19 #include <QtNetwork/QSslConfiguration>
20 #include <QtNetwork/QNetworkAccessManager>
21 #include <QtNetwork/QNetworkCookieJar>
22 #include <QtCore/QXmlStreamWriter>
24 #include "KDSoapClientInterface.h"
25 #include "KDSoapClientThread_p.h"
26 #include "KDSoapAuthentication.h"
31 class KDSoapNamespacePrefixes;
33 class KDSoapClientInterfacePrivate :
public QObject
37 KDSoapClientInterfacePrivate();
38 ~KDSoapClientInterfacePrivate();
42 QNetworkAccessManager *m_accessManager;
44 QString m_messageNamespace;
45 KDSoapClientThread m_thread;
47 QMap<QString, KDSoapMessage> m_persistentHeaders;
48 QMap<QByteArray, QByteArray> m_httpHeaders;
49 KDSoap::SoapVersion m_version;
51 bool m_ignoreSslErrors;
54 QList<QSslError> m_ignoreErrorsList;
55 QSslConfiguration m_sslConfiguration;
59 bool m_sendSoapActionInHttpHeader =
true;
60 bool m_sendSoapActionInWsAddressingHeader =
false;
62 QNetworkAccessManager *accessManager();
63 QNetworkRequest prepareRequest(
const QString &method,
const QString &action);
64 QBuffer *prepareRequestBuffer(
const QString &method,
const KDSoapMessage &message,
const QString &soapAction,
const KDSoapHeaders &headers);
65 void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
const KDSoapValue &element,
KDSoapMessage::Use use);
67 void writeAttributes(QXmlStreamWriter &writer,
const QList<KDSoapValue> &attributes);
68 void setupReply(QNetworkReply *reply);
71 void _kd_slotAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
74 #endif // KDSOAPCLIENTINTERFACE_P_H