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, KDSoap::SoapVersion version = KDSoap::SOAP1_1,
bool messageAddressingEnabled =
false,
30 KDSoapMessageAddressingProperties::Addressing200508);
32 void writeNamespace(QXmlStreamWriter &writer,
const QString &ns,
const QString &prefix)
36 writer.writeNamespace(ns, prefix);
38 QString resolve(
const QString &ns,
const QString &localName)
const 40 const QString prefix = value(ns);
41 if (prefix.isEmpty()) {
42 qWarning(
"ERROR: Namespace not found: %s (for localName %s)", qPrintable(ns), qPrintable(localName));
44 return prefix + QLatin1Char(
':') + localName;
48 #endif // KDSOAPNAMESPACESPREFIXES_H KDSoapAddressingNamespace
Definition: KDSoapMessageAddressingProperties.h:106