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

How do I get XML for exceutionresult programmatically ?


Hi,

I want to get the xml for executionresult progrmmatically.I have used RQMCopyUtil to get the XML.I have passed the URL,userid,password and attributetype as argument.But I am geeting some SAXException at my end.

0 votes



5 answers

Permanent link
Hi Swapna,
Basically you need to use http GET API and copy util is a good example to do that. What is the exception trace, could you please provide that

1 vote


Permanent link

0 votes


Permanent link
In addition, see https://jazz.net/wiki/bin/view/Main/RqmApi#Common_Usage_Scenarios.

0 votes

Comments

Thanks a lot Paul.In my java project I have included RQMCopyUtil in the build path.And I have created an instance of RQM Client and I am using the getID method of FeedReader class.For that I am passing the URL,userid,password and attributetype as argument.By passing the argument I am able to get the feedObject which is in html format.When it tries to create an XML object out of the HTML it's thrwoeing SAXException.


Permanent link
Hi Swapna,
You need to pass on header in request to receive xml data, by default server sends html response.
You can set accept-header value to application/xml
Header Name: Accept
Value: application/xml

Alternatively adding a header
name : user-agent
value= <any value of empty value is fine>


0 votes


Permanent link
I would also check the content of the HTML since it may be the RQM login page.  If so (and you are using the Accept=application/xml header), you should check your user ID/password.

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: Jun 21 '12, 2:27 a.m.

Question was seen: 4,095 times

Last updated: Jun 27 '12, 6:31 a.m.

Confirmation Cancel Confirm