15#include <QNetworkReply>
19 const QByteArray doDebug = qgetenv(
"KDSOAP_DEBUG");
21 const bool optEscape = options.
contains(
"escape");
23 const bool optReformat = options.
contains(
"reformat");
24 quint8 indentation = 4;
25 for (
const QByteArray &opt : qAsConst(options)) {
26 if (opt.startsWith(
"indent=")) {
27 indentation = opt.mid(7).toUShort();
34 if (!header.first.isEmpty()) {
35 toOutput += header.first +
": ";
37 toOutput += header.second +
"\n";
49 while (!reader.
atEnd()) {
56 toOutput += reader.
hasError() ? data : reformatted;
64 qDebug().noquote() << toOutput;
71 const QByteArray doDebug = qgetenv(
"KDSOAP_DEBUG");
83 const QByteArray doDebug = qgetenv(
"KDSOAP_DEBUG");
134 : d(new
Private(reply, buffer))
155 return d->reply.data()->isFinished();
161 return d->replyMessage;
167 return d->replyHeaders;
173 if (!d->replyMessage.childValues().isEmpty()) {
174 return d->replyMessage.childValues().first().value();
185 if (!
reply->isFinished()) {
186 qWarning(
"KDSoap: Parsing reply before it finished!");
200 if (reply->
error()) {
204 &&
reply->property(
"kdsoap_reply_timed_out").toBool()) {
static void debugHelper(const QByteArray &data, const QList< QNetworkReply::RawHeaderPair > &headerList)
void maybeDebugRequest(const QByteArray &data, const QNetworkRequest &request, QNetworkReply *reply)
static void maybeDebugResponse(const QByteArray &data, QNetworkReply *reply)
XmlError xmlToMessage(const QByteArray &data, KDSoapMessage *pParsedMessage, QString *pMessageNamespace, KDSoapHeaders *pRequestHeaders, KDSoap::SoapVersion soapVersion) const
void createFaultMessage(const QString &faultCode, const QString &faultText, KDSoap::SoapVersion soapVersion)
QPointer< QNetworkReply > reply
KDSoapHeaders replyHeaders
KDSoapMessage replyMessage
KDSoap::SoapVersion soapVersion
KDSoapPendingCall(const KDSoapPendingCall &other)
KDSoapHeaders returnHeaders() const
QVariant returnValue() const
KDSoapPendingCall & operator=(const KDSoapPendingCall &other)
KDSoapMessage returnMessage() const
bool isEmpty() const const
QList< QByteArray > split(char sep) const const
QByteArray toLower() const const
QByteArray trimmed() const const
bool contains(const T &value) const const
QNetworkReply::NetworkError error() const const
QNetworkAccessManager::Operation operation() const const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString number(int n, int base)
QByteArray toUtf8() const const
QString toString(QUrl::FormattingOptions options) const const
bool hasError() const const
bool isWhitespace() const const
QXmlStreamReader::TokenType readNext()
void writeCurrentToken(const QXmlStreamReader &reader)