using the Eclipse IDE Wizard to develop the rest SOE mode automatically inherits iserverobjectextension and irestrequesthandler interfaces, . iserverobjectextension provided by the interface Init () and Shutdown () two methods are called.
irestrequesthandler available HTTP request processing method, this is mentioned in Article . For more information, see the previous article. The following describes how to use the Wizard to create SOE development template and deployment file.
1)Use the new project in the "file" menu, select "others", and then you can seeAOProvided template. For example
Select the Server Object extention Template under the server folder and click Next.
2) The first interface for creating SOE extension classes is displayed in front of us, including the source code location, class package name, extension class name, soe display name, and description. The specific parameter descriptions have been described in detail in the previous article.
3) after the next step, select the extended rest interface method or the soap method. Select the rest method. The following page is displayed.
Here you can select the resources you need to obtain and the operations under the resources. For resource operations, you need to set the operation method name. The input parameters and the format of the selected input parameters must be returned in JSON or other ways, as shown in
Resource Operations can choose whether to use only the POST method for resource requests. This flag indicates whether to use only the POST method for HTTP requests. If no parameter is input, click Finish to end template creation.
4) Next, go to the SOE attribute settings page.
The entire template creation process is complete.
6) Right-click the project and export the *. SOE deployment package to deploy the developed extension.