Showing posts with label MDS. Show all posts
Showing posts with label MDS. Show all posts

Thursday, 26 January 2017

Deploying MDS(Artifacts) into server using WLST (Weblogic Scripting Tool)

There are 3 operations that can be performed on MDS:

1)      Export Metadata
2)      Import Metadata
3)      Delete Metadata

•       Export Metadata: To import the deployed artifacts from server to local system can be done by using this operation.

•       Import Metadata: To insert or update the artifacts in MDS, this option is used.

•       Delete Metadata: To delete the artifacts from MDS, this option is used.

Meaning of some terms:

•       toLocation: The local directory path where artifacts structure is defined that needs to be deployed at MDS.

•       fromLocation: The path of local machine/server where artifacts need to be imported from MDS.

Steps to follow before Export/Import/Delete Metadata

1)Go to the SOA Home

CàOracleàMiddlewareàOracle_SOA1àcommonàbin

2) Execute the command: wlst.cmd

3)Execute connect(‘username’, ’password’, ’t3://hostname:portofAdminserver’)

Example: connect(‘abc’,’1234’,localhost:7001’);

Export Metadata
  • Perform 1,2,3 steps.
  • exportMetadata(application='soa-infra', server='AdminServer', toLocation='C:/Oracle/MiddlewareJdev_7.0/jdeveloper/integration/seed/project.jar', docs='/apps/Sample/**', remote=’true’)

Import Metadata
  • Perform 1,2,3 steps.
  • importMetadata(application='soa-infra', server='AdminServer', fromLocation=‘C:\Test3\mdstest.zip’,docs='/**', remote=’true’). 

After this we can see the xsd’s or wsdl’s under SOA_MDSàConnection1 with in a separate folder.

 

Now we can use these files in any project we are needed by going into resource palette à SOA_MDS.

Delete Metadata
  • Perform 1, 2, 3 steps.
  • deleteMetadata(application='soa-infra',server='AdminServer',docs='/apps/S/UtilityServices/FTP/V1/wsdl/**')

It removes folder also
  • sca_removeSharedData('http://localhost:7001','S/UtilityServices/FTP/V1/xsd')

Thank You!!!!


Happy Learning!!!!

MDS (Metadata Services) - DB Based


Go to File à New à All Technologies à Connections 



or 

Go to Resource Palette à SOA-MDS à New SOA-MDS Connection







Select MDS Partition as soa-infra



Now we can see the created connection in Resource Palette



Right Click the Project à Project Properties à Deployment à New







Deployment à New à Contributors à Add



Deployment à New à Filters à Select Artifacts




Right Click on Project à Application Properties à Deployment à New 








Generating SOA Bundle and JAR file to deploy






Import the JAR file into the server and refresh DB based MDS connection to see the artifacts deployed.

 

Thank You!!!!


Happy Learning!!!!

Saturday, 21 January 2017

MDS (Metadata Services) - File Based

SOA Suite has a provision for sharing SOA artifacts through MDS. This facilitates greater reuse of SOA artifacts such as XML schema, WSDL, fault policies etc..

It can be of two types 1) File Based 2) Database Based.

  •  In 11g MDS is created under <Jdeveloper-home>/Integration/seed directory and in 12c it is created under the folder soamds.
  • Default folder “SOA” is used to store common system “SOA-Artifacts”
  • “Custom Artifacts” are to be stored under folder “apps”
      
       Creating SOA-MDS File Based Connection.

       

      Select Connection Type as File Based MDS.

      

      Browse the folder upto <Jdeveloper-home>/Integration/seed as shown below.

     

     Now Test Connection.

     

    Place the artifacts which we want to use in the project under apps folder and we can see the 
    same in resource palette as shown below

    

    Reusing the custom artifacts in the project as below.

    

    Browse for MDS Location.

    

    

    Click Next and Finish. Before deploying the composite make sure the same folder structure 
    available in MDS (i.e, in your server). For MDS deployment steps in EM Click Here

    Thank You!!!!

    Happy Learning!!!!

MDS Configuration from EM - Part 1

Steps to Create apps.zip


      1)      Create a folder structure appsàxsdà Entity Name (school.xsd) 

      
     2)      Make a ZIP of it.
     
    Steps to import apps.zip to MDS from EM
    3)      Login into EM ( soa-infra à Administration à MDS Configuration )
    
    
    Browse for apps.zip file and click on import.
    
     

For MDS Configuration from EM - Part 2 Click Here

Thank You!!!!


Happy Learning!!!!