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

Diff for /pegasus/src/Pegasus/ExportServer/CIMExportRequestDecoder.cpp between version 1.6 and 1.7

version 1.6, 2002/02/26 23:48:33 version 1.7, 2002/02/28 23:06:41
Line 74 
Line 74 
    }    }
 } }
  
 void CIMExportRequestDecoder::sendError(  void CIMExportRequestDecoder::sendEMethodError(
    Uint32 queueId,    Uint32 queueId,
    const String& messageId,    const String& messageId,
    const String& cimMethodName,    const String& cimMethodName,
Line 83 
Line 83 
 { {
    ArrayDestroyer<char> tmp1(cimMethodName.allocateCString());    ArrayDestroyer<char> tmp1(cimMethodName.allocateCString());
    ArrayDestroyer<char> tmp2(description.allocateCString());    ArrayDestroyer<char> tmp2(description.allocateCString());
       Array<Sint8> message;
       Array<Sint8> tmp;
  
    Array<Sint8> message = XmlWriter::formatEMethodResponseHeader(      XmlWriter::appendMessageElementBegin(message, messageId);
       XmlWriter::formatMessageElement(      XmlWriter::appendSimpleExportRspElementBegin(message);
          messageId,      XmlWriter::appendEMethodResponseElementBegin(message, tmp1.getPointer());
          XmlWriter::formatSimpleExportRspElement(      XmlWriter::appendErrorElement(message, code, tmp2.getPointer());
             XmlWriter::formatEMethodResponseElement(      XmlWriter::appendEMethodResponseElementEnd(message);
                tmp1.getPointer(),      XmlWriter::appendSimpleExportRspElementEnd(message);
                XmlWriter::formatErrorElement(code, tmp2.getPointer())))));      XmlWriter::appendMessageElementEnd(message);
   
    sendResponse(queueId, message);      XmlWriter::appendEMethodResponseHeader(tmp, message.size());
       tmp << message;
       sendResponse(queueId, tmp);
 } }
  
  
Line 333 
Line 337 
             description.append("Request cannot be processed: ");             description.append("Request cannot be processed: ");
             description += cimMethodName;             description += cimMethodName;
  
             sendError(              sendEMethodError(
                queueId,                queueId,
                messageId,                messageId,
                cimMethodName,                cimMethodName,
Line 352 
Line 356 
          String description = "Unknown intrinsic method: ";          String description = "Unknown intrinsic method: ";
          description += cimMethodName;          description += cimMethodName;
  
          sendError(           sendEMethodError(
             queueId,             queueId,
             messageId,             messageId,
             cimMethodName,             cimMethodName,
Line 380 
Line 384 
    }    }
    catch (Exception& e)    catch (Exception& e)
    {    {
       sendError(        sendEMethodError(
          queueId,          queueId,
          messageId,          messageId,
          cimMethodName,          cimMethodName,


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2