Occasionally, we may want to validate the current content of all the XML artifacts deployed to the MDS repository on our SOA infrastructure. In this recipe, we will show how to export the content of MDS to the filesystem.
Make sure you have deployed some XML artifacts to the MDS repository running on the SOA infrastructure.
This will download the current content of the MDS repository in a ZIP file to your local filesystem.
The content of the MDS repository can also be exported using the WSLT command exportMetadata
. This gives you more fine-grained control over what is exported, for example the following command:
wls:/lab_domain/serverConfig> exportMetadata(application='soa-infra',server='soa_server1',toLocation='D:/MDSExport', docs='/apps/core/**')
This will export just the content of the MDS repository under /apps/core
.