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

RQMUrlUtility for RQM REST API usage

Hi,

I'm new to the usage of the RQM REST API and was wondering why I was seeing the following behaviour.

With the following command:

java -jar RQMUrlUtility.jar -command GET -user aaa -password YYY -filepath record.txt -url https://<server_ip>:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/buildrecord/urn:com.ibm.rqm:buildrecord:161

I'm expecting XML code in the record.txt file. Instead I get HTML. If I put the 'https...' into a browser I do get the XML I expected.

What am I doing wrong?

Ultimately I want to be able to edit build records and build definitions using these methods.

Ronnie

0 votes



5 answers

Permanent link
It appears that your credentials are incorrect since the HTML page is what you would see if you entered invalid credentials in the browser when logging into RQM. Check your credentials and/or use Poster (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) to make the GET request (after logging into RQM from your browser).

0 votes


Permanent link
It appears that your credentials are incorrect since the HTML page is what you would see if you entered invalid credentials in the browser when logging into RQM. Check you credentials and/or use Poster (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) to make the GET request (after logging into RQM from your browser).


Hi

Thanks for your response. I can use the Poster add on and I get the correct XML in the 'Response' window and that is using the same username and password as I do in the command line example. Using the xml from the Response I can then update the buildrecord title using Poster. If I use the same xml file with RQMUrlUtil i get a 302 error back.

I'm still getting HTML in my GET output files from the command line.

Ronnie

0 votes


Permanent link
Oh, and one further clue is that I get the same HTML output from the Poster add on if I don't have myself logged in via the browser. The 'User AUTH' part of the Poster doesn't seem to work.

Is there some server setting which doesn't allow authentication via the REST API ?

Ronnie

0 votes


Permanent link
Well it looks like this was a version problem after all. The RQMUrlUtil for 3.0.1 is NOT compatible with server 3.0.1.2. All seems to be working now.

Thanks !

Ronnie

0 votes


Permanent link
Great.

Note https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Compatibility.

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: Feb 23 '12, 9:44 a.m.

Question was seen: 5,958 times

Last updated: Feb 23 '12, 9:44 a.m.

Confirmation Cancel Confirm