Posts

How to enable CORS on Axway API & use postman to verify if the CORS is enabled

Image
After a long break from the blog posting, I have decided to start posting again. In this post we will demo how to enable CORS in Axway API Gateway and use Postman to verify whether the Cross-Origin Resource Sharing (CORS) are enabled on the API or not. You need to enable the CORS setting on the API, if you are planning to call the API from javascript which is running in browser. For more details on CORS, please check below links https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS To enable CORS on Axway API By Default, CORS are enabled for all domains for the frontend API in Axway. You can verify the setting on Frontend API -> Inbound -> Advance tab Enable CORS from all domains  If you want to restrict or configure specific CORS setting, you can create the CORS profile on frontend API. Click on CORS profile, Add a new CORS profile, with ORIGIN URL or ALLOWED HEADER's You will need to select the configured profile, please re...

Getting started with Oracle SOA Cloud Service: Deploying First DB Adapter Service on Cloud

Image
In this post we will deploy the simple database adapter service. This service acts like a get Customer service, which pulls the data from Database. Since we already configured the Oracle Database Service, 1, I created a CUSTOMER TABLE in Oracle DB cloud. 2. I created a Datasource in weblogic console point to the DB cloud service. 3. I created the JCA connection in DBAdapter Lib under deployment and upgraded the lib. 4. I Created a simple BPEL process to get the Cust ID and Fetch the Customer Data from Table. 5. Deploy the composite through EM console, same like a on-premise SOA server. 6. Once deployed, test the composite, and you will get the WSDL URL. This URL is over the public domain, so i just added the URL in SOAP UI and tested. http://oc-****.compute.oraclecloud.com:8080/soa-infra/services/MyPartition/GetCustomer/fetchcustbpel_client?wsdl Though it was a simple service I though it will take a bit longer to provide the response, but I see that the respon...

Getting started with Oracle SOA Cloud Service Final Part 3: Configure Oracle SOA Cloud Service Instance

Image
In the Final post of this series, we will explore how to Configure Oracle SOA Cloud Service Instance. We will be using the configuration details of Oracle Storage Container and Oracle Database Service Instance, created in part1 and part2. Follow the below steps to Configure Oracle SOA Cloud Service Instance: 1. Login to My Service Cloud Account. 2. Click on the Menu -> Oracle SOA Cloud Service 3. Click on Create Instance button 4. Oracle SOA cloud provide multiple options to create the SOA instance i.e. whether we just need Service Bus Instance/SOA instance/Service Bus + SOA Instances etc. For this demo, I selected Service Bus + SOA Instance, click Next 5. Select the version i.e 12.1.3 or 12.2.1 As I am working on 12.1.3, I selected 12.1.3 version. and click Next. 6. Next, we need to enter Instance Details Instance Configuration: Enter the Instance Name, Cluster Size Compute Size i.e. 1 or more manage servers Weblog...

Getting started with Oracle SOA Cloud Service Part 2: Configure Oracle Database Cloud Service Instance

Image
In this Post we cover the steps to setup the Oracle Database cloud service instance. The Oracle Database Cloud Service instance is like any normal Oracle Database instance that is accessible and managed over a cloud. Note: For Oracle SOA cloud service we need to create an Oracle Database Cloud Service with both Cloud Storage and Local Storage backup configuration Follow the below steps to Configure Oracle Database Cloud Service Instance: 1. Log in to your Trial My Services Account 2. From Menu on Left Side, click on Oracle Database Cloud Service 3. Click on Create Service Button 4. It will ask to either upload the SSH key or generate the new Key. Make sure you save the SSH key as it is needed to connect later. 5. Next, enter the service name, select the Software Release Version and click Next 6. Next, Select the Compute Shape i.e. how many CPU's and RAM is needed. Since this is a trial I selected 2 CPU with 15GB RAM, which I feel is ...

Getting started with Oracle SOA Cloud Service Part 1: Oracle Storage Cloud Service

Image
In this Post series, we will cover the steps to configure Oracle SOA Cloud Service. Firstly, I signed up for the Oracle Cloud Free Trial Account. The trail account give us 1 month free usage for Oracle Cloud Services. To Sign Up, follow the below basic steps: https://cloud.oracle.com Click on Try It Fill in the required details and submit the trail request. If the validation goes through, you should get the welcome email which will have the My account details and My Services Details. Below are the high steps required to configure Oracle SOA Cloud Service Step 1: Configure the container in Oracle Storage Cloud Service Step 2: Configure Oracle Database Cloud Service Instance Step 3: Configure Oracle SOA Cloud Service Instance Step 1: Configure the container in Oracle Storage Cloud Service Pre-requisite for Oracle SOA Cloud service is to have the Container Details at the time of creating the SOA cloud Instance. Follow the below Steps to create the c...

Encrypt Sensitive Data in Oracle SOA 12c

Image
In this post we will explore the option to handle the sensitive data in SOA composite. For example, Consider a scenario for creating the employee record which has SSN as one of the element. If we do not apply the encryption for this sensitive data, then we might risk compliance issues as this data might be available in Custom Logs/SOA audit logs and visible to anybody. Unlike Oracle SOA 11g, Oracle SOA 12c provide a easy feature to encrypt this sensitive data. To demo, we will create a dummy XSD with two elements i.e. Emp Name and SSN. The composite simply take the Name/SSN as a input and save the data in table. For saving the data in table I just created a DB adaptor. In most of scenario, you might end up calling another system. If we run this simple composite by passing some data, and if we look for the soa instance in EM console, the SSN will be clearly visible. Below are the steps to apply the message encryption from JDEV: 1. Open the composite in JDEV. ...

Passing/Receiving HTTP header in SOA BPEL

Image
In this example we will explore how to pass or receive the parameters from HTTP header. We will explore below two scenarios, To receive the HTTP header from SOAP request. To pass the HTTP header while calling soap service. SOA version used: 12.1.3c To receive the HTTP header from SOAP request: First we need to add the property “oracle.webservices.http.headers” under binding.ws in Service element in composite.xml. This property contains the comma separated parameters that we are expecting in request. Example,  ENV,VERSION. <binding.ws port="http://xmlns.oracle.com/SOA_Learning/HTTPHeader/HTTPHeaderTest#wsdl.endpoint(httpheadertest_client_ep/HTTPHeaderTest_pt)">          <property name="oracle.webservices.http.headers">ENV,VERSION</property> </binding.ws> Now in BPEL source under receive activity, we need add <fromProperties> element which will copy the parameters from HTTP heade...