KD SOAP API Documentation 2.2
|
#include <KDSoapMessageAddressingProperties.h>
Public Types | |
enum | KDSoapAddressingNamespace { Addressing200303 , Addressing200403 , Addressing200408 , Addressing200508 } |
enum | KDSoapAddressingPredefinedAddress { None , Anonymous , Reply , Unspecified } |
Static Public Member Functions | |
static QString | addressingNamespaceToString (KDSoapAddressingNamespace addressingNamespace) |
static bool | isWSAddressingNamespace (const QString &namespaceUri) |
static QString | predefinedAddressToString (KDSoapAddressingPredefinedAddress address, KDSoapAddressingNamespace addressingNamespace=Addressing200508) |
The KDSoapMessageAddressingProperties class is the abstraction of the WS-Addressing specification. This specification sets up information within the soap envelope header. This class is meant to be filled with the data you want to have in the soap header and associate to a given message using
Definition at line 75 of file KDSoapMessageAddressingProperties.h.
This enum contains all the namespaces that can be used to send out WS-Addressing messages. This allows the application to select the WS-Addressing revision to be used.
Enumerator | |
---|---|
Addressing200303 | |
Addressing200403 | |
Addressing200408 | |
Addressing200508 |
Definition at line 100 of file KDSoapMessageAddressingProperties.h.
This enum contains all the predefined addresses defined by the ws addressing specification It is meant to be used with the predefinedAddress helper function to retrieve the uri as a QString
Enumerator | |
---|---|
None | |
Anonymous | |
Reply | |
Unspecified |
Definition at line 86 of file KDSoapMessageAddressingProperties.h.
KDSoapMessageAddressingProperties::KDSoapMessageAddressingProperties | ( | ) |
Constructs an empty KDSoapMessageAddressingProperties object.
Definition at line 38 of file KDSoapMessageAddressingProperties.cpp.
KDSoapMessageAddressingProperties::~KDSoapMessageAddressingProperties | ( | ) |
Destructs the KDSoapMessageAddressingProperties object.
Definition at line 203 of file KDSoapMessageAddressingProperties.cpp.
KDSoapMessageAddressingProperties::KDSoapMessageAddressingProperties | ( | const KDSoapMessageAddressingProperties & | other | ) |
Constructs a copy of the KDSoapMessageAddressingProperties object given by other
.
Definition at line 43 of file KDSoapMessageAddressingProperties.cpp.
QString KDSoapMessageAddressingProperties::action | ( | ) | const |
Returns the action uri, which is the semantic of the message
Definition at line 64 of file KDSoapMessageAddressingProperties.cpp.
Referenced by operator<<(), KDSoapClientInterfacePrivate::prepareRequestBuffer(), and setAction().
void KDSoapMessageAddressingProperties::addMetadata | ( | const KDSoapValue & | metadata | ) |
Add one metadata, if not null, to the list of metadata that will appear within soap header
Definition at line 186 of file KDSoapMessageAddressingProperties.cpp.
References metadata().
void KDSoapMessageAddressingProperties::addReferenceParameter | ( | const KDSoapValue & | oneReferenceParameter | ) |
Add a reference parameter, if not null, to the referenceParameters list
Definition at line 169 of file KDSoapMessageAddressingProperties.cpp.
References KDSoapValue::isNull().
void KDSoapMessageAddressingProperties::addRelationship | ( | const KDSoapMessageRelationship::Relationship & | relationship | ) |
Convenient method to add a single Relationship to the message
Definition at line 154 of file KDSoapMessageAddressingProperties.cpp.
KDSoapMessageAddressingProperties::KDSoapAddressingNamespace KDSoapMessageAddressingProperties::addressingNamespace | ( | ) | const |
Returns the selected WS-Addressing namespace
Definition at line 193 of file KDSoapMessageAddressingProperties.cpp.
Referenced by addressingNamespaceToString(), KDSoapMessageWriter::messageToXml(), predefinedAddressToString(), and setAddressingNamespace().
|
static |
Helper function that takes the addressingNamespace
enum to provide the QString equivalent
Definition at line 254 of file KDSoapMessageAddressingProperties.cpp.
References Addressing200303, Addressing200403, Addressing200408, Addressing200508, addressingNamespace(), KDSoapNamespaceManager::soapMessageAddressing(), KDSoapNamespaceManager::soapMessageAddressing200303(), KDSoapNamespaceManager::soapMessageAddressing200403(), and KDSoapNamespaceManager::soapMessageAddressing200408().
Referenced by predefinedAddressToString(), and KDSoapNamespacePrefixes::writeStandardNamespaces().
QString KDSoapMessageAddressingProperties::destination | ( | ) | const |
Returns the destination address, it should match the EndpointReference given from WSDL
Definition at line 54 of file KDSoapMessageAddressingProperties.cpp.
Referenced by operator<<(), and setDestination().
KDSoapEndpointReference KDSoapMessageAddressingProperties::faultEndpoint | ( | ) | const |
Returns the fault endpoint, which contains the address the server should send the potential fault error
Definition at line 114 of file KDSoapMessageAddressingProperties.cpp.
Referenced by operator<<(), setFaultEndpoint(), and setFaultEndpointAddress().
QString KDSoapMessageAddressingProperties::faultEndpointAddress | ( | ) | const |
Convenient method that returns the fault endpoint address, which is the address the server should send the potential fault error
Definition at line 119 of file KDSoapMessageAddressingProperties.cpp.
|
static |
Helper function that compares namespaceUri
with the known WS-Addressing namespaces
Definition at line 247 of file KDSoapMessageAddressingProperties.cpp.
References KDSoapNamespaceManager::soapMessageAddressing(), KDSoapNamespaceManager::soapMessageAddressing200303(), KDSoapNamespaceManager::soapMessageAddressing200403(), and KDSoapNamespaceManager::soapMessageAddressing200408().
Referenced by KDSoapMessageReader::xmlToMessage().
QString KDSoapMessageAddressingProperties::messageID | ( | ) | const |
Returns the message id
Definition at line 134 of file KDSoapMessageAddressingProperties.cpp.
Referenced by operator<<().
KDSoapValueList KDSoapMessageAddressingProperties::metadata | ( | ) | const |
Returns the metadata of the KDSoapMessageProperties
Definition at line 176 of file KDSoapMessageAddressingProperties.cpp.
Referenced by addMetadata().
KDSoapMessageAddressingProperties & KDSoapMessageAddressingProperties::operator= | ( | const KDSoapMessageAddressingProperties & | other | ) |
Copies the contents of the object given by other
.
Definition at line 48 of file KDSoapMessageAddressingProperties.cpp.
|
static |
Helper function that takes the address
enum and addressingNamespace
to provide the QString equivalent
Definition at line 207 of file KDSoapMessageAddressingProperties.cpp.
References Addressing200303, Addressing200403, Addressing200408, addressingNamespace(), addressingNamespaceToString(), Anonymous, None, Reply, and Unspecified.
KDSoapValueList KDSoapMessageAddressingProperties::referenceParameters | ( | ) | const |
Returns the custom reference parameters objects as a KDSoapValueList
Definition at line 159 of file KDSoapMessageAddressingProperties.cpp.
QVector< KDSoapMessageRelationship::Relationship > KDSoapMessageAddressingProperties::relationships | ( | ) | const |
Return the relationship of the KDSoapMessageAddressingProperties
Definition at line 144 of file KDSoapMessageAddressingProperties.cpp.
Referenced by setRelationships().
KDSoapEndpointReference KDSoapMessageAddressingProperties::replyEndpoint | ( | ) | const |
Returns the reply endpoint
Definition at line 94 of file KDSoapMessageAddressingProperties.cpp.
Referenced by operator<<(), setReplyEndpoint(), and setReplyEndpointAddress().
QString KDSoapMessageAddressingProperties::replyEndpointAddress | ( | ) | const |
Convenient method, returns the sender endpoint address
Definition at line 99 of file KDSoapMessageAddressingProperties.cpp.
void KDSoapMessageAddressingProperties::setAction | ( | const QString & | action | ) |
Sets the targeted action of the soap message
Definition at line 69 of file KDSoapMessageAddressingProperties.cpp.
References action().
Referenced by KDSoapClientInterfacePrivate::prepareRequestBuffer().
void KDSoapMessageAddressingProperties::setAddressingNamespace | ( | KDSoapMessageAddressingProperties::KDSoapAddressingNamespace | addressingNamespace | ) |
Sets the WS-Addressing namespace to be used for sending out messages.This allows the application to select the WS-Addressing revision to be used.
Definition at line 198 of file KDSoapMessageAddressingProperties.cpp.
References addressingNamespace().
void KDSoapMessageAddressingProperties::setDestination | ( | const QString & | destination | ) |
Sets the destination address, where the message will be sent to
Definition at line 59 of file KDSoapMessageAddressingProperties.cpp.
References destination().
void KDSoapMessageAddressingProperties::setFaultEndpoint | ( | const KDSoapEndpointReference & | faultEndpoint | ) |
Set the fault endpoint of the message
Definition at line 124 of file KDSoapMessageAddressingProperties.cpp.
References faultEndpoint().
void KDSoapMessageAddressingProperties::setFaultEndpointAddress | ( | const QString & | faultEndpoint | ) |
Convenient method to set directly the fault endpoint address of the message
Definition at line 129 of file KDSoapMessageAddressingProperties.cpp.
References faultEndpoint().
void KDSoapMessageAddressingProperties::setMessageID | ( | const QString & | id | ) |
Set the message id
Definition at line 139 of file KDSoapMessageAddressingProperties.cpp.
void KDSoapMessageAddressingProperties::setMetadata | ( | const KDSoapValueList & | metadataList | ) |
Set the metadata field, can be a multi level KDSoapValueList
Definition at line 181 of file KDSoapMessageAddressingProperties.cpp.
void KDSoapMessageAddressingProperties::setReferenceParameters | ( | const KDSoapValueList & | values | ) |
Set the reference parameters list, since this value can be anything custom, it uses a KDSoapValueList
Definition at line 164 of file KDSoapMessageAddressingProperties.cpp.
void KDSoapMessageAddressingProperties::setRelationships | ( | const QVector< KDSoapMessageRelationship::Relationship > & | relationships | ) |
Set the relationships of the message, parameter is a QVector of Relationship, the class Relationship carry the relationship type and the message ID of the related message
Definition at line 149 of file KDSoapMessageAddressingProperties.cpp.
References relationships().
void KDSoapMessageAddressingProperties::setReplyEndpoint | ( | const KDSoapEndpointReference & | replyEndpoint | ) |
Sets the reply endpoint the server should reply to
Definition at line 104 of file KDSoapMessageAddressingProperties.cpp.
References replyEndpoint().
void KDSoapMessageAddressingProperties::setReplyEndpointAddress | ( | const QString & | replyEndpoint | ) |
Convenient method to set directly the reply endpoint address the server should reply to
Definition at line 109 of file KDSoapMessageAddressingProperties.cpp.
References replyEndpoint().
void KDSoapMessageAddressingProperties::setSourceEndpoint | ( | const KDSoapEndpointReference & | sourceEndpoint | ) |
Sets the message sender endpoint
Definition at line 84 of file KDSoapMessageAddressingProperties.cpp.
References sourceEndpoint().
void KDSoapMessageAddressingProperties::setSourceEndpointAddress | ( | const QString & | sourceEndpoint | ) |
Convenient method, sets the message sender address
Definition at line 89 of file KDSoapMessageAddressingProperties.cpp.
References sourceEndpoint().
KDSoapEndpointReference KDSoapMessageAddressingProperties::sourceEndpoint | ( | ) | const |
Returns the message sender endpoint
Definition at line 74 of file KDSoapMessageAddressingProperties.cpp.
Referenced by operator<<(), setSourceEndpoint(), and setSourceEndpointAddress().
QString KDSoapMessageAddressingProperties::sourceEndpointAddress | ( | ) | const |
Convenient method, returns directly the source endpoint address
Definition at line 79 of file KDSoapMessageAddressingProperties.cpp.