Showing posts with label Enterprise Service Bus. Show all posts
Showing posts with label Enterprise Service Bus. Show all posts

Thursday, May 04, 2017

Securing OSB Proxy Service using OWSM : Simple guide

Service Bus is integrated with Oracle Webservices Manager (OWSM) that provides several out of the box security policies. You can use any of these OWSM policies to secure your Proxy Services based on requirements. Here in this post, you will use oracle/wss_username_token_service_policy policy to secure Proxy Service.
Steps Summary :
1.    Create Users who needs access
2.    Add policy to Service
3.    Test and Validate

Login to Admin Console and click Security Realms in Domain Structure.




Click myrealm as shown below.




Navigate to Users by clicking on Users and Groups tab.




Click New and enter credentials as shown below.



Click OK. 
Observe that new user has been created which can be used to invoke Proxy Service.







Go to sbconsole. Create a new session. Navigate to All Projects –> <<your project>> and open the Proxy service to bring up a new tab as shown below.




Click Security and choose the option as shown below.



Click Attach Policies icon (highlighted above) and select the policy as shown below and click Attach.




Click OK and observe that selected policy is shown up as shown below.


Save your changes in current tab and activate the session.


You can use SOAPUI or SBConsole Test service for testing.
Open request editor for any of your Proxy Service operations and paste the following in SOAP header. This represents the WS-Security header and is expected by OWSM policy i.e. attached to Proxy Service.

Test using wrong credentials or without security header and observe the output showing security error.



Test using credentials created in first section and observe the output.
Add below header to your request, You can see username and password fields below.
                                                              
<soap:Header>
                <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                                <wsse:UsernameToken wsu:Id="UsernameToken-F7A4A73DA710AE195C14938940405155">
                                                <wsse:Username>dheeraj</wsse:Username>
                                                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">webic123</wsse:Password>
                                                <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">T36cJsRsgb5IzQyyy/Yskw==</wsse:Nonce>
                                                <wsu:Created>2017-05-04T10:34:00.515Z</wsu:Created>
                                </wsse:UsernameToken>
                </wsse:Security>
</soap:Header>






That’s all.




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






Oracle SOA Suite 12c - OSB Domain Configuration part 2

This post is in continuation with previous post, you can find part 1 at :

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


Lets continue with domain creation steps



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 OSB 12c Domain.





In case you want to go through the steps for SOA domain, refer my previouspost here:

Oracle SOA Suite 12c - SOA Domain Configuration

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





Sunday, February 14, 2016

Oracle SOA Suite 12c - OSB Domain Configuration

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

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

Oracle SOA Suite 12c 12.2.1 - Installation for Windows

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




Lets Start with OSB Domain Creation

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
E.g
D:\Oracle_Home\SOA12c_Home\user_projects\domains\OSB_domain





Step 4:
Select Oracle Service Bus, it will automatically choose all the required apps.
Then click on Next button



Step 5:
Provide location for the Applications, or keep the default location. Then click Next



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.com/2016/02/repository-creation-utility-rcu.html





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








Continue Learning Steps of Domain creation in my Next Post at

Oracle SOA Suite 12c - OSB Domain Configuration part 2

http://osb-dheeraj.blogspot.com/2016/02/oracle-soa-suite-12c-osb-domain_17.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



Sunday, February 07, 2016

Oracle SOA Suite 12c 12.2.1 - Installation for Windows

Here I am discussing Installation of Oracle Service Bus 11g, in windows OS machine.
First question comes to mind is, What all do we need ?
Answer is pretty simple:

A windows 64 Bit OS with
1. 300 Mhz or Faster Processor(I'm sure , you have it)
2. 2 GB of RAM
3. 5 GB of available Hard Disk Space
4. 512 MB or More SWAP and TEMP space.
5. 64 Bit JDK installed. (JDK install folder name should not have any Space in Naming. E.g "C:\Program Files\Java" can not be used )

Note : SOA Suite 12.2.1 can be installed only on 64 Bit OS and 64 Bit JDK.

Download the installers from Oracle OTN at :
http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html

If you have purchased licence from Oracle, then this can also be downloaded from Oracle eDelivery portal.

Once downloaded, you will have two files :
fmw_12.2.1.0.0_soaqs_Disk1_1of2.zip
fmw_12.2.1.0.0_soaqs_Disk1_2of2.zip

Unzip the both the files, you will get two files named as :
fmw_12.2.1.0.0_soa_quickstart.jar
fmw_12.2.1.0.0_soa_quickstart2.jar

Put these files in a Folder, which does not have any space in Names.
E.g
D:\SOA_12c


Lets Start with Installation

Step 1: Open Command Prompt as Admin. Navigate to folder where installers are placed.



Step 2:
Write below command, then hit Enter
C:\Java\jdk1.8.0_73\bin\java -jar fmw_12.2.1.0.0_soa_quickstart.jar



You will see a message like this, and after sometime Installation Wizard will start



Step 3:
Launcher will look like this, Click on Next button



Step 4:
For update Setting, Choose 'Skip Update' then Click Next



Step 5:
Provide Install location, Known as 'Oracle Home' Then Click Next



Step 6 :
Next is Pre requisite Check window. SOA 12.2.1 is certified for Windows 8, 8.1, 10
Windows 7 is not certified, But can be installed in windows 7 as well.
Click on Next Button, to continue with install process



Step 7:
Click on Install button, This will start Installation, It may take some time depending upon your Machine.
Once completed, Click on Finish button.




Thats all folks, You have successfully installed SOA 12.2.1

The Major features that was installed are :
  • SOA Core Components 12.2.1.0.0
  • SOA Process Monitoring 12.2.1.0.0
  • Service Bus 12.2.1.0.0
  • Oracle Enterprise Scheduler 12.2.1.0.0
  • BAM Components 12.2.1.0.0
  • Managed File Transfer Interface 12.2.1.0.0
  • Event Processing 12.2.1.0.0
  • Thirdparty JDBC Drivers 12.2.1.0.0
  • WebLogic Evaluation Database 12.2.1.0.0
  • Core JDeveloper 12.2.1.0.0
  • SOA Foundation Designer 12.2.1.0.0
  • Service Bus Designer 12.2.1.0.0
  • Event Processing Designer 12.2.1.0.0
  • Enterprise Scheduler Designer 12.2.1.0.0
  • JDeveloper Spring Extension 12.2.1.0.0
  • Fusion Middleware Maven Support 12.2.1.0.0
  • Administration Console 12.2.1.0.0
  • Administration Console Additional Language Help Files 12.2.1.0.0
  • JRF Full 12.2.1.0.0
  • Core Application Server 12.2.1.0.0
  • WebLogic Server Essential Components for Developers 12.2.1.0.0
  • Coherence Product Files 12.2.1.0.0
  • Coherence JavaDoc 12.2.1.0.0
  • Web 2.0 HTTP Pub-Sub Server 12.2.1.0.0
  • WebLogic SCA 12.2.1.0.0
  • WebLogic Client Jars 12.2.1.0.0
  • Oracle WebLogic Communication Services 12.2.1.0.0
  • Enterprise manager Plugin for SOA 12.2.1.0.0
  • Enterprise manager Plugin for ESS 12.2.1.0.0
  • Enterprise manager Plugin for Service Bus 12.2.1.0.0
  • Enterprise manager Plugin for BAM 12.2.1.0.0
  • OPatch 13.3.0.0.0
  • Server Examples 12.2.1.0.0
  • SOA Composite Examples 12.2.1.0.0
  • Service Bus Examples 12.2.1.0.0 



Here are the Steps for Domain Configurations:


1. Oracle SOA Suite 12c - SOA Domain Configuration

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


Step for the RCU:

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