Hi everyone,
I created few POST webApi and It was working fine while testing internally. But when I was trying to test the webAPi using SoapUI , It is giving the below error ,
HTTP/1.1 401 UnauthorizedDate: Mon, 21 Aug 2017 06:23:02 GMTServer: ApacheContent-Length: 205Keep-Alive: timeout=20, max=100Connection: Keep-AliveContent-Type: application/json;charset=ISO-8859-1
{"resource":"\/suite\/webapi\/startRuleTestsApplication","error":"APNX-1-4187-003","message":"Incorrect user name or password. Please check your credentials and try again.","title":"An Error Has Occurred"}
Kindly help me out .
Discussion posts and replies are publicly visible
hi guruprakashkmake sure you provide basic authentication details (any one of user credentials ) in SoapUI
have you check Pre-emptive auth radio button as Authentication per emptively in basic authentication details
Hi Someshwar,
Do you want to invoke Appian Web-API using any third party tool such as (SoapUI) or using Appian?
1. While invoking it through Appian Integration Object, you don't need to think about preemptive configuration, you just need to choose authentication as Basic followed by username and password/third party credential detail
2. If you are on a lower environment, and want to use httpQuery() or httpWrite() functions to invoke Appian Web-API, in such case for authentication, you need to make the use of a!httpAuthenticationBasic() as mention below:
a!httpAuthenticationBasic( username: a!scsField(), password: a!scsField(), preemptive: true() )
here you can find preemptive option available.
3. If you want to use any 3rd Party tools such as SOAPUI, you can follow below mention steps to achieve this:
Here first you need to click on Auth(...) option >> Choose the Authentication Type as Basic and hence you can find the preemptive option just below username and password as shown in attached image.
Hope it will help you in every single aspects of invocation of Appian Web-API