Showing posts with label sap adapter. Show all posts
Showing posts with label sap adapter. 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

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter - Part 2

This post is in Continuation with my previous post, You can find Part 1 at:

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter

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







Lets continue with the Further steps


Run Time configurations

To start with Run time configuration, Log in to Weblogic Administration console of your domain.
a. Navigate to: Home >Summary of Deployments >SAPAdapter.
Then click on Configuration tab. Refer below screenshot



b. Then Click on ‘Outbound Connection Pool’ Tab



c. Click ‘Lock & Edit’ in Change Center . Then Click ‘New’ button to create a new Outbound connection.



d. Clicking New button will start a create connection wizard. Select the existing Connection Factory, Then click Next



e. Provide JNDI name same as you have given during Design Time, Then Click Finish button.



f. Expand the Connection Factory by Clicking on ‘+’ button, You will see your new JNDI.



g. Now click on the JNDI name, it will take you to Properties tab. Enter all of the Below properties
and hit enter after each entry. These are same properties which was used during Design time.
UserName (DestinationDataProvider_JCO_USER)
Password (DestinationDataProvider_JCO_PASSWD)
Client (DestinationDataProvider_JCO_CLIENT)
Language (DestinationDataProvider_JCO_LANG)
Application Server (DestinationDataProvider_JCO_ASHOST)
System Number (DestinationDataProvider_JCO_SYSNR)
Gateway Host (ServerDataProvider_JCO_GWHOST)
Gateway Service (ServerDataProvider_JCO_GWSERV)
Program ID (ServerDataProvider_JCO_PROGID)
Connection Count (ServerDataProvider_JCO_CONNECTION_COUNT)






h. Click on the Save button, once all the properties are updated.



i. As you can see in previous screen, now we need to Update the Deployment from using the Plan.xml, Navigate to : Home >Summary of Deployments. Check the box before SapAdapter.



j. After Clicking on Update button, You will see a screen similar to below. Select ‘Update this application in place with new deployment plan changes’ and Check the Plan.xml location. If not correct, then update the location.



k. Click on the Finish Button. After this, Activate the changes from Change Center.



l. Now you can deploy the Integration which was created using Jdevloper in Design Time.
m. Once Integration is Deployed successfully, you can test it using Inbuilt testing console, in Service bus.





If  you want to download, configure and install required files for SAP Adapter, refer below:

Fusion Middleware 12c – SAP Adapter Configuration

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




If you want to create Outbound from Fusion Middleware 12c to SAP then refer my previous Blog Post at :

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter

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

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter - Part 2

This post is in Continuation with my Previous post on this topic, You can find Part 1 at:

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter

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



Now Let's Start with the further Steps:


Run Time Configurations


To start with Run time configuration, Log in to Weblogic Administration console of your domain.

a.       Navigate to:  Home >Summary of Deployments >SAPAdapter.
Then click on Configuration tab. Refer below screenshot



b.      Then Click on ‘Outbound Connection Pool’ Tab



c.       Click ‘Lock & Edit’ in Change Center . Then Click ‘New’ button to create a new Outbound connection.





d.      Clicking New button will start a create connection wizard. Select the existing Connection Factory, Then click Next




e.      Provide JNDI name same as you have given during Design Time, Then Click Finish button.



f.        Expand the Connection Factory by Clicking on ‘+’ button, You will see your new JNDI.




g.       Now click on the JNDI name, it will take you to Properties tab. Enter all of the Below properties and hit enter after each entry. These are same properties which was used during Design time.
UserName (DestinationDataProvider_JCO_USER),
Password  (DestinationDataProvider_JCO_PASSWD)
Client  (DestinationDataProvider_JCO_CLIENT)
Language  (DestinationDataProvider_JCO_LANG)
Application Server  (DestinationDataProvider_JCO_ASHOST)
System Number  (DestinationDataProvider_JCO_SYSNR)






h.      Click on the Save button, once all the properties are updated.




i.         As you can see in previous screen, now we need to Update the Deployment from using the Plan.xml, Navigate to : Home >Summary of Deployments. Check the box before SapAdapter.




j.        After Clicking on Update button, You will see a screen similar to below. Select ‘Update this application in place with new deployment plan changes’ and Check the Plan.xml location. If not correct, then update the location.



k.       Click on the Finish Button. After this, Activte the changes from Change Center




l.         Now you can deploy the Integration which was created using Jdevloper in Design Time.
m.    Once Integration is Deployed successfully, you can test it using Inbuilt testing console, in Service bus.







If  you want to download, configure and install required files for SAP Adapter, refer below:

Fusion Middleware 12c – SAP Adapter Configuration

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



If you want to create Inbound to Fusion Middleware 12c from SAP then refer my previous Blog Post at :

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter

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






Saturday, February 06, 2016

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter

Inbound to Fusion Middleware 12c from SAP

Before we Start to Design and Deploy, We need to Configure SAP JCo library at Jdevloper and at Server level.
For the Steps of Download and configuration, Refer my Previous Blog post at :

Fusion Middleware 12c – SAP Adapter Configuration

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



Once you have completed these steps, Now we can move forward with Developement and Deployment.

Now Using JDevloper 12c IDE, we will create an Inbound integration service. This integration can either be a SOA project or OSB project. For demonstration, we are taking an OSB Project.

 Design Time

The steps to create Service Bus Inbound integration service are :
a. Open JDevloper 12c (SOA Extensions should have been installed.)
b. Since we have already created a Service Bus Application, same can be used.
c. Create a Service Bus Project
d. Drag & Drop SAP adapter from Components palette to Proxy Services Pane, shown Below in image


e. Adapter configuration screen will appear, Enter the Name of the Adapter, Click Next



f. In this step, Enter JNDI Name then Click on the ‘+’ button to add a new SAP Connection, This will Open new Connection window



g. Provide the below required details for connection. These details are given by SAP system
UserName , Password, Client, Language, Application Server, System Number, Gateway Host, Gateway Service, Program ID and Connection Count





h. Click on the Test Connection. If all the provided details are correct, Connection should be successful.



i. Once connection is successful, click on OK button to close connection wizard, then on Next button. The below screen will be shown



j. Expand ‘ALE/EDI’ section and select the IDOC, which you want to use for integration, Then click on Next button.



k. Next is the JCA summary Screen, Click on Next Button.



l. Next is Finish Screen, Click on the Finish Button. The adapter wizard will create one xsd, two wsdl, one jca and one Proxy Service file. As shown below



m. Save all Changes. This integration can not be deployed at this point, because while deploying, it will look for the SAP Adapter JNDI, which we have given at previous Step f. Hence to deploy and run the integration, we need to complete below run time configurations.



Continue with the further steps of configuration in my Next post at:

Fusion Middleware 12c Inbound - SAP Integration using SAP Adapter - Part 2

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

Thursday, February 04, 2016

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter

To Achieve a Integration Between Fusion Middleware 12c Outbound - SAP, First we need to install SAP JCo Library.
For the Steps of Installation, Download and Configuration, refer to my Previous Blog post

Fusion Middleware 12c – SAP Adapter Configuration

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




Now lets Move on with steps for the Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter.
 It can have two High level Steps :

1. Create integration Using Jdevloper for SAP Adapter. (   Design Time Configurations )

2. Deploy to Server and Configure Run time adapter details. ( Run Time Configurations )


  Design Time Configurations

     The steps to create Service Bus outbound integration service are :


a.       Open JDevloper 12c (SOA Extensions should have been installed.)
b.      Create a Service Bus Application.
c.       Create a Service Bus Project
d.      Drag & Drop SAP adapter from Components palette to External Services Pane, shown Below in image







.      Adapter configuration screen will appear, Enter the Name of the Adapter, Click Next



f.        In this step, Enter JNDI Name then Click on the ‘+’ button to add a new SAP Connection, This will Open new Connection window






g.       Provide the below required details for connection. These details are given by SAP system
UserName , Password, Client, Language, Application Server, System Number






h.      Click on the Test Connection. If all the provided details are correct, Connection should be successful.

i.         Once connection is successful, click on OK button to close connection wizard, then on Next button. The below screen will be shown

j.        

k.       Next is the JCA summary Screen, Click on Next Button.







.




















Continue with the steps on next Post at

Fusion Middleware 12c Outbound - SAP Integration using SAP Adapter - Part 2

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