In this article, we are going to create user, Group, Custom ACL, HTTP port and invoke a Flow Service from Designer and External client, wherein Integration Server uses Basic Authentication mechanism.
- webMethods Administrators – who perform Administrative tasks like start / shutdown / restart of servers, deployments, etc.
- Application Users – who wants to consume the services
- webMethods Developers – who perform development tasks like creation of services etc.
3. Before you begin
Ensure that Integration Server is up and running.
4. Invoking Integration Server Service using Basic Authentication
Invoking Integration Server service using basic authentication for clients or application user involves the following steps:
- Create associated user group and ACLs
- Create a HTTP port
- Invoke the service using a client
- Test the service
4.1 Create **Associated User Group and ACL’s**
- Login to the Integration Server and go to Security->ACL’s and click on Add and Remove ACL’s.
- Provide ACL Name and click Create ACLs. ACL will be created.
- Now go to Security->User Management and click on Add and Remove Groups.
- Provide a group name and click on Create Group. It will be created.
- Now go to Security->User Management and click on Add and Remove Users.
- Provide a Username and Password and click on Create User. It will be created.
- Now Under User Management select your Group and Click on Arrow towards left button to bring the user into the group.
- Note User will be added to the Group, also select the user from the list. You will notice that User belongs to the group. Click on Save Changes.
- Now go to Security->ACL’s, select your ACL, click on Add under Add Group and select your group. After adding group, associated users with ACL will also appear. Click on Save changes.
ACL will be updated.
- Now you can use this ACL to grant Permissions for Integration Server Assets.
4.2 Create HTTP Port1. Launch SoftwareAG Designer and go to **Windows** > **Perspective** > **Open Perspective** > **Other** .
- Select Service Development.
- Create a Package and a folder inside the package.
- Create a Flow Service that takes inputs and provides an output Or use the attached “Accounts” package and import it to Integration Server.
- Login to Integration Server Administrator and go to Security > Ports .
- Click Add Port.
- Select HTTP port and click Submit .
- In the Edit HTTP Ports page, select the following values for these fields:
- Enable - Yes
- Package Name - Accounts
- Client Authentication - Username/Password
- Click Save Changes .
- In Ports page, click Deny+ link for the new port.
- Go to Security > Ports > Edit Access Mode, select the new port.
- Click Add Folders and Services to Allow List.
- Select Accounts ACL and select and append the flow service that you want to invoke.
Example: Accounts.services: additionOfInt.
- Click Save additions.
- Switch to Designer, right click the flow service and select Properties .
4.3 Invoke the service using pub.client:http and Postman1. Now select AccountsACL or Default (inherited) in the Execute ACL field. 2. Select When Top- level service only as the enforcing mechanism.
- To test the service from Designer, select pub.client:http under the WmPublic package.
- Right click the service and select Run as > Run Service .
- In the Enter Input for ‘http’ screen, enter the following details:
http://< Integration Server Host >:< Integration Server Port >/invoke/< ServiceName >?< Input Parametr1 >=1&< Input Parametr2 >=2.
For example: http://localhost:5556/invoke/Accounts.services:additionOfInt?num1=1&num2=2
Note: If you do not provide input data in url, then specify the same under data->args
- Click OK to execute the service.
4.4 Test service from external client like Postman1. Launch Postman and create an HTTP Post call. 2. Provide the HTTP url as:
http://< Integration Server Host >:< Integration Server Post >/invoke/< ServiceName >
add the input parameter’s it will add the data in the url automatically.
- Go to Authorization Section and select Basic as the Authentication Mechanism.
- Specify the username and password and click Send.
Service gets executed.
- Click on the message body to see the response.
Refer the Integration Server Administrators Guide for more details.