version 1.2, 2013/04/25 13:00:23
|
version 1.3, 2013/06/13 13:19:53
|
|
|
WsExportIndicationRequest* message, Buffer &out) | WsExportIndicationRequest* message, Buffer &out) |
{ | { |
String action = WSM_ACTION_WSMAN_EVENT; | String action = WSM_ACTION_WSMAN_EVENT; |
/* This should be added when SendwithAck will be supported. */ |
String hostname = System::getFullyQualifiedHostName(); |
/* DSP0266_1.1 : This element shall be present if a reply is expected. |
String replyTo = "http://"+hostname+":5988"; |
If the wsa:ReplyTo header is absent, the contents of the wsa:From |
|
header may be used to formulate a message to the source. This |
|
header may be absent if the message has no meaningful reply. |
|
*/ |
|
//String replyTo = "http://"+gethostbyaddr()+":5988" ; |
|
|
|
WsmWriter::appendSoapEnvelopeStart(out,message->contentLanguages); | WsmWriter::appendSoapEnvelopeStart(out,message->contentLanguages); |
| |
WsmWriter::appendSoapHeaderStart(out); | WsmWriter::appendSoapHeaderStart(out); |
|
if(_deliveryMode == Push) |
|
{ |
WsmWriter::appendSoapHeader( | WsmWriter::appendSoapHeader( |
out, | out, |
action, | action, |
message->messageId, | message->messageId, |
"", | "", |
message->destination); | message->destination); |
|
} |
|
else if(_deliveryMode == PushWithAck) |
|
{ |
|
WsmWriter::appendSoapHeader( |
|
out, |
|
action, |
|
message->messageId, |
|
"", |
|
message->destination, |
|
replyTo, |
|
true); |
|
} |
WsmWriter::appendSoapHeaderEnd(out); | WsmWriter::appendSoapHeaderEnd(out); |
WsmWriter::appendSoapBodyStart(out); | WsmWriter::appendSoapBodyStart(out); |
WsmWriter::appendInstanceElement( | WsmWriter::appendInstanceElement( |
|
|
| |
} | } |
| |
|
void WSMANExportRequestEncoder ::setDeliveryMode(deliveryMode &deliveryMode) |
|
{ |
|
_deliveryMode = deliveryMode; |
|
} |
|
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |