23 #ifndef KDSOAPNAMESPACEPREFIXES_P_H 24 #define KDSOAPNAMESPACEPREFIXES_P_H 26 #include <QtCore/QMap> 27 #include <QtCore/QXmlStreamWriter> 29 #include "KDSoapClientInterface.h" 31 class KDSoapNamespacePrefixes :
public QMap<QString , QString >
34 void writeStandardNamespaces(QXmlStreamWriter &writer,
36 bool messageAddressingEnabled =
false);
38 void writeNamespace(QXmlStreamWriter &writer,
const QString &ns,
const QString &prefix)
42 writer.writeNamespace(ns, prefix);
44 QString resolve(
const QString &ns,
const QString &localName)
const 46 const QString prefix = value(ns);
47 if (prefix.isEmpty()) {
48 qWarning(
"ERROR: Namespace not found: %s (for localName %s)", qPrintable(ns), qPrintable(localName));
50 return prefix + QLatin1Char(
':') + localName;
54 #endif // KDSOAPNAMESPACESPREFIXES_H Definition: KDSoapClientInterface.h:72
SoapVersion
Definition: KDSoapClientInterface.h:70