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 or WebServiceServerJSON)
File Name Full path to file.
Description Optional description.
Namespace (SOAP Web Service Servers only) Common namespace used for the published services.

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 JSON Web Service Server that has not been implemented:

  • Implement JSON Web Service Server
  • Convert to

For a SOAP and JSON Web Service Server that have 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.
Implement JSON Web Service Server Creates the JSON Web Service Server file (.4wsjprg). The .4wsjprg generates the logic for the MAIN function. Until you create the JSON 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.