It's all about the answers!

Ask a question

#RPE#DNG: How to parse OSLC Config Context from a definition file.

Sunil Mudikonda (133) | asked Mar 08 '21, 12:19 a.m.


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. 

can i get some help in parsing this data please.


2 answers

permanent link
Subramanya Prasad Pilar (4.6k14) | answered Mar 08 '21, 2:44 a.m.
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: &lt;>; rel=&quot;profile&quot;"></property>

Sunil Mudikonda commented Mar 09 '21, 3:11 a.m.

Hello Prasad, 


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!


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 

permanent link
Sunil Mudikonda (133) | answered Mar 22 '21, 2:58 a.m.

The following definition file resolved my issue 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<definition xmlns="" xmlns:xsi="">;




 <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>;





Your answer

Register or to post your answer.