Posts

Showing posts from March, 2016

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 header to BPEL variable.

Configuring REST service in SOA using HTTP Adapter - GET/POST

Image
In this example, we will explore how to configure REST service in SOA for both GET and POST request. For this example, we will create a XSD which takes firstname and lastname as input and returns Full Name as output. First, we will create a new project call, RestNamingService. Our XSD will look like below: <?xml version="1.0" encoding="windows-1252" ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org"             targetNamespace="http://www.example.org" elementFormDefault="qualified">   <xsd:element name="request">     <xsd:annotation>       <xsd:documentation>A sample element</xsd:documentation>     </xsd:annotation>     <xsd:complexType>       <xsd:sequence>         <xsd:element name="firstname" type="xsd:string"/>         <xsd:element name="lastname"

Oracle SOA suite Packaging

Image
In this post we will go through some basic steps to automate the daily tasks i.e. compilation and deployment of SOA projects. In order to deploy the SOA projects on server we usually follow below two approaches: 1. Compile and Deploy using JDEV 2. Compile and Export the SAR using JDEV. Deploy using EM console. The above is adopted in development phase. In testing and production we need to automate this deployment activities in order to avoid any human error. SOA suite provide us the ANT scripts to perform this tasks. This same scripts are used by JDEV to perform the task like deploy/compile etc. We will now go show the steps to use some basic commands: I am using Oracle SOA 12c environment. Pre-requisites: Configure the ANT_HOME, JAVA_HOME and PATH variables.   1.    ANT_HOME = (MIDDLEWARE_HOME)\Middleware\Oracle_Home\oracle_common\modules\org.apache.ant_1.9.2.    PATH=%PATH%;(MIDDLEWARE_HOME)\Middleware\Oracle_Home\oracle_common\modules\org.apache.ant_

Oracle BPM 12c Process Asset Manager Feature

Image
In this post we will cover Oracle BPM 12c feature called PAM i.e. Process Asset Manager. The PAM allow seamless collaboration between multiple participants in BPM like Business Analyst and BPM developer. It allow us to share the BPM artifacts seamlessly between BPM process composer and BPM Studio (JDEV). The artifacts are maintain in in-built SVN. To illustrate in more details let’s take an example: As a part of BPM process analysis and implementation, Business Analyst design the process in BPM composer. Once the process is completed from BA, it is given to Developer for implementation. During implementation, there can be multiple to and from between Developer and the BA. Thus the latest BPM artifact need to be available to both users i.e. BPM composer users and BPM studio users. In below example we will see how the process created in BPM composer can be shared with BPM studio user using PAM. 1. Login to BPM composer 2. Create a new space “order” 2. Clic