Soe-rest development 2 in Java environment (template wizard)

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.