Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

#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. 




can i get some help in parsing this data please.

Regards,
Sheetal.


0 votes



2 answers

Permanent link
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>

0 votes

Comments

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. 

Hello Prasad, 


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

Thanks You 
Sheetal. 


Permanent link

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>

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121

Question asked: Mar 08 '21, 12:19 a.m.

Question was seen: 1,828 times

Last updated: Mar 22 '21, 2:58 a.m.

Related questions
Confirmation Cancel Confirm