|
@@ -33,7 +33,7 @@ Int32 convertToDiagnosticInfo(char* buf, Int32 *pos, T_DiagnosticInfo* dstDiagno
|
|
|
dstDiagnosticInfo->symbolicId = convertToInt32(buf, pos);
|
|
|
dstDiagnosticInfo->locale = convertToInt32(buf, pos);
|
|
|
dstDiagnosticInfo->localizesText = convertToInt32(buf, pos);
|
|
|
- dstDiagnosticInfo->additionalInfo = convertToUAString(buf, pos);
|
|
|
+ convertToUAString(buf, pos,dstDiagnosticInfo->additionalInfo.Data);
|
|
|
dstDiagnosticInfo->innerStatusCode = convertToUAStatusCode(buf, pos);
|
|
|
|
|
|
//If the Flag InnerDiagnosticInfo is set, then the DiagnosticInfo will be encoded
|
|
@@ -65,6 +65,7 @@ Int32 decodeRequestHeader(const AD_RawMessage *srcRaw, Int32 *pos,
|
|
|
convertToUAString(srcRaw->message, pos, &dstRequestHeader->auditEntryId);
|
|
|
dstRequestHeader->timeoutHint = convertToUInt32(srcRaw->message, pos);
|
|
|
|
|
|
+
|
|
|
// AdditionalHeader will stay empty, need to be changed if there is relevant information
|
|
|
|
|
|
return 0;
|
|
@@ -76,15 +77,15 @@ Int32 decodeRequestHeader(const AD_RawMessage *srcRaw, Int32 *pos,
|
|
|
* Chapter: 7.27
|
|
|
* Page: 133
|
|
|
*/
|
|
|
-/** \copydoc decodeResponseHeader */
|
|
|
-Int32 decodeResponseHeader(const T_ResponseHeader *responseHeader, Int32 *pos, AD_RawMessage *buf)
|
|
|
+/** \copydoc encodeResponseHeader */
|
|
|
+Int32 encodeResponseHeader(const T_ResponseHeader *responseHeader, Int32 *pos, AD_RawMessage *dstBuf)
|
|
|
{
|
|
|
- responseHeader->timestamp = convertToUADateTime(buf->message, pos);
|
|
|
- responseHeader->requestHandle = convertToTIntegerId(buf->message, pos);
|
|
|
- responseHeader->serviceResult = convertToUAStatusCode(buf->message,
|
|
|
+ responseHeader->timestamp = convertToUADateTime(dstBuf->message, pos);
|
|
|
+ responseHeader->requestHandle = convertToIntegerId(dstBuf->message, pos);
|
|
|
+ responseHeader->serviceResult = convertToUAStatusCode(dstBuf->message,
|
|
|
pos);
|
|
|
|
|
|
- responseHeader->serviceDiagnostics = convertToTDiagnosticInfo(buf->message,
|
|
|
+ responseHeader->serviceDiagnostics = convertToDiagnosticInfo(dstBuf->message,
|
|
|
pos);
|
|
|
return 0;
|
|
|
}
|