Generate the stub file
Use the fglrestful tool to generate the client stub from a REST Web service URL.
The generated stub file contains the complete code to manage calls made by client apps to the Web service resources. You must import the stub file into the client app.
The "MyService" GWS REST service must be running on the specified port in order to provide the service information.