16 #ifndef KDSOAPNAMESPACEPREFIXES_P_H 17 #define KDSOAPNAMESPACEPREFIXES_P_H 19 #include <QtCore/QMap> 20 #include <QtCore/QXmlStreamWriter> 22 #include "KDSoapClientInterface.h" 23 #include "KDSoapMessageAddressingProperties.h" 25 class KDSoapNamespacePrefixes :
public QMap<QString , QString >
28 void writeStandardNamespaces(QXmlStreamWriter &writer,
29 KDSoap::SoapVersion version = KDSoap::SOAP1_1,
30 bool messageAddressingEnabled =
false,
34 void writeNamespace(QXmlStreamWriter &writer,
const QString &ns,
const QString &prefix)
38 writer.writeNamespace(ns, prefix);
40 QString resolve(
const QString &ns,
const QString &localName)
const 42 const QString prefix = value(ns);
43 if (prefix.isEmpty()) {
44 qWarning(
"ERROR: Namespace not found: %s (for localName %s)", qPrintable(ns), qPrintable(localName));
46 return prefix + QLatin1Char(
':') + localName;
50 #endif // KDSOAPNAMESPACESPREFIXES_H KDSoapAddressingNamespace
Definition: KDSoapMessageAddressingProperties.h:100