23 #ifndef KDSOAPNAMESPACEPREFIXES_P_H 24 #define KDSOAPNAMESPACEPREFIXES_P_H 26 #include <QtCore/QMap> 27 #include <QtCore/QXmlStreamWriter> 29 #include "KDSoapClientInterface.h" 30 #include "KDSoapMessageAddressingProperties.h" 32 class KDSoapNamespacePrefixes :
public QMap<QString , QString >
35 void writeStandardNamespaces(QXmlStreamWriter &writer,
36 KDSoap::SoapVersion version = KDSoap::SOAP1_1,
37 bool messageAddressingEnabled =
false,
41 void writeNamespace(QXmlStreamWriter &writer,
const QString &ns,
const QString &prefix)
45 writer.writeNamespace(ns, prefix);
47 QString resolve(
const QString &ns,
const QString &localName)
const 49 const QString prefix = value(ns);
50 if (prefix.isEmpty()) {
51 qWarning(
"ERROR: Namespace not found: %s (for localName %s)", qPrintable(ns), qPrintable(localName));
53 return prefix + QLatin1Char(
':') + localName;
57 #endif // KDSOAPNAMESPACESPREFIXES_H KDSoapAddressingNamespace
Definition: KDSoapMessageAddressingProperties.h:107