Create build record by RQMUrlUtility
![](http://jazz.net/_images/myphoto/d26fadbd5876b1d82f9edb342b6255f2.jpg)
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.
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
![](http://jazz.net/_images/myphoto/d26fadbd5876b1d82f9edb342b6255f2.jpg)
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>
<?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>
![](http://jazz.net/_images/myphoto/d26fadbd5876b1d82f9edb342b6255f2.jpg)
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).
![](http://jazz.net/_images/myphoto/d26fadbd5876b1d82f9edb342b6255f2.jpg)
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!
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!