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.

web service authentication

giuseppedeluca
Kilo Explorer

Hi,
I'm trying to implement a web_service and web_service_client in eclipse.
I want to insert an incident in incident's table using a web_service in eclipse.
From my instance I took the wsdl from url myinstance/incident.do?WSDL.
When I insert the .wsdl file in eclipse and create a web_service_client and use the operation "insert" I have this error:"Exception: (401)Unauthorized Message: (401)Unauthorized".

Now I want to authenticate with instance. In my opinion I should modify the .wsdl file and insert the authentication data (user, pass).
I searched a lot on web but I failed.
Can you help me? If you have already do this integration, can you post me an exemple so I can understand?

P.s
sorry for my broken English.

5 REPLIES 5

HI Jacob,



I am also trying to implement the same using webservices. The authentication details that an providing are the one which I use to login to service-now normally. But they are not working and I am getting that unauthorised exception. The service-now version is calgary. Also I am only a user of the application for ITSM support tasks, so I dont have any admin access.



Can you please tell me if I can use this webservice using my credentials?



Thanks