(file) Return to WSMANExportRequestEncoder.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ExportClient

Diff for /pegasus/src/Pegasus/ExportClient/WSMANExportRequestEncoder.cpp between version 1.2 and 1.3

version 1.2, 2013/04/25 13:00:23 version 1.3, 2013/06/13 13:19:53
Line 93 
Line 93 
     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(
Line 156 
Line 164 
  
 } }
  
   void WSMANExportRequestEncoder ::setDeliveryMode(deliveryMode &deliveryMode)
   {
       _deliveryMode = deliveryMode;
   }
   
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2