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
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
5 answers
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).
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