Set Forms Configuration on web service playback Follow
When you create a web service, there are a few configuration variables that are hidden.
They are placed inside the 'orp' file.
For example: userid, module, config, etc.
It is possible to change those properties, and make them configurable.
In order to do so, you have to do the following:
1- Go to Admin->System Management->System Properties
2- Edit the following properties:
//renaming of the field name to a custom name
append.keys = userid
//fields as they appear in the 'orp' file
append.fields = userid
3- Update the properties file.
From now on you made the 'userid' property adjustable, and you can change it when you call the web service.
When you call the web service add the following parameter to the query string/json request:
userid=<user/pswd@db>
For example:
http://<host>:<port>/ServiceManager/Macro/ExecMacro/getCustomerDetails?username=A&password=b&customerId=200&userid=<user/pswd@db>
or:
POST http://<host>:<port>/ServiceManager/Macro/ExecMacro/getCustomerDetails
{
"username":"A",
"password":"b",
"customerId":"200",
"userid":"<user/pswd@db>"
}
Comments
0 comments
Please sign in to leave a comment.