#RPE#DNG: How to parse OSLC Config Context from a definition file.
Hello,
I am trying to create a new dsx file using RPE command line interface to export a module from a particular stream.
I would like to parse the data source URI and the configuration context in to the dsx file through the definition file we use for creating a new dsx file.
Used the following properties but didnt work.
<property name="URI">"https://localhost:8443/rm/resources/_Er_M8cEiEeKbQOTBow"</property>
<property name="Configuration-Context">"https://localhost:8443/rm/cm/stream/_lz8tseu-d_kmCw_U6g"</property>
can i get some help in parsing this data please.
Regards,
Sheetal.
|
2 answers
Since the URI is not reportable API, please try adding Link header using another property:
<property name="extra headers" editable="true" visible="true" required="false" value="Link: <http://jazz.net/ns/profile#POX>; rel="profile""></property>
Comments
Sunil Mudikonda
commented Mar 09 '21, 3:11 a.m.
Hello Prasad,
Greetings!
I tried to adding another property with the link header but didn't work. Can you please help me with a sample definition file for parsing the module URI and also the configuration context.
Thank You!
Regards,
Sheetal.
Sunil Mudikonda
commented Mar 11 '21, 8:24 a.m.
Hello Prasad,
Can you pleasse help with any sample definition file for parsing OSLC config context.
Thanks You
Sheetal.
|
The following definition file resolved my issue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definition xmlns="http://www.ibm.com/rational/rpe/definitionFile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;
<docspec>c:\temp\generatedDocSpec.dsx</docspec>
<datasource name="modules" type="Generic XML"> <property name="URI">https://hostname:9443/rm/publish/modules?resourceURI=MD_kiJ1NUCCEeuYnfbpHnHhKA</property>; <property name="Authentication">OAuth</property> <property name="Accept header">application/xml</property> <property name="Configuration-Context">https://hostname:9443/rm/cm/stream/_a3uXQECCEeuYnfbpHnHhKA</property>; </datasource>
<template>c:\temp\DNG_Module.dta</template> </definition> |
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.