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

This post hasn't provided a real answer to the issue. Please set it back as unanswered, or provide a real answer.


I am integrating SNOW with JIRA . So i am providing username and password of JIRA in basic auth . WSDL ran perfectly. But when i was testing it by giving values it gave me an error 401. i.e; Same Authentication issue (issue : you need authentication to use this resource) . Can any one suggests me . Why i am getting this error . Is this error because of JIRA username and password or there is an issue regarding to SNOW level.




pradeepksharma   ctomasi



Thanks



Agatha


I have not worked with anyone using SOAP to integrate ServiceNow with Jira, only REST. I did some searching and came up with this.



ServiceNow Wiki Search Results



Have you considered using REST? It's a bit simpler to implement (and debug IMHO.)


Dear Chuck,



Actually i am integrating with a middleware which accepts data in XML format using SOAP and Convert it into JSON and using Rest it creates a JIRA by Calling JIRA.



SOAP_JIRA.PNG


Ankur Bawiskar
Tera Patron
Tera Patron

HI Saahil,



When you do a lookup on basic auth profile, you will see new button. Create a auth profile for a user in servicenow with some password and give soap related roles to the user.


Then try to save and generated the wsdl and sample soap messages. That should work



Mark my reply as Correct and also hit Like and Helpful if you find my response worthy.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader