REST get via c# program (testplan /testcase)
Dear All, I am writing a little c# program the main steps of it are: ->download a testplan / testcase and save it as an . xml file I tried to achieve that result by using the REST api of the RQM. Unfortunately my program doesn't return the specified testplan /testcase but the sourcecode of an rational HTML page.
I use the following URL:
The url I use is: "
I have tried it with the Rational URL Utility and it worked!
So please help me. I don't understand if somethings missing or wrong.
THANK YOU! |
2 answers
Max,
For a quick test, change your request headers to text/xml instead of application/xml and see if it makes any difference.
|
Paul Slauenwhite (8.4k●1●2)
| answered Jan 03 '13, 12:33 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jan 03 '13, 12:39 p.m.
Since you specify the Accept=application/xml header (Resource GET request without an Accept headers returns the 'Loading....' web page. (77982)), it appears you are not authenticating with the JTS server. See com.ibm.rqm.url.client.RQMUrlUtlyLogin.login(String, String, String) in the RQM URL Utility source (https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Accessing_the_Source - use the same version as your RQM server) for the required HTTP requests to authenticate with the JTS server.
|
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.