XForms Designer-----Web Service

Source: Internet
Author: User
Tags button type

Gforms provides support for Web services and can import a Web service to gforms very quickly.

New WebService

Locate Web service at the bottom of the Control Panel, drag the icon to the designer on the right, and start the New Web Service wizard process:

First step: Specify the Web Service Path

WSDL files that use local WSDL files or remote servers are supported.

Step Two: Select Web service Services, ports, operations

You can add only one Web service operation to Gforms at a time, and you need to perform multiple new Web service wizards if you want to add more operations.

Step Three: Configure whether to create a Web service UI , whether the web is invoked when it is loaded Service

If you need to automatically build a UI interface for your Web service, tick "Automatically build form UI elements" and tick "invoke Web service when loading" if you need to invoke Web services when the form is loaded.

When the "Finish" button is clicked, the wizard process ends and the Web Services view will open automatically:

In the view you can see the Web service operation information that you just built, and the Web service view is described in the next section.

In the model view, you can also see the Web service-related models, model instances, and commits that you created:

Note: Developers cannot delete Web service-related components such as models, model instances, and submit components in the model tree, but can add new components such as actions, bindings, commits, and so on in new additions.

WebService View

The Web service in Gforms is specifically managed in the Web services view.

1. WebService Tree structure

First Layer element : Web service name.

Second layer element : the operation of the Web service.

third-tier elements : request, response instance, and commit for Web services

layer fourth elements and the following elements : Model instance results for a request or response.

2.Delete WebService and Operation

The Web Service node machine Web Service operation node Right-click menu can perform a delete Web service and Web service operation.

3.View XML

The XML structure can be viewed in the model instance element node of the Web service.

Create UI

In addition to the first layer of Web service tree nodes that can be dragged to the designer build UI from the Web service tree, nodes in other tiers can:

1. Drag the WebService Operations

The built UI, as shown, will contain the request model instance, the commit, and the response model instance.

When the user clicks the Submit button at run time, the remote Web service is called and a response message is populated into the response UI.

2. Drag the WebService Request, Response

The UI is built as shown in.

3.dragging instance data nodes

As with dragging data nodes in the model instance tree, refer to the model instance-Create UI section.

4.drag and drop submit

Commit action, a submit button will be built, button configured:

You can see that the button type is submit and that the action submitted as a Web service is configured.

Product Contact Information

Www.ghpaas.com

Tel: 13601178468

Email: [email protected]

Product Information: Baidu Network disk Http://yun.baidu.com/s/1bnznec3#dir/path=%2Fghorse

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.