SOA : Deploying XSD to Central MDS

Storing common artifacts that are used across projects in the MDS repository is a good idea.
It ensures that the artifacts are centrally managed and any changes are easily propagated to all the consumers.
Lets see how to deploy XSD files to the MDS in SOA.
First you need to create a Central MDS connection. See here.
By doing this you can use the same XSD file from the central MDS in multiple projects.


Step 1
First, we need to create a new SOA project.
Right Click on the application and select New Project.

Image 001


Step 2
Select SOA Project and click OK.

Image 002

Step 3
Enter Project Name : BlueBankSchema
Click Finish.

Image 003

Step 4
Right Click on the newly created project and Select New.
In the New Gallery, go to All Technologies tab and select the following.
Category : XML
Item : XML Schema
Click OK

Image 005

Step 5
Enter the following
File Name : Customer.xsd
Append apps\xsd at the end of the default directory.
Clear the target namespace and click OK

Image 001

Step 6
Right Click the project and select Project Properties.

Image 007

Step 7
Go to Deployment and delete the existing profile.
Click New.

Image 008

Step 8
Enter the following:
Archive Type : JAR File
Name : xsd
Click OK.

Image 029

Step 9
In the Deployment Profile Properties, Go to Contributors and click Add.

Image 030

Step 10
Browse and Select the folder with the project name i.e BlueBankSchema

Image 032

Step 11
Next, go to Filters.
Uncheck everything, only select the xsd file(s) which you want to deploy to MDS.
Click OK.

Image 033

Step 12
Now Right Click the application (DemoApp), Go to Application Properties.

Image 009

Step 13
In the Application Properties window, select Deployment and click New.

Image 010


Step 14
Enter the following :
Archive Type : SOA Bundle
Name : xsd_to_mds
Click OK.

Image 011


Step 15
Now we can see the newly created Deployment Profile in the list.
Select the newly created Deployment Profile and click Edit.

Image 012

Step 16
In the Deployment Profile Properties, go to Dependencies.
Expand BlueBankSchema and select the checkbox next to xsd.
Click OK.

Image 034

Step 17
Now Right Click the application(DemoApp), Select Deploy –> xsd_to_mds

Image 006

Step 18
Make sure the SOA server is running.
Select ‘Deploy to Application Server’ and click Next.

Image 035


Step 19
Click Next.

Image 036

Step 20
Select the Application server where SOA is running.
Click Next.

Image 037


Step 21
The SOA server will be automatically  detected, Click Next.

Image 038


Step 22
Click Finish.

Image 039

You should see the following confirmation.

Image 040


You should be able to see the newly deployed files in the Central MDS connection.

Image 003

Post a Comment