Monday, 27 February 2023

Test FND_USER_PKG Rest API using any REST client like Postman

 Hi All,


In this post we will learn how to test FND_USER_PKG Rest API using any REST client like Postman In EBS R12.2


Steps to test FND_USER_PKG from REST client:

Get the WADL URL from View WADL link of the deployed REST web service. Below WADL URL format is from View WADL link resource base and resource path of the method to be tested 

http(s)://<hostname>:<port>/webservices/rest/<aliasname>/testusername/

Replace the URL with hostname, port and alias name from the deploed web service in the EBS Integration repository

Test the FND_USER_PKG rest service using RESTClient as follows:

1. Open RestClient

2. Enter the following parameters:

Method = POST

URL = http(s)://<hostname>:<port>/webservices/rest/<aliasname>/testusername

<hostname>:<port> EBS application hostname and port

<aliasname> is the alias that you entered when you generated the service

testusername is the method that you want to test from FND_USER_PKG service

** FND_USER_PKG should be already deployed as a REST web service in Integration Repository

3. Enter the following Headers:

Basic Authentication:

Username = SYSADMIN or ASADMIN or any username depending on your configuration

Password = pwd of the login user

 

Request Header:

Name = Content-Type

Value = application/json

 

Under Body tab, provide the input payload as below:

Input payload for JSON-based REST Message

---------------------------------------------------

{"TESTUSERNAME_Input":{

"RESTHeader":{

"Responsibility":"SYSTEM_ADMINISTRATOR",

"RespApplication":"SYSADMIN",

"SecurityGroup":"STANDARD",

"NLSLanguage":"AMERICAN"

},

"InputParameters":{

"X_USER_NAME":"SYSADMIN"

}

}}

 

4. Click on SEND button and your response if successful will be as below with status: 200 OK

Response for JSON-based REST Message

--------------------------------------------------

{

"OutputParameters": {

"@xmlns": "http://xmlns.oracle.com/apps/fnd/rest/testRest/testusername/",

"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

"TESTUSERNAME": "2"

}

}


Thanks,

Srini

No comments:

Post a Comment


No one has ever become poor by giving