The SharedService is part of another Thrift IDL file, which is included into the tutorial.thrift IDL file. Tbus, you have to generate the code for the Shared service as well. The easiest way is to call the Thrift compiler with the -r
option ("recursive") which will generate code for the passed IDL file and all included dependencies.
The tutorial pages are indeed misleading here. If you want to file a JIRA ticket, please do.