Open up a command prompt, navigate to your portlet's root folder and type the following command.
ant build-service
The service layer has been generated successfully when you see BUILD SUCCESSFUL message.