Today I am going to share How to creating soa template and I feel It would be highly productive and desirable to be able to easily create templates for service designs that could be reused across teams and projects. Using quality designs and tested patterns as the starting point for new services speeds up development while also supporting widespread adoption of quality and standards in service design.
SOA Suite 12c automates creation and management of templates of service composites, as well as individual service components. The service project templates we create will be stored and managed in the file-based MDS, so they can easily be shared with other developers. We have an existing service composite that we would like to clone or use as the basis of new service composite. Once we create the new service based on the template, we’ll be able to make modifications to it as needed.
Here is the current Service:
We’d like to start with this service and then create a new, separate project and service that will have the same starting structure. Then we can make modifications to suit our particular needs. We begin by creating the service composite template from the existing project. Create or find a SOA Suite 12c Service Composite to use as the basis for the template and open it in JDeveloper 12c.
Right-click the project or composite name and select Create SOA Template.
Click the Save In icon to select the location for storing the template: in the file system or file-based MDS for reuse. We are using the file-based MDS to enable easier sharing and reuse and use a single repository for storing assets.
Select which parts of the service project to include in the template. You can choose to not add certain components or assets to the template.
Save the template.
Now that the template is created, we can reuse it here in our application, or share it as a jar file or since we checked it into the file-based MDS, then we can share it with other developers who have access to the MDS.
To create a new service composite based on the template:
Create a new SOA Project.
Select a name for the project.
Select the SOA Template radio button and then select the template form the list.
The new project is created based on the template.
The ability to create reusable templates is included with components: you can create a mediator or BPEL process and save that as a template for reuse. The process is similar to creating a template for a service composite. Right-click on the component to use as the basis for the template.
Select Create Component template, and choose where to save it.
Choose which files to bundle with the template and Finish.
Choose the name for the component and which files to include from the template.
If there are conflicts with existing files, use the wizard to resolve them as needed and Finish.