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

Diff for /pegasus/src/Pegasus/WsmServer/WsmResponseEncoder.cpp between version 1.10 and 1.11

version 1.10, 2009/08/05 15:04:30 version 1.11, 2009/11/30 16:49:50
Line 127 
Line 127 
         response->getQueueId(),         response->getQueueId(),
         response->getHttpMethod(),         response->getHttpMethod(),
         response->getHttpCloseConnect(),         response->getHttpCloseConnect(),
           response->getOmitXMLProcessingInstruction(),
         fault);         fault);
  
     SoapResponse soapResponse(&faultResponse);     SoapResponse soapResponse(&faultResponse);
Line 147 
Line 148 
         response->getQueueId(),         response->getQueueId(),
         response->getHttpMethod(),         response->getHttpMethod(),
         response->getHttpCloseConnect(),         response->getHttpCloseConnect(),
           response->getOmitXMLProcessingInstruction(),
         fault);         fault);
  
     return new SoapResponse(&faultResponse);     return new SoapResponse(&faultResponse);
Line 194 
Line 196 
                 _encodeSoapFaultResponse((SoapFaultResponse*) response);                 _encodeSoapFaultResponse((SoapFaultResponse*) response);
                 break;                 break;
  
               case WS_INVOKE:
                   _encodeWsInvokeResponse((WsInvokeResponse*)response);
                   break;
   
             case WS_ENUMERATION_ENUMERATE:             case WS_ENUMERATION_ENUMERATE:
             case WS_ENUMERATION_PULL:             case WS_ENUMERATION_PULL:
                 // These cases are handled specially to allow for the message                 // These cases are handled specially to allow for the message
Line 229 
Line 235 
 { {
     SoapResponse soapResponse(response);     SoapResponse soapResponse(response);
     Buffer body;     Buffer body;
     WsmWriter::appendInstanceElement(body, response->getInstance());      WsmWriter::appendInstanceElement(body, response->getResourceUri(),
           response->getInstance(), PEGASUS_INSTANCE_NS, false);
     if (soapResponse.appendBodyContent(body))     if (soapResponse.appendBodyContent(body))
     {     {
         _sendResponse(&soapResponse);         _sendResponse(&soapResponse);
Line 335 
Line 342 
             response->getEnumerationContext(),             response->getEnumerationContext(),
             response->isComplete(),             response->isComplete(),
             response->getEnumerationData(),             response->getEnumerationData(),
             numDataItemsEncoded))              numDataItemsEncoded,
               response->getResourceUri()))
     {     {
         soapResponse.reset(_buildEncodingLimitFault(response));         soapResponse.reset(_buildEncodingLimitFault(response));
     }     }
Line 357 
Line 365 
             response->getEnumerationContext(),             response->getEnumerationContext(),
             response->isComplete(),             response->isComplete(),
             response->getEnumerationData(),             response->getEnumerationData(),
             numDataItemsEncoded))              numDataItemsEncoded,
               response->getResourceUri()))
     {     {
         soapResponse.reset(_buildEncodingLimitFault(response));         soapResponse.reset(_buildEncodingLimitFault(response));
     }     }
Line 372 
Line 381 
     Uint64 contextId,     Uint64 contextId,
     Boolean isComplete,     Boolean isComplete,
     WsenEnumerationData& data,     WsenEnumerationData& data,
     Uint32& numDataItemsEncoded)      Uint32& numDataItemsEncoded,
       const String& resourceUri)
 { {
     Buffer bodyHeader, bodyTrailer;     Buffer bodyHeader, bodyTrailer;
  
Line 444 
Line 454 
     }     }
  
     // Now add the list of items     // Now add the list of items
     Uint32 i;      Uint32 i = 0;
  
     if (data.enumerationMode == WSEN_EM_OBJECT)     if (data.enumerationMode == WSEN_EM_OBJECT)
     {     {
Line 462 
Line 472 
                         data.classUri).getString());                         data.classUri).getString());
             }             }
  
             WsmWriter::appendInstanceElement(body, data.instances[i]);              WsmWriter::appendInstanceElement(body, resourceUri,
                   data.instances[i], PEGASUS_INSTANCE_NS, false);
   
             if (!soapResponse.appendBodyContent(body))             if (!soapResponse.appendBodyContent(body))
             {             {
                 break;                 break;
Line 511 
Line 523 
                         data.classUri).getString());                         data.classUri).getString());
             }             }
  
             WsmWriter::appendInstanceElement(body, data.instances[i]);              WsmWriter::appendInstanceElement(body, resourceUri,
                   data.instances[i], PEGASUS_INSTANCE_NS, false);
  
             WsmWriter::appendStartTag(             WsmWriter::appendStartTag(
                 body,                 body,
Line 615 
Line 628 
     _sendResponse(&soapResponse);     _sendResponse(&soapResponse);
 } }
  
   void WsmResponseEncoder::_encodeWsInvokeResponse(
       WsInvokeResponse* response)
   {
       SoapResponse* soapResponse = new SoapResponse(response);
   
       Buffer body;
       WsmWriter::appendInvokeOutputElement(
           body,
           response->resourceUri,
           response->className,
           response->methodName,
           response->instance,
           PEGASUS_INVOKE_NS);
   
       if (soapResponse->appendBodyContent(body))
       {
           _sendResponse(soapResponse);
       }
       else
       {
           delete soapResponse;
           _sendUnreportableSuccess(response);
       }
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2