
Michael Black
I'm trying to get a trigger to work with SoupUI. I've tried authenticating with my own user (admin) as well as the web service user (full rights) that I created. In the SoapUI gui I've tried leaving the domain field blank or filling it in and I can't get it work. Can anyone provide some help?
Full Error Message:
{"type":"UNAUTHORIZED_ACCESS_ERROR","message":"User could not be authenticated because the username or password is incorrect, the user does not exist in the targeted Company, or the Company does not exist."}
0
Comments
Please sign in to leave a comment.
Hey Michael,
There are 3 items every SOAP message will need at a minimum. The <user>, <password> and <company> elements must all be populated. The user will need to be a user in the "Web Service User" section in the lower left of the Users menu, not a normal UI user such as admin. You also need to make sure the user has permission to make that WS operation. Make sure the "allowed" bucket is populated with the call you are trying to make. However, the error you are seeing is more like a wrong password or username.
Doc for SOAP users.
I'm not familiar with the domain field. Which operation are you trying to call?
I've verified the user and password name, and at the moment the web user has every permission possible so that shouldn't be blocking my call. I'm guessing that I don't have a company defined. The cURL command is that is provided for my communication command doesn't supply a property for a company. Where would that go?
curl -1 -H "Content-Type: application/json" --user webservice_username -X POST -d '
{
"properties": {
"Form_Field_1": "test",
"Form_Field_2": "test",
"Form_Field_3": "test"
},
"recipients": [
{
"targetName": "my_user"
}
]
}
' "https://xMatters/URL/that/API/supplied"
Wow. Sorry, I some how thought you were making SOAP calls! Please disregard what I just wrote.
For REST calls, the user should be a normal, UI user, NOT a "Web Service" user. As we roll out new REST API services, we will be updating the label there because it is totally confusing. So, make sure this is a normal, UI, user. Then make sure the user is in the Permissions section of the form (Developer tab > Comm Plan > Form > Web Service > Permissions). If the username and password are correct, I'm betting the user is missing from the permissions tab.
Let me know if that works for you!
Happy Monday,
--- Travis