Pages - Menu

Saturday, September 14, 2013

BBS Project - ADF Web Services - BSL || Oracle SOA

Today, i will go inside, and start to build the first steps of our BBS Project, and we will use the xsd file created in First Steps Article.
- Resources Required.
  • Complete SOA Infrastructure - 11.1.1.5, More.
  • JDeveloper & SOA & BPM Extension - 11.1.1.5.
- Start to Build SOA Application with name “BANK-03" using "SOA Application Template”.
- Project Name “BANK-03” using SOA & BPM Technologies.
- BPEL Process using Ver 2.0 with name “BPELProcess” and same to service name and Clear Namespace and sure we need to expose SOAP service.
- Default xsd file generated contains Process & ProcessResponse as a Request & Response.
- Now , modify the xsd source with the xsd source we have in last Article
Note : save the old name space before overwrite old source, Reason : as we will use it to update our new source from our XSD file (as you see in the image below)
- as we know from the SOA structure, all xsd file deals & extracted as messages in WSDL file, so we have to Enhance the WSDL file to use the new structure instead of the old one for (Messages,Process,Ports & Partner Links).
- Remove any Messages & Ports (Default Structure) and start to Drop our 2 Main Elements “Bank Request & Bank Response from XSD Structure in Message Part of WSDL” naming as “Bank-Request-Message” & “Bank-Response-Message”.
- Build your First port and Process to include the both Messages as Input & Output, naming the process as “Loan-Process
- Modify Source of Partner Link Type to rename role to be “Loan-Process”.
- Now you can see the reflections of WSDL modifications in BANKBPEL_ep Service, but what about the main components of BPEL process ?.
- Port Type already Reflected in main web service.
- you have to choose My Role in BPEL Partner Link of Service.
- you have to modify and map the main default 2 variable “inputVariable & outputVariable" to use "Bank-Request-Message & Bank-Response-Message" in WSDL file as types.
- Receive & Reply Activities already Reflects the modifications of WSDL file.
- Now : the question, how to test to know “everything ok ? “.
Answer : i will use simple Assign Activity to Transfer Data between Recieve & Reply Activity.
Note : Assign Activity, it is very simple Component to transfer Data & make some Data Processing (we will use many times in the future, but today we will use for test purpose).
- drop Assign Activity naming “Test-Assign-Activity”.
- Double Click on Assign Activity , you will see Vadiables access all Elements of xsd file, now transfer between Requested Amount (Source) & Approved Amount (Destination) - just for testing.
- Drop Function utility to use Current-date from Date Functions in Response Date Element (Destination) - Just For Test.
- Drop Function utility to use Concat from String Functions in Message Element (Destination) - Just For Test.
- Assign Source : very simple !!

- Now Let us prepare for the deployment step, Create SOA Bundle.
- Name of Deployment Profile is “BANK-03”.
- Check Dependencies to include BANK-03 in the deployment profile.
- Start Deployment Process for SOA server.
- Check Overwrite any composists with the same revision id.

- Now , Test Phase, go to weblogic Enterprise Manager. Under SOA Folder , u will found your Project with Test Facility
- Put Your Values for Required Parameters & Press Test Button
- Result Comes as we designed before using Test Assign component
Note : Result comes in the form of Tree, XML view and also you can check the Train of the process until end containing values results and operations made.
<env:Envelope xmlns:env=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:wsa=”http://www.w3.org/2005/08/addressing”>
    <env:Header>
        <wsa:MessageID>urn:E52FB070ED2B11E1BF0665496D602DC3</wsa:MessageID>
        <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
        </wsa:ReplyTo>
    </env:Header>
    <env:Body>
        <Bank-Response xmlns=”http://xmlns.oracle.com/BANK_03/BANK_03/BPELPROCESS”>
            <Client-Name/>
            <Approved-Amount>1000</Approved-Amount>
            <Currency/>
            <Status/>
            <Response-Date>2012-08-23</Response-Date>
            <Message>your loan request under 1st soa application successfully tested for account no : 224000000</Message>
        </Bank-Response>
    </env:Body>
</env:Envelope>
- when you start to test, you will see the port,Service & Operation you designed, and finally you see WSDL URL & Endpoint url you can use any where to start.
- BBS Project Plan until now ..
Soon, we will go to Technical second step to improve the process with our Technical Facilities to cover Banking Business of Banking Business Services Project.?

7 comments:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here.
    Kindly keep blogging. If anyone wants to become a Java developer learn from Java EE Online Training from India.
    or learn thru Java EE Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.

    ReplyDelete
  2. Learned a lot of new things from your post!
    It's amazing blog
    Oracle SOA Online Course

    ReplyDelete