SOAP Web Service Server entity

The Web Service Server entity contains the main logic to publish services. It listens for incoming requests and executes the relevant service operation.

For a entity, the Type property states "WebServiceServer". The XML representation of a SOAP Web Service Server entity is a .4wsprg file.

When a Web Service Server entity is implemented from the diagram, a .4gl source file is generated which contains the MAIN function for the application. This .4gl file is also used to combine the other generated .4gl files into a Genero application.

Any changes to the BA diagram are included in the subsequent re-generating of the program code.

The generated code can be customized.

Properties

All properties of a Web Service group of a Record node have a sense for SOAP Web Service only.

All properties of Web Service group of RecordField node except 'public' have a sense for SOAP Web Service only.

The 'public' property on the RecordField node is used by SOAP and JSON web services.

Table 1. Entity Properties
Property Description
Name Name of entity.
Type Type of entity ( (WebServiceServer)
File Name Full path to file.
Description Optional description.
Namespace Common namespace used for the published services.
Important: The SOAP web server requires a namespace.

Context Menu

Right-click a Web Service Server entity in the diagram to display a context menu of options. The options displayed depend on the type of Web Service Server and whether it has been implemented.

For a SOAP Web Service Server that has not been implemented:

  • Implement SOAP Web Service Server
  • Convert to

For a SOAP Web Service Server that has been implemented:

  • Execute Program / Build Program
  • Convert to
  • Locate in Project
Table 2. Context Menu Options
Menu Option Description
Implement SOAP Web Service Server Creates the SOAP Web Service Server file (.4wsprg). The .4wsprg generates the logic for the MAIN function. Until you create the SOAP Web Service Server file, the Web Service Server entity on the diagram is simply an icon.
Execute Program / Build Program Builds and/or executes the source code for the Web Service Server based on the related entities in the diagram.
Convert to Converts entity from one type to another.
Locate in Project Locates and highlights the selected item in the project.