It's all about the answers!

Ask a question

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


Sunil Mudikonda (131) | asked Mar 08, 12:19 a.m.

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. 




can i get some help in parsing this data please.

Regards,
Sheetal.


2 answers



permanent link
Subramanya Prasad Pilar (4.3k14) | answered Mar 08, 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;http://jazz.net/ns/profile#POX>; rel=&quot;profile&quot;"></property>

Comments
Sunil Mudikonda commented Mar 09, 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, 8:24 a.m.

Hello Prasad, 


Can you pleasse help with any sample definition file for parsing OSLC config context.

Thanks You 
Sheetal. 


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

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


Register or to post your answer.