Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

how can I invoke the REST service provided in current RQM?

I would like to invoke the REST service API provided in the current RQM (1.0.1) from the outside of RQM, i.e., from a third part program in a programmatic way.

I tried to write code to send the HTTP request to the REST service, but it seems I should to login and authenticate to the RQM firstly from the server response. But it seems that the Tomcat does not allow authenticate directly by sending username and password to j_sucurity_check servlet.

I've posted similar subject in Extending Team Concert, please refer that..
https://jazz.net/forums/viewtopic.php?t=4348
https://jazz.net/forums/viewtopic.php?t=3910

so, how can I pass the authentication and invoke the REST API from the outside of the RQM?

Thanks in advance..

0 votes



One answer

Permanent link
In tomcat or WAS, you can try it like this.

1. Invoke a REST Service

2. In response, RQM will ask you to login first. Get the cookie value from response header's "Set-Cookie" field

3. POST a request to "jazz/j_security_check", add "j_username", "j_password" to post parameters and also add cookie to request header

4. Add cookie to request header and invoke REST Service again. It should work this time. Hope it helps.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 04 '09, 12:03 a.m.

Question was seen: 5,763 times

Last updated: May 04 '09, 12:03 a.m.

Confirmation Cancel Confirm