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
9 replies
Subscribers
7 subscribers
Views
7015 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
HTTP Query smart service
maheshp460
Certified Associate Developer
over 8 years ago
Hello Folks,
I am planing on using the HTTP Query smart service to consume REST API on an external system. Here are my questions
1. Does this smart service allow to make HTTPS calls?
2. If so, is there some configuration that needs to be done in Appian?
3. I need to make POST and DELETE calls. From documentation, appears this can be done.
4. How does authorization work? Can I use in the header like this: name: Authorization, value: "Bearer sxyslesmsdyyxxx"
Thanks in advance and Happy New Year.
OriginalPostID-256213
Discussion posts and replies are publicly visible
0
Sathya Srinivasan
Appian Employee
over 8 years ago
You should be able to call HTTPS. Make sure the Certificate is either in Appian admin/certificate repo or in the JVM keystore. You should be able to pass Header Keys and Header Values as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
maheshp460
Certified Associate Developer
over 8 years ago
Thanks Sathya. If the API server is within the firewall, need to use certificates?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Andrew P Gramann
Certified Lead Developer
over 8 years ago
HTTPS uses at least 1 certificate by definition, but you MAY not have to do anything to get it to work. In other words, it might all be handled behind the scenes:
* If the API Server uses a server certificate which was issued by a publicly trusted certificate authority, then you should not have to do anything.
* If the certificate was issues by an internal certificate authority, then you will probably have to import the root CA's public key into the JVM keystore.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
maheshp460
Certified Associate Developer
over 8 years ago
Thanks Andrew.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
maheshp460
Certified Associate Developer
over 8 years ago
I tried using the Httpquery Smart Service but running into issues as below:
Message: HTTP/1.1 401 Unauthorized, Details: No details available
For the request url:
EndPoint/getinfo
What am I missing? Where I can get more details.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandolum
A Score Level 1
over 8 years ago
@Maheshp, You need to configure authentication by using. a!httpAuthenticationBasic() function if you want to use this function you need to configure your service credentials in Administration console page under Third party credentials section. please find more details in the following link.
https://forum.appian.com/suite/help/16.3/Connector_Functions.html#a-httpauthenticationbasic
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
maheshp460
Certified Associate Developer
over 8 years ago
For the same service resource, I am able use GET method by using a!httpQuery() in an expression, by passing in the header Authorization: "Bearer SomeTokenValue". Does Httpquery have a different authorization scheme?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 8 years ago
Hi Mahesh, please swap the Params and values and try once. It looks from the source code they are mapped in reverse.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
gayatriv55
over 7 years ago
in reply to
maheshp460
Httpquery supports the same pattern of authorization. there may be some wrong coding from your end because same pattern is working for me.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel