Showing posts with label SOA domain. Show all posts
Showing posts with label SOA domain. Show all posts

Saturday, February 27, 2016

OSB 12c - Domain Value map (DVM)


Hey guys !

Here I am going through the Domain Value map (DVM) functionality in OSB 12c.
In the 12c versions of OSB, Support for the DVM is included, Hence lets discuss the use case and Steps to implement DVM.

Use Case 

Simple Integration  Scenarios, Where Source system, Which sends data to Target System needs domain conversion of values.

A very typical example is Country name to Country Code conversion using DVM, i.e. Source system sends Country name and Target system expects Country code.

Design


Step 1 :

Open Jdevloper 12c (Service Bus console can also be used), Create a Service Bus Project.
I have given name to project as 'SBProject_DVM'

Step 2:

Create Source and target Schemas or WSDL (This is not a essential Step). For better demonstration, I Have used WSDL.



Step 3:

Create a Domain value map (CountryName_Code.dvm) and Add the Domain Name and Values. Atleast 2 rows needs be added.




Step 4:

Create a XSLT mapper (CountryNameToCode.xsl), Choose Source and Target to this mapper from your WSDL.



Step 5 :

User mapper to drag and Drop mapping element, Shown below




Step 6:

Go to XSLT source view and Edit the code as below 




Add this snippet 

<CountryCode>          
            <xsl:value-of select="DVMFunctions:lookupValue (&quot;SBProject_DVM/CountryName_Code&quot;, &quot;Name&quot;, string(/ns0:process/ns0:CountryName), &quot;Code&quot;, &quot;Unknown&quot; )"/>
 </CountryCode>



Now if you go to Design view, the below design will be visible





Step 7:

Create a new Pipeline Based on your WSDL and go to design view.
Add Pipeline pair to it, 
Inside Request Pipeline add a Stage. Inside stage add a 'Replace' action.
Inside Response Pipeline add a Reply action with Success.




Step 8:

Lets go to Replace action and use the Earlier created XSLT mapper to do the DVM  task.




In the input Field add the Variable which contains input element, as below





Step 9:

Save your changes and Export is to deploy to Test Server or Deploy directly from Jdeveloper.





Testing 

Step 1:

Open the Pipeline, click on test button, this will open in new window







Step 2:

Edit the request payload and click on Execute button to test it.








Voila !
You have successfully created DVM using OSB 12c


You can download the sbconfig jar of this project from
https://drive.google.com/file/d/0BxHj0h0tnxxOWWVYVXVvTGtWUGs/view?usp=sharing





Here are some other posts, which may interests you

1. Fusion Middleware 12c – SAP Adapter Configuration

http://osb-dheeraj.blogspot.in/2016/02/fusion-middleware-12c-sap-adapter.html

2. Oracle Integration Cloud Service (ICS)

http://osb-dheeraj.blogspot.in/2016/02/oracle-integration-cloud-service-ics.html


3. SOA Interview Questions : Service Oriented Architecture Interview Questions Part 1

http://osb-dheeraj.blogspot.in/2016/02/soa-interview-questions-service.html

Wednesday, February 17, 2016

Oracle SOA Suite 12c - SOA Domain Configuration part 2

This post is in continuation with my previous post, about SOA domain creation. You can find part 1 at 


http://osb-dheeraj.blogspot.in/2016/02/oracle-soa-suite-12c-soa-domain.html




Lets Continue with the steps of domain creation:


Step 9:
Fill the DB Schema details for each of the Datasource by selecting each one by one
Once all filled, Click on Next button



Step 10:
The Wizard will test each connection, if you have given correct information, then all connection will show success as below, Then Click Next




Step 11:
Click Next on the Screen,




Step 12:
On this screen select the elements, which you want to configure for your domain. For example select Admin server and Manage Server then click on Next, as shown




Step 13:
Provide Server port Number, Host Address, and SSL port, You can keep the default setting as well. Then Click Next




Step 14:
For Managed Server, Provide Name, Port, SSL Port, or keep the default settings.




Step 15:
Since we have only one Managed server, hence we do not need cluster, Click Next




Step 16:
Click next for Coherence and Coherence Cluster Screen. Click on + button to add Machine, Provide details of your machine




Step 17:
Then look the Summary of your configuration and Click Create





Step 18:
It will take some time to create the domain. The last will be the confirmation screen.


Voila, you have successfully created your SOA Domain.



In case you want to configure OSB Doamin, refer my previous post:

Oracle SOA Suite 12c - OSB Domain Configuration

http://osb-dheeraj.blogspot.in/2016/02/oracle-soa-suite-12c-osb-domain.html






Saturday, February 13, 2016

Oracle SOA Suite 12c - SOA Domain Configuration

Here we are going through the Steps for the creation of SOA Domain.
Since we have already Installed Oracle SOA suite 12c for Windows.

If you want to go through the Installation Steps:
Refer my Previous Blog Post at :

1.Oracle SOA Suite 12c 12.2.1 - Installation for Windows

http://osb-dheeraj.blogspot.in/2016/02/oracle-soa-suite-12c-1221-installation.html

2. Repository Creation Utility (RCU) - Creation of DB Schemas for SOA 12.2.1

http://osb-dheeraj.blogspot.in/2016/02/repository-creation-utility-rcu.html



Lets Start with SOA Domain Creation steps


Step 1:
Open Folder location 
<Middleware Home>\oracle_common\common\bin

Location as per Previous post, which discusses about installation steps
D:\SOA12c\MiddlewareHome\oracle_common\common\bin

Here you will see below files



Step 2:
Double click on config.cmd  This will open Configuration wizard



Step 3:
Provide Name and Location of Domain then click Next



Step 4:
Since we are creating Basic SOA Domain, hence select 'Oracle Soa Suite' only .This will automatically select required components. Shown below, Then Click on Next Button





Step 5:
On Application location Screen, Click on Next Button



Step 6:
Provide Admin Password (Make a note of it ). Then Click on Next button



Step 7:
Keep the default value, click on Next
If you want similar control as Production, then select Production here




Step 8 : Select manual Configuration , to Provide details about the DB schemas .

Before this We need to create DB schemas using Repository Creation Utility. Follow my Previous post to Create Schemas at:

Repository Creation Utility (RCU) - Creation of DB Schemas for SOA 12.2.1

http://osb-dheeraj.blogspot.in/2016/02/repository-creation-utility-rcu.html








Continue the steps of SOA domain creation in my Next post

Oracle SOA Suite 12c - SOA Domain Configuration part 2

http://osb-dheeraj.blogspot.in/2016/02/oracle-soa-suite-12c-soa-domain_17.html



Repository Creation Utility (RCU) - Creation of DB Schemas for SOA 12.2.1

Many of the Oracle Fusion Middleware components require the existence of schemas in a database prior to installation. These schemas are created and loaded in your database using the Repository Creation Utility (RCU).

Here I am going to explain steps for Running RCU and Creating Schemas for Oracle SOA 12.2.1

Step 1:
Navigate to oracle_common/bin in your installation directory.
e.g.
D:\Oracle_Home\SOA12c_Home\oracle_common\bin

Here you will see below, files





Step 2:
Locate rcu.bat, Double click on it, it will a new window in some time as below. Then click on Next button.



Step 3:
Now you need to have SYSDBA credentials of your DB, Select 'System Load & Product Load' then Click next.
If you do not have SYSDBA credentials, select other options as suitable.



Step 4:
Enter details of your DB and click on Next button.



Step 5:
It will try to connect to your DB, the Click on OK Button.



Step 6:
Enter the Prefix of your Schemas, then click Next


Step 7:
It will check for Pre requisite, once completed click on OK button



Step 8:
Enter the Password for the Schemas, you can either keep the same password across schemas or different for each schema. Then Click on Next button



Step 9:
Select space requirement for your schema, then click Next



Step 10:
It will show you Temp table against each schema, Click on Next Button



Step 11:
It will show you a warning that, tablespaces will  be created, Click on Ok



Step 12:
It will create Tablespace, once completed click on Next Button




Step 13 :
Here you will see a summary screen, make note of the Schema names, then click Create.





Step 14 :
You will see a completion summary screen, Click on Close button.




Voila !
You have successfully completed creation of new Schemas for SOA 12.2.1






Here are few related posts, which may interest you

1.Oracle SOA Suite 12c 12.2.1 - Installation for Windows

http://osb-dheeraj.blogspot.in/2016/02/oracle-soa-suite-12c-1221-installation.html

2. Repository Creation Utility (RCU) - Creation of DB Schemas for SOA 12.2.1

http://osb-dheeraj.blogspot.in/2016/02/repository-creation-utility-rcu.html

3. Oracle SOA Suite 12c - SOA Domain Configuration

http://osb-dheeraj.blogspot.in/2016/02/oracle-soa-suite-12c-soa-domain.html