SOA Suite
11g has a provision for sharing SOA artifacts through MDS – Meta Data Store.
This facilitates greater re-use of SOA artifacts such as XML Schemas, EBMs,
WSDLs, Fault Policies, Rule repositories and Service Data Objects (SDOs) among
others. MDS can be file-based or database-based. Here are the steps to create
and use Databased and file-based MDS in JDeveloper.
Create directory structure under apps folder. In my case, I’ve
created folder structure
../apps/cosdeaia/ApplicationConnectorServiceLibrary to store XML schema
files. This ideally should match your schema structure.
New à Connections à SOA-MDS
Connection
5. The SOA-MDS connection can be
created in two ways. One is File Based MDS and other is Data
Based MDS.
6. In Create SOA_MDS
Connection window, select File Based MDS as Connection. Type for
file based MDS connection, we will point to the local folder in our system
,where all the WSDL and XSD files are placed as shown below.
7. Click
OK. Now the File Based MDS connection is created.
8. Lets see how to create DB based MDS connection. In Create
SOA_MDS Connection window, select DB Based MDS as Connection
Type for file based MDS connection.
9. For DB Based MDS connection, we should have created all the schema for the weblogic in the database by running the Repository Creation Utility (RCU) wizard. After RCU execution, the DEV_MDS schema will get created in the database. We need to use the DEV_MDS schema connection and soa-infra as MDS Partition while creating the DB Based MDS connection as shown in the above screen shot.
12. You
use common sca tool (common-sca-tools.xml) to do it and use Ant target nameimportCommonServiceArtifactsIntoMds from
class files provided by oracle (MDSImportTask).
13. So whenever we made modifications or additions to the WSDL or XSD files, we need to update the Weblogic server. While update, by using an Ant script first delete all the files from Weblogic server and execute re-import Ant script the latest files into Weblogic server.
14. After Import into Weblogic server, you can use the wsdl and xsd files in your project by referring to the Weblogic server through SOA-MDS (Data Based MDS) connection type.But never Copy these files into your project while referring from Weblogic server. By copying this creates a mess in run time. For example while working you do some modifications in the local WSDL and XSD files and you will forgot to update these changes in to Weblogic server.
15. Whenever we refer the WSDL or XSD files from SOA-MDS (Data Based MDS) connection type, the location URL looks like oramds:/apps/cosdeaia/… (In my case the cosdeaia folder contains all my files…)
16. The new connection appears under the “Resource Pallette” window on right side of the Jdeveloper as shown below
Now
you have created the MDS connection in JDeveloper. You can use in your
SOA Composites.
No comments:
Post a Comment