Create the SOAP Web Service and Web Service Server in BAM
Use BAM entities to add SOAP Web services to your application.
At minimum, a Web Service implementation requires a Web
Service Server entity, at least one Web Service entity, and a relation between
them. The SOAP Web Service Server requires a Namespace, and the SOAP Web Service
requires a Service Name. See Figure 1.
Open the BA Diagram.
Create the Web Service Server entity.
Right-click on the background of the diagram and select New > SOAP Web Service Server.
Set the Namespace property to the common
namespace used for published services.
Important:
The SOAP Web Service Server requires a namespace.
Implement the Web Service Server.
Right-click on the Web Service Server and select Implement SOAP Web Service Server.
Name and save the Web Service Server in your project.
Create the Web Service entity.
Right-click on the background of the diagram,
select New and one of the following:
SOAP Web Service
CRUD Form and SOAP Web Service
Zoom Form and SOAP Web Service
Set the Service Name property.
Important:
The web service will not execute without a service name.
Implement the Web Services.
Right-click on the Web Service and select one of the
Implement ... options.
Note:
The Implement from Database option
provides a wizard to create a managed Web service definition file, allowing you to pick the columns
to use in the operations. In general, it is recommended to use this option. The Web Service or Form
with Web Service can be modified after it is created.
Edit the business record as required. Functionality properties can be
set on each record to specify whether the services operation of add,
update, delete, and/or search should be generated. For further
information, see Business records (data sets).
Name and save the Web Service in your project.
Draw a relation from the Web Service Server to each Web Service or Form with
Web Service entity that are to be connected to the Web Service
Server.
Service publication is done by creating the relations between the server
entity and the form with service or service standalone entities.
What to do next:
Run the Web Service Server to retrieve the .wsdl file (the URL
will be
http://localhost:8090/SOAP_web_service?WSDL).
You can now create the
SOAP Web Services client.