It's all about the answers!

Ask a question

Error with OSLC Automation Adapter Creation

Elliot Morrison-Reed (2059) | asked Sep 26 '13, 8:50 a.m.
retagged Sep 27 '13, 2:25 p.m. by Lisa Caten (342913)

Edit: I am not sure why, but the capitalization is wrong, and extra semi-colons are added to the code in the pre-formatted block.  Those are not in my code.

I am working on interfacing an existing stand-alone automated test system with a new instance of Rational Quality Manager.  The main idea is we should be able to attach scripts for our test system to individual Test Script (or Test Case) entries, and then automatically run them on our test server by manually triggering through RQM or through Test Schedules.

From looking through the documents, it looks like the best way to accomplish this is to create an Automation Adapter on the test server that polls the RQM server for automation requests.  I am attempting to follow the example outlined here:

I am able to crawl through the OSLC Resources to the RQM Automation ServiceProvider and grab the URI for the Default creation factory for AutomationAdapter (steps 1-8).  I then construct the following XML document:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rqm_qm="" xmlns:dcterms="" xmlns:oslc="" xmlns:rdf="">
        <rdf:type rdf:resource=""/>
<oslc:serviceProvider rdf:resource=""/>
<oslc:instanceShape rdf:resource=""/>
<dcterms:title>Test Test Adapter</dcterms:title>
<dcterms:description>Test Test Adapter Description</dcterms:description>
<dcterms:type>Test Test Type</dcterms:type>
This is being posted with the same session which I was using to crawl OSLC graph.  I sent it with the following headers:
When I send this data I get a 400 Bad Request response, with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href=""?>
<rdf:RDF xmlns:jproc="" ...more namespaces...>
    <oslc:Error ns12:type="oslc:Error" 
<oslc:message>AQXCM5010E Client error executing POST (400).</oslc:message>
<oslc:moreInfo rdf:resource=""/>
Unfortunately, there doesn't seem to be anything there at the moreInfo link, and I haven't been able to find much information about that error on the internet.  Some IBM pages said that I should try again and then contact IBM software support.  I though I would post here first to see if anybody has some insight.


Accepted answer

permanent link
Paul Slauenwhite (8.4k12) | answered Sep 30 '13, 10:04 a.m.
edited Sep 30 '13, 10:08 a.m.
Without the extra semicolons and the case issues corrected, your RDF/XML is valid using  However, your namespaces are incorrect.

Elliot Morrison-Reed selected this answer as the correct answer

Elliot Morrison-Reed commented Sep 30 '13, 10:36 a.m.

Hi Paul,

This looks like you found the issue.  I modified all of my rqm_qm namespaces to rqm_auto, and I am now getting a different error.  However, this one I think is just an access right problem.

The strange thing is that the namespace declarations are pretty clear on the walkthrough.  That should probably be fixed so other people don't get confused like me.

Do you know if there is an official source for the namespace declarations for each property?

Paul Slauenwhite commented Sep 30 '13, 10:41 a.m.

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.