Importing XSLT Customizations into a Deployed SOA Composite Application
Use WLST commands to update XSLT customizations in an existing SOA composite application.
To import XSLT customizations into an existing SOA composite application:
- Start
WLST:
sh FMW_HOME/oracle_common/common/bin/wlst.sh - Use the
sca_exportUpdatescommand to export the customizations to a.jarfile.For example:
sca_exportUpdates('http://soa_server_host:soa_server_port', 'all', '/tmp/test/sca_SupplierMaintenance_updates.jar', 'SupplierMaintenance', '1.0', user='weblogic', password='weblogic1')Note:
If there are no previous customizations, this command will not create a.jarfile. In this case, simply create a dummy.jarfile using zip. For example,/tmp/test/sca_SupplierMaintenance_updates.jar. - Connect to the SOA
server.
connect('weblogic','weblogic1','t3://soa_server_host:soa_server_port') - Use the
exportMetadatacommand to export the existing XSLT (.xsl) file.exportMetadata(application='soa-infra',server='soa_server1',toLocation='/tmp/test/',docs='/deployed-composites/default/SupplierMaintenance_rev1.0/Transformations/Transformation_InitializeBusinessRule.xsl')
- Edit the
.xslwith required updates. - Add the updates to the
.jarfile.For example:
zip -r sca_SupplierMaintenance_updates.jar Transformations/*
Now the
.jarfile includes the updated.xslfile under the same directory structure. - Use the
sca_importUpdatescommand to import the update back into the SOA composite application to save the customization.For example:
sca_importUpdates('http://soa_server_host:soa_server_port', '/tmp/test/sca_SupplierMaintenance_updates.jar', 'SupplierMaintenance', '1.0', user='weblogic', password='weblogic1') - Use the
sca_exportUpdatescommand to export the updates again and confirm the changes are in place.For example:
sca_exportUpdates('http://soa_server_host:soa_server_port', 'all', '/tmp/test/sca_SupplierMaintenance_updates.jar', 'SupplierMaintenance', '1.0', user='weblogic', password='weblogic1')