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 Service) - Export and Import from Jdeveloper

Export MDS from Jdeveloper







Exported Successfully



Import MDS into Jdeveloper









MDS Imported Successfully.

Thank You!!!!


Happy Learning!!!!

MDS Configuration from EM - Part 2

Steps to Create apps.zip

Naming Convention for DVM’s


·         Must start with the Object Name / Business Entity Name.
·         Should be followed by the Element Name that needs domain value mapping.
·         Must be uppercase.

Syntax: <BusinessEntity/ObjectName>_<ElementName>


Example: Sample.dvm





Steps to import apps.zip in EM

Login to EM (soa-infra à Administration à MDS Configuration) 





Browse for apps.zip and import





Steps to Modify/Update from composer

Login to composer (http://<SERVER NAME OR IP ADDRESS>/soa/composer) and verify the deployed DVM,





To Update/Modify we have to follow below steps.

Click on create session



Now we are able to see Add/Edit/Delete options as shown below.



Modify the existing values





To reflect this changes , make sure you have to click on Save or Save All before publishing.



Publish the changes





Changes have been published successfully.

Steps to Export MDS from EM

Login to EM (soa-infra à Administration à MDS Configuration) 



Click on Export



Exported Successfully



Steps to use MDS in Code

Usage of  MDS in Assign Activity



Usage of  MDS in Transform Activity



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!!!!