Add Web services (Server, Services, Forms with services) |
Web services are a standard way of communicating between applications over an intranet or Internet. They define how to communicate between two entities: a server that exposes services and a client that consumes services.
A Webservice entity generates a web service with its CRUD operations, but with no accessible form. CRUD operations are used to Create, Read, Update, and Delete data from a database. It includes one global read operation that reads all records in once and one global create operation that creates all records at once.
A standalone Webservice entity is represented as a 4ws file which can be opened and edited in the Form Designer Records tab. When a Webservice entity is implemented from the diagram, the 4ws file is created as well as 4gl source files containing the program logic to create and set up a web service and its CRUD operations. Any changes to the Webservice entity properties in the BA diagram or in the 4ws file are included in the subsequent re-generating of the program code. The generated code can be customized.
See the topic Introduction to Web Services in the Genero Business Development Language User Guide for more information on Web Services concepts.
Select the Webservice entity in the Business Application diagram to view and set the entity properties.
Group | Property | Description |
---|---|---|
Object | Name | Name of entity. |
Type | Type of entity:
|
|
File Name | Full path to file. | |
Description | Description of web service. | |
Web Service | Service Name | Unique publishable service name. |
Comment | Service comment that will appear in the wsdl file. |
Right-click a Webservice entity in the diagram to display a context menu of options.
Menu Option | Description |
---|---|
Implement Web Service | Creates a new blank managed web service definition file (4ws) to design
from scratch. Note: Once created, this menu option disappears; use Open for any future
modifications.
|
Implement Web Service from Database | Provides a wizard to create a managed web service definition file (4ws),
allowing you to pick the columns to use in the CRUD operations. This option is generally preferred.
The web service can be modified after it is created. Note: Once created, this menu option
disappears; use Open for any future modifications.
|
Open | Open the Business Record for the selected Webservice entity. |
Convert to | Converts entity from one type to another. |
Locate in Project | Locates and highlights the selected item in the project. |
Once the Web service definition file (.4ws) exists, right-click the Webservice entity and select to view the Business Record diagram.