lib/isbm_adaptor/consumer_publication.rb
def read_publication(session_id)
      validate_presence_of session_id, 'Session Id'

      response = @client.call(:read_publication, message: { 'SessionID' => session_id })

      extract_message(response)
    end
def read_publication(session_id)
      validate_presence_of session_id, 'Session Id'

      response = @client.call(:read_publication, message: { 'SessionID' => session_id })

      extract_message(response)
    end
Reads the first message, if any, in the session queue.

 @param session_id [String] the session id
 @return [Message] first message in session queue. nil if no message.
 @raise [ArgumentError] if session_id is blank