Where to find session ID and transaction ID

The session ID and transaction ID will be included in the header of the request, however, different requests contain different header information.

For requests such as CreateSession (there is no session ID or transaction ID in the header):

{ 
   "header" : ["<version>","<requestid>",<type>,"<appname>","<namespace>"],
   ……
}

For requests such as Connect, Retrieve, Select, Commit, Rollback, Disconnect (both session ID and transaction ID are in the header):

{ 
   "header" : ["<version>",<type>,"<appname>","<namespace>","<session>","<transactionid>", "<transactionname>"],
   ……
}

For requests such as DestroySession (there is only session ID in the header):

{ 
   "header" : ["<version>",<type>,"<appname>","<namespace>","<session>"],
   ……
}