Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKMIPRequest::endRequestMsg ( void  )
pure virtual

Finish the encoding of a KMIP request message.

A successful startRequestMessage and at least one of the add calls must be called first. This function generates the KIMP message bytes that need to be sent to a KIMP server to perform a Create operation. After a successful call to this function the caller should call getBufPtr to get a pointer to the buffer containing the message.

Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eTooSmallThe configured buffer size in pPool is too small to hold the generated message.
P6R::eInvalidStateA successful call to startRequestMsg() must be made before calling this function.
P6R::eFormatErrorOne or more calls to an addXXXRequest function (e.g., addCreateRequest) must be made before calling this function.