URI sent to RPE Template from Quick Print -> Generate PDF
Does anyone know the URI that is used by the RPE template when a user selects the "Create and Print" icon then "Create and Print PDF" from a Module Artifact? The URI it uses seems to have all of the XML information I am looking for with my OSLC integration but I can't seem to find out what request it is sending.
Accepted answer
Stephen,
Have you tried using a Net traffic debugger, such as Firebug or Chrome Developer tools? This is what I would suggest in order to find out the specific HTTP request which is made when clicking the Quick Print button in the UI.
For example, the HTTP request which is sent when I try to do this is as follows:
https://clmweb.ibm.com:9443/rm/publish/print/requirement?resourceURI=https://clmweb.ibm.com:9443/rm/resources/_S1Ob0clkEeOQjcX_nqFG3Q&formatURI=http://com.ibm.rdm/reports/formats/pdf&showEmbedTitles=true&maximiseEmbeds=true&projectURI=https://clmweb.ibm.com:9443/jts/process/project-areas/_bE8gsLv6EeO71YKbliatQA
You will want to make sure that the URL parameters apply correctly to your specific scenario, of course. This request also looks like it returns a "Task Tracker" object, so you will want to make sure if you are executing this request programmatically that you follow the URL provided in the "Location" response header, until the response of the task tracker contains the RDF property:
<rm:state rdf:resource="http://www.ibm.com/xmlns/rdm/rdf/state#COMPLETE"/>
You may also want to take a look at this document to learn more about the RRC Reportable Rest API.
I hope this is the information you were looking for, and that I didn't lead you down an unnecessary rabbit-trail!
Mike Jaworski