Configure Service Metadata
Edit the Metadata File
In this step we will open the service metadata file which our service will read and use to gather information to be registered to the caGrid Index Service. We will edit this file to provide some information about our research center that we are from.
- Open for editing the metadata file C:\CaGridTutorialService\etc\serviceMetadata.xml. Go to the second to last line and replace
<ns1:hostingResearchCenter/>
with
<md:hostingResearchCenter xmlns:md="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata"> <com:ResearchCenter displayName="caGrid 1.0 Training Institution" shortName="training" xmlns:com="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.common"> <com:Address country="US" postalCode="20008" locality="Washington" stateProvince="DC" street1="2660 Woodley Road"/> <com:pointOfContactCollection> <com:PointOfContact affiliation="YOUR_AFFILIATION" email="YOUR_EMAIL" firstName="YOUR_FIRST_NAME" lastName="YOUR_LAST_NAME" role="participant"/> </com:pointOfContactCollection> </com:ResearchCenter> </md:hostingResearchCenter>
- Fill in YOUR_AFFILIATION, YOUR_EMAIL, YOUR_FIRST_NAME, and YOUR_LAST_NAME and then save the file. This metadata will be available in the index service to help others locate this service so that it can be used.
- Save the modified file.
Validate the results
- In the Introduce Modification panel select the Metadata tab
- In the service metadata elements table on the right select the row with the ServiceMetadata type;
- Select the View/Edit button on the bottom panel and this will pop up a panel showing the editing XML. Scroll down and verify your changes.
![]() |
| Modifying Service Metadata |






