version 1.6, 2002/02/26 23:48:33
|
version 1.7, 2002/02/28 23:06:41
|
|
|
} | } |
} | } |
| |
void CIMExportRequestDecoder::sendError( |
void CIMExportRequestDecoder::sendEMethodError( |
Uint32 queueId, | Uint32 queueId, |
const String& messageId, | const String& messageId, |
const String& cimMethodName, | const String& cimMethodName, |
|
|
{ | { |
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); |
} | } |
| |
| |
|
|
description.append("Request cannot be processed: "); | description.append("Request cannot be processed: "); |
description += cimMethodName; | description += cimMethodName; |
| |
sendError( |
sendEMethodError( |
queueId, | queueId, |
messageId, | messageId, |
cimMethodName, | cimMethodName, |
|
|
String description = "Unknown intrinsic method: "; | String description = "Unknown intrinsic method: "; |
description += cimMethodName; | description += cimMethodName; |
| |
sendError( |
sendEMethodError( |
queueId, | queueId, |
messageId, | messageId, |
cimMethodName, | cimMethodName, |
|
|
} | } |
catch (Exception& e) | catch (Exception& e) |
{ | { |
sendError( |
sendEMethodError( |
queueId, | queueId, |
messageId, | messageId, |
cimMethodName, | cimMethodName, |