It's all about the answers!

Ask a question

How to get resource xml file from .net code?


swati dhole (611) | asked Mar 18 '11, 12:32 a.m.
Hi,

I have a requirement to get resource (Test Plan, Test Suite) xml file from .net code. Can someone please help me?

3 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Mar 18 '11, 7:40 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

I have a requirement to get resource (Test Plan, Test Suite) xml file from .net code. Can someone please help me?


You could use the RQM REST API to extract the test assets from the repository individually or as a XML or JSON feed (see http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/topic/com.ibm.rational.test.qm.doc/topics/c_extendrqm.html).

permanent link
swati dhole (611) | answered Mar 22 '11, 12:19 a.m.
Hi,

I have a requirement to get resource (Test Plan, Test Suite) xml file from .net code. Can someone please help me?


You could use the RQM REST API to extract the test assets from the repository individually or as a XML or JSON feed (see http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/topic/com.ibm.rational.test.qm.doc/topics/c_extendrqm.html).

Hi Paul,

I have already gone through the RQM REST API. I'm trying to get xml by HttpResponseMessage but not able to get it.

Thanks,
Swati

permanent link
navneet kumar (02) | answered Jun 13 '13, 2:55 a.m.
 You can request and secure document (json/xml etc) from the server using HTTPWebRequest and WebClient in C#. You'll first have to authenticate into the server using OSLC APIs and then request for the secure  document. Authentication is one time process and you'll have to set a cookie. 

You can see code snippet and read more here - 

Your answer


Register or 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.