Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
9 subscribers
Views
8147 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
calling a web service with API keys
garym
over 8 years ago
Hi,
In the past we have used the "Call Web Service" smart service to call a web service and passed a username and password to authenticate.
A vendor that we are working with has web services that we would need to call but they said they use an "API key" to make the API calls.
Can we pass an "API key" using the smart service in Appian?
OriginalPostID-233747
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 8 years ago
If you were using "Call Web Service" smart service - it implies that you were consuming a SOAP based Web Service - and were authenticating using username/password as you mentioned.
If the new vendor has a "API Key" to authenticate, it means the authentication mechanism is different. Can you let us know if it is SOAP or REST based web-service that you are going to consume?
As far as I know, in RESTful webservices, the API is generally passed as a query parameter or as a header. Most of the webservices use a query parameter for the API key.
So, it depends on - whether your webservice is SOAP or REST based, and whether the API key needs to be passed in the Query parameters or in the Headers. You will need to ask the vendor who is providing the web services for more details.
If it is a REST based webservice, you can consider using the "HTTP Query" smart service or the a!httpQuery() function on SAIL forms.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 8 years ago
If you were using "Call Web Service" smart service - it implies that you were consuming a SOAP based Web Service - and were authenticating using username/password as you mentioned.
If the new vendor has a "API Key" to authenticate, it means the authentication mechanism is different. Can you let us know if it is SOAP or REST based web-service that you are going to consume?
As far as I know, in RESTful webservices, the API is generally passed as a query parameter or as a header. Most of the webservices use a query parameter for the API key.
So, it depends on - whether your webservice is SOAP or REST based, and whether the API key needs to be passed in the Query parameters or in the Headers. You will need to ask the vendor who is providing the web services for more details.
If it is a REST based webservice, you can consider using the "HTTP Query" smart service or the a!httpQuery() function on SAIL forms.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data