To test a webApi using Soap UI

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 Unauthorized
Date: Mon, 21 Aug 2017 06:23:02 GMT
Server: Apache
Content-Length: 205
Keep-Alive: timeout=20, max=100
Connection: Keep-Alive
Content-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

Parents Reply Children
  • Hi Guruprakash,

    I have the same problem.
    Please help me, where to find "Pre-emptive auth" radio button.
    I have checked in suite/admin, I did not find it..
    Kindly help me

    Thanks and Regards,
    Someshwar
  • 0
    Certified Lead Developer
    in reply to someshwarp

    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