It's all about the answers!

Ask a question

Create build record by RQMUrlUtility


Ruslan Luchnikov (3121311) | asked Apr 18 '11, 5:10 a.m.
Hello,
I'm trying create build record with RQMUrlUtility:
java -jar RQMUrlUtility.jar -command POST -user aplana -password aplana -filepath C:\\bd.xml -url https://localhost:945/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resouces/Quality%20Manager/buildrecord/bd.xml
there is error:
RQMUrlUtility: Server Response code: 415
XML definition build record:
<xml>
<buildrecord>
<title>BD</title>
<description>
<creator>aplana</creator>
<owner>aplana</owner>
<starttime>2011-04-06T09:12:36.877Z</starttime>
<status>com.ibm.rqm.buildintegration.buildstatus.ok</status>
</buildrecord>
i can't use command PUT, so as i don't know ID buildrecord.

Anyone can give me a suggestion?
Thanks in advance.

4 answers



permanent link
Ruslan Luchnikov (3121311) | answered Apr 18 '11, 7:39 a.m.
xml definition in last message, not correct. For create build record i use this xml:
<?xml version="1.0" encoding="UTF-8" ?>
- <buildrecord xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
<title xmlns="http://purl.org/dc/elements/1.1/">BD</title>
<description xmlns="http://purl.org/dc/elements/1.1/" />
<creator xmlns="http://purl.org/dc/elements/1.1/">aplana</creator>
<owner xmlns="http://jazz.net/xmlns/alm/v0.1/">aplana</owner>
<starttime>2011-04-06T09:12:36.877Z</starttime>
<state xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">com.ibm.rqm.buildintegration.buildstate.running</state>
<status>com.ibm.rqm.buildintegration.buildstatus.ok</status>
</buildrecord>

permanent link
Paul Slauenwhite (8.4k12) | answered Apr 18 '11, 8:43 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hello,
I'm trying create build record with RQMUrlUtility:
java -jar RQMUrlUtility.jar -command POST -user aplana -password aplana -filepath C:\\bd.xml -url https://localhost:945/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resouces/Quality%20Manager/buildrecord/bd.xml
there is error:
RQMUrlUtility: Server Response code: 415
XML definition build record:
<xml>
<buildrecord>
<title>BD</title>
<description>
<creator>aplana</creator>
<owner>aplana</owner>
<starttime>2011-04-06T09:12:36.877Z</starttime>
<status>com.ibm.rqm.buildintegration.buildstatus.ok</status>
</buildrecord>
i can't use command PUT, so as i don't know ID buildrecord.

Anyone can give me a suggestion?
Thanks in advance.


A couple of tips:

-Use the RQM REST API WIKI to determine if GET/PUT/POST/DELETE support is provided for a resource type (https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op).

-Use the RQM schema to determine if a property is read-only (http://jazz.net/projects/rational-quality-manager/api-doc-2.0/).

-Use Poster to GET the XML for a supported resource to determine the properties/values (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster).

permanent link
Kurtis Martin (1.4k11) | answered Apr 18 '11, 1:00 p.m.
JAZZ DEVELOPER
The XML being posted for the build record needs the <providerTypeId> element. RQM should have handled this better and this will be fixed in 2.0.1.1 iFix4 via RQM work item:

https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/49322

permanent link
Ruslan Luchnikov (3121311) | answered Apr 19 '11, 2:46 a.m.
I was able to create using the command PUT:
java -jar RQMUrlUtility.jar -command PUT -user aplana -password aplana -filepath C:\\bd.xml -url https://localhost:9445/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resouces/Quality%20Manager/buildrecord/bd.xml
and using next XML definition:
<?xml version="1.0" encoding="UTF-8" ?>
<buildrecord xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
<title xmlns="http://purl.org/dc/elements/1.1/">BD</title>
<description xmlns="http://purl.org/dc/elements/1.1/" />
<creator xmlns="http://purl.org/dc/elements/1.1/">aplana</creator>
<owner xmlns="http://jazz.net/xmlns/alm/v0.1/">aplana</owner>
<starttime>2011-04-06T09:12:36.877Z</starttime>
<status>com.ibm.rqm.buildintegration.buildstatus.ok</status>
<providerTypeId>com.ibm.rqm.buildintegration.common.manualProvider</providerTypeId>
</buildrecord>
Thanks for the help!

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.