Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Error in soap message

saahilkumar
Tera Contributor

Hi All

I get an error while generating a SOAP message i.e

Unable to load WSDL: java.lang.RuntimeException: org.apache.commons.httpclient.HttpException: Unable to retrieve XML, HTTP status code: 401:org.apache.commons.httpclient.HttpException: Unable to retrieve XML, HTTP status code: 401

How to address this error

Thanks in advance

find_real_file.png

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Saahil,



An HTTP 401 response means that your request is unauthorized. Please create a user account to authenticate with( soap roles assigned), and select 'use basic auth'.


http://wiki.servicenow.com/index.php?title=Base_System_Roles


View solution in original post

12 REPLIES 12

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Saahil,



An HTTP 401 response means that your request is unauthorized. Please create a user account to authenticate with( soap roles assigned), and select 'use basic auth'.


http://wiki.servicenow.com/index.php?title=Base_System_Roles


Hi Pradeep



I have created a User, how should   I proceed adding the requisite roles, I dont see any option below



find_real_file.png


Hello Sahil,



Navigate to user administration->User->open the user account-> Now check for related list "Roles".


Hi Pradeep



Previously, I did search for the user- test1 in sys_user table to add roles, however couldn't locate it. I tried creating a few more users in Basic Auth(sys_auth_profile_basic) table, these users also do not reflect in the user table.



Please let me where I am going wrong



find_real_file.png




find_real_file.png







find_real_file.png