QStringLiteral("http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ProbeMatches")) { TNS__ProbeMatchesType probeMatches;
probeMatches.deserialize(message);
qDebug() << "Received probe match from" << address;
}
});
soapUdpClient->bind(3702);
TNS__ProbeType probe;
message = probe.serialize(QStringLiteral("Probe"));
message.
setNamespaceUri(QStringLiteral(
"http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01"));
addressing.
setAction(QStringLiteral(
"http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Probe"));
addressing.
setMessageID(QStringLiteral(
"urn:uuid:") + QUuid::createUuid().toString(QUuid::WithoutBraces));
addressing.
setDestination(QStringLiteral(
"urn:docs-oasis-open-org:ws-dd:ns:discovery:2009:01"));
soapUdpClient->sendMessage(message,
KDSoapHeaders(), QHostAddress(
"239.255.255.250"), 3702);
Definition: KDSoapMessageAddressingProperties.h:82
void setReplyEndpointAddress(const QString &replyEndpoint)
Definition: KDSoapMessageAddressingProperties.cpp:115
void setDestination(const QString &destination)
Definition: KDSoapMessageAddressingProperties.cpp:65
void setMessageID(const QString &id)
Definition: KDSoapMessageAddressingProperties.cpp:145
void setAction(const QString &action)
Definition: KDSoapMessageAddressingProperties.cpp:75
static QString predefinedAddressToString(KDSoapAddressingPredefinedAddress address, KDSoapAddressingNamespace addressingNamespace=Addressing200508)
Definition: KDSoapMessageAddressingProperties.cpp:213
QString action() const
Definition: KDSoapMessageAddressingProperties.cpp:70
Definition: KDSoapMessage.h:35
void setMessageAddressingProperties(const KDSoapMessageAddressingProperties &map)
Definition: KDSoapMessage.cpp:184
void setUse(Use use)
Definition: KDSoapMessage.cpp:200
KDSoapMessageAddressingProperties messageAddressingProperties() const
Definition: KDSoapMessage.cpp:179
KDSoapUdpClient provides an interface for implementing a SOAP-over-UDP client.
Definition: KDSoapUdpClient.h:77
void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port)
@ LiteralUse
data is serialized according to a given schema, no xsi:type attributes are written out
Definition: KDSoapValue.h:273
void setNamespaceUri(const QString &ns)
Definition: KDSoapValue.cpp:468