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
+1
person also asked this
people also asked this
Replies
7 replies
Subscribers
11 subscribers
Views
7347 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi all, I have created a Web API exposing start process smart service
bhargavie
over 8 years ago
Hi all,
I have created a Web API exposing start process smart service. Trying to start the process model in Appian through SOAP UI passing Process Model Id as parameter ,but Facing Status Code:500- Error Starting the process model.
when I test the Web API from my Appian the process model is getting triggered whereas when I try executing the URL from a browser getting error.
Any help would be appreciated.
Thanks and Regards
OriginalPostID-214309
OriginalPostID-214309
Discussion posts and replies are publicly visible
0
chetany
A Score Level 1
over 8 years ago
Please verify if you are authenticating while calling your Web API from browser. You need to use HTTP Basic Authentication
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 8 years ago
Also, are there any parameters that your process model takes? also since you are starting the process model, it will not be a GET request. It will be a POST request. Just entering the URL in browser will not be the right way to test it. You can use a browser extension like "Postman" to test your web api using the method POST, and also provide basic authentication.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kdimitrov
over 8 years ago
As the above user suggested, you definitely have a Basic Auth problem. I would recommend you switch to something a bit more modern like Postman for testing purposes, it generates Basic Auth user / password really easily.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 8 years ago
@bhargavie, Also please check the section:
https://forum.appian.com/suite/help/16.2/Web_APIs.html#HTTP_Status_Codes
The 500 status code may be related as per the below table.
404\tThere is no Web API with the specified endpoint and HTTP method
404\tThe user is not in the viewer role or higher for the Web API
500\tThere was an error evaluating the Web API's expression
500\tThe result of the expression evaluation was not an HTTP Response object.
Hope this helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 8 years ago
@bhargavie - As @chetany suggested if you use any smart service in web API, then it cannot be executed just using URL with appended parameters to it. Post method must be used to access it. One of the option to test can be using a!httpwrite() function and calling the web API From there.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sonakshid
A Score Level 1
over 6 years ago
in reply to
sagarl511
Hi,
I have a similar use-case, I want to start a process in Appian via an Email sent to a user.
Eg: An Email or attachment is sent to a user from Appian, he will click on it and a process instance has to be initiated in Appian.
I have created a Web API (method: POST) exposing start process smart service.
Added Viewer rights as well for the user.
How shall I configure Authentication in this case?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Robert Shankin
Appian Employee
over 6 years ago
in reply to
sagarl511
An API test tool, such as SoapUI, works nicely to test Appian web API calls.
The product doesn't currently support calling an Appian web api from the browser address bar alone.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel