After completing Part 1: Creating and Configuring MDS we will now learn how to use the MDS in our existing projects so we can then share our WSDL, XSD, etc. See the links below to see the other parts:
- Part 1: Creating and configuring MDS
- Part 2: Referencing existing projects to MDS
- Part 3: Sharing the MDS and other servers
Let’s make our project SelectDBAdapter start referencing our MDS (Project Artefatos)
Identify the WSDL that the project reference:
Open your composite.xml and double-click on the box selectdbadapte…
See he reference to WSDL SelecDBAdapterBPELProcess.wsdl
Now in its design click on this file (WSDL SelecDBAdapterBPELProcess.wsdl) and on their menu, click Refactor >> Move
In the screenshot below Location in check until the folder apps/wsdl your Artefatos project and click Save
Do the same now Move to folder apps/xsd your project Artefatos with the file SelecDBAdapterBPELProcess.xsd which is used by this WSDL
We will then have the following structure within the apps folder in our project Artefatos (MDS)
Now double-click on your composite.xml
Ignore the error below by clicking OK
Double-click on the box selecdbadapte..
Ignore the error that will appear, and then click OK
In WSDL URL: Type the path below and press the TAB key on your keyboard and click OK
oramds:/apps/wsdl/SelecDBAdapterBPELProcess.wsdl
Now within our WSDL SelecDBAdapterBPELProcess.wsdl in the folder apps/wsdl go Source Import and we will adjust the path of where our XSD
In schemaLocation change the location to oramds:/apps/xsd/SelecDBAdapterBPELProcess.xsd
Now double-click on the SelecDBAdapterBPELProcess.bpel and click Source
In the import line change the location to: location=”oramds:/apps/wsdl/SelecDBAdapterBPELProcess.wsdl”
Ready … now our SelectDBAdapter project already being referenced by our Artefatos.
We now perform the deploy our MDS and after our project to perform the necessary tests.
Make the first locally deploy its Artefatos (MDS)
In your menu, click Application >> Deploy >> soabundle
On the next screen click Next, leaving marked the default option in the case Deploy to Application Server
Click Next again
In this option, select localhost and click Next
Click Next again
Click Finish
In the guide below its JDeveloper Deployment Log in check appeared the message
—- Deployment finished. —-
Ready … deploy your MDS was successful.
Now do deploy your project SelecDBAdapter
Right-click on your project (SelectDBAdapter) click Deploy > SelectDBAdapter…
Click Next
Check the Overwrite any existing composites with the same revision ID and uncheck Keep running instances on after redeployment and click Next
Select the localhost option and click Next
Click Next again
Now click Finish
In the guide below its JDeveloper Deployment Log in check appeared the message
–– Deployment finished. ––
Ready … deploy your SelectDBAdapter project was successful.
Perform the necessary tests and in case of problems review the steps performed.
Note: I recommend you download and upload your AdminServer
before performing the tests.
Hugs and to the Next
/:-D