Invoking integration server service using basic authentication http
Tags: integration, authentication, http, tutorial
Published: 2021-09-30 13:33:32

---
title: Invoking integration server service using basic authentication http
published: true
date: 2021-01-28 10:05:03 UTC
tags: #integration, #authentication, #http, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/invoking-integration-server-service-using-basic-authentication-http/238345/1
---

## 1. Description

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.

## 2. Actors

- **webMethods Administrators** – who perform Administrative tasks like start / shutdown / restart of servers, deployments, etc.
- **Application Users** – who wants to consume the services
- **webMethods Developer** s – 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:

1. Create associated user group and ACLs
2. Create a HTTP port
3. Invoke the service using a client
4. Test the service

### 4.1 Create **Associated User Group and ACL’s** 

1. Login to the Integration Server and go to Security->ACL’s and click on Add and Remove ACL’s.
![1](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/4/4ed3177ab6bf58caf0b273a71a188a53da7f31fc_2_533x500.jpeg)
2. Provide ACL Name and click Create ACLs. ACL will be created.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/d/da1380bb14a690659b4b771129c61031eee22ac0_2_690x347.png)
3. Now go to Security->User Management and click on Add and Remove Groups.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/9/92989dfd3d1f854b7d54338809d47bebaa0bc279_2_690x345.png)
4. Provide a group name and click on Create Group. It will be created.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/0/0dcc4d49464d72a037e3eb203cf4017280d634ac_2_690x252.png)
5. Now go to Security->User Management and click on Add and Remove Users.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/4/4d90dcf6b599a2cddacf8e78d30846c0fb9076c5_2_690x356.png)
6. Provide a Username and Password and click on Create User. It will be created.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/6/6dafaa959a9527bd5fb226bcd4ed134d89af46d9_2_690x288.png)
7. Now Under User Management select your Group and Click on Arrow towards left button to bring the user into the group.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/8/8bf44ef74a03e47289351003e383294a73a190ae_2_690x266.png)
8. 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.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/2/2e8d9e04d4f0d8a14d8decc8c442ee296a321a2f_2_690x270.png)
9. 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.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/1/18a91c7ed6fe177ccb183ab90cf721cc6c344452_2_690x262.png)
10. Now you can use this ACL to grant Permissions for Integration Server Assets.

### 4.2 Create HTTP Port

1. Launch SoftwareAG Designer and go to **Windows** > **Perspective** > **Open Perspective** > **Other**.
![1](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/a/ae3d1655685e9759f4eb9e5a7fbe48715647548c_2_690x250.png)
2. Select Service Development.
![2](https://aws1.discourse-cdn.com/techcommunity/original/2X/7/716d392156a77a8e629a94d5c265d6e874aa3eba.png)
3. Create a Package and a folder inside the package.
4. Create a Flow Service that takes inputs and provides an output Or use the attached “Accounts” package and import it to Integration Server.
5. Login to Integration Server Administrator and go to **Security** > **Ports**.
6. Click **Add Port.**
![6](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/e/e89c60355098bfbe78b13ee5e3b0c35b78ed8ab5_2_690x285.png)
7. Select **HTTP port** and click **Submit**.
![7](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/1/1cf2b7ad3eab4c580172bb8f160abaa382df1bf6_2_690x463.png)
8. In the Edit HTTP Ports page, select the following values for these fields:
- Enable - Yes
- Port:
- Alias:
- Package Name - Accounts
- Client Authentication - Username/Password
9. Click **Save Changes**.
![9](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/b/b66955a886f462ef153387d769de3e39bcd56d8a_2_690x403.png)
10. In Ports page, click **Deny+** link for the new port.
![10](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/9/9052ed5634217045016bfc87834621239f5823ca_2_690x175.png)
11. Go to Security > Ports > Edit Access Mode, select the new port.
12. Click Add Folders and Services to Allow List.
![12](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/4/4d5922b7c897e3e4aafb55d31d488d0f2f4c29f6_2_690x336.png)
13. Select Accounts ACL and select and append the flow service that you want to invoke.  
Example: Accounts.services: additionOfInt.
14. Click Save additions.
![14](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/f/ff6542a0fc9ee337bd4ba458177c5e12bfb3c0ed_2_690x253.png)
15. Switch to Designer, right click the flow service and select **Properties**.
![15](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/d/debb75131c729b0bbe014984600f39201e8090bc_2_690x369.png)

### 4.3 Invoke the service using pub.client:http and Postman
1. Now select AccountsACL or Default (inherited) in the Execute ACL field. 
2. Select When Top- level service only as the enforcing mechanism.
![2](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/e/e004140730ad53f63056710ddcc1b6c43b5fc4bc_2_690x300.png)
3. To test the service from Designer, select pub.client:http under the WmPublic package.
4. Right click the service and select **Run as** > **Run Service**.
![4](https://aws1.discourse-cdn.com/techcommunity/original/2X/6/6098feea75804d43648670ecb9d1383cc1c776a2.png)
5. In the **Enter Input for ‘http’** screen, enter the following details:
Url: _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
Method: Post
Authentication: Basic
![5](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/f/fc5831e5bf55a6199a13536cd2d23c7fdc9fd911_2_690x370.png)
6. Click **OK** to execute the service.
![6](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/5/52d98c0aa598331b1c3966386713e01a15d1a879_2_690x366.png)

### 4.4 Test service from external client like Postman
1. Launch Postman and create an HTTP Post call. 
2. Provide the HTTP url as:
_http://< Integration Server Host >:< Integration Server Post >/invoke/< ServiceName >_
For example, [http://localhost:5556/invoke/Accounts.services:additionOfInt](http://localhost:5556/invoke/Accounts.services:additionOfInt)
add the input parameter’s it will add the data in the url automatically.
![2](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/f/f613267a754933d5b8bd53f767b8a88ae135b1eb_2_690x208.png)
3. Go to Authorization Section and select Basic as the Authentication Mechanism.
4. Specify the username and password and click Send.  
Service gets executed.
5. Click on the message body to see the response.
![5](https://aws1.discourse-cdn.com/techcommunity/optimized/2X/4/4d9aa75d1ea77528ea4b6db7d68d9970cff250b7_2_690x341.png)
6. References

Refer the Integration Server Administrators Guide for more details.

[Read full topic](https://tech.forums.softwareag.com/t/invoking-integration-server-service-using-basic-authentication-http/238345/1)