Skip to main content

Oracle SOA 12C rest adapter with Custom HTTP headers

Most existing web applications are connected through web services, which are commonly known as SOAP services. More and more users are relying on mobile devices for communication, and they’re looking for lighter ways to access enterprise information on the go. REST services are the answer for the mobile device platform, because they get rapid responses and fast access to data.

Oracle SOA Suite 12c provides a complete set of service infrastructure components for designing, deploying, and managing composite applications. Oracle SOA Suite 12enables services to be created, managed, and orchestrated into composite applications and business processes.

Some time we have need to send HTTP headers in REST service, In OSB we use header component and add what ever is needed but in oracle SOA 12C it's little bit different. Let see how we can do it.


  1. Create one SOA Application.
  2. Create one SOA Sample project inside SOA Application.
  3. Go to composite and drag drop REST adapter.
  4. Configure everything as per you need to input/output etc like.
     5.Design one BPEL.
     6.Add an invoke activity inside BPEL and call this REST adapter from it.
     7.Now we need to add custom HTTP property invoke activity.
   8. Click on add button and scroll down to REST adapter properties.
   9.Click on any rest adapter property and map your value with it.
   10.Click OK.
   11. Go to BPEL.XML and search for newly added rest adapter property.
   

   12. As you can see i replaced Accept with "Authorization", Just add all HTTP custom headers in same way and it's ready to use.





Comments

  1. The article provided by you is very nice and it is very helpful to know the more information.keep update with your blogs
    Oracle SOA Online course Bangalore

    ReplyDelete
  2. The authorization field is not editable as property. As much as it is sent, it is not received in the header, any other yes. This example does not really work to manipulate the authorization field. How does it work for you?

    ReplyDelete
  3. Hi,
    when I am trying to capture the custom location property in return I am getting null value.Please see below property that I am using to capture from a invoke
    "<bpelx:fromProperty name="rest.binding.http.location" "

    Please advise the custom property to capture the location.

    ReplyDelete
  4. Hi Sandeep,

    I am new in BPEL ,SOA and want to use webservice. I need your help? Can you help me out in achieving one functionality?

    Regards,

    ReplyDelete
  5. Thanks a lot for sharing a great blog with a lot of information bout ORACLE keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.

    ReplyDelete
  6. Thanks a lot for sharing a great blog with a lot of information about ORACLE keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.
    Oracle SOA Training
    Oracle SOA 12c Training
    Oracle soa online training
    Oracle soa course
    oracle soa suite training

    ReplyDelete
  7. Thanks a lot for sharing a great blog I was browsing through the internet looking for Oracle SOA and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information blogs about Oracle SOA at Oracle SOA Blogs. Bookmarked this page, it helped me a lot and I have gained a lot of knowledge by reading your blog and Oracle SOA Training

    ReplyDelete
  8. Hi there! It is a very interesting blog on SOA topic. I was surfing through the internet for Oracle SOA interview questions and came across your blog. You definitely have a good understanding of the topic. You can find more information on Oracle SOA training here.

    ReplyDelete
  9. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle APEX , Oracle Cloud . Actually I was looking for the same information on internet for Oracle HCM Cloud and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more aboutOracle Project Portfolio Management (PPM) Cloud . By attending Oracle Financials Cloud .

    ReplyDelete
  10. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Interview Questions and Answers
    . Actually, I was looking for the same information on internet for
    Oracle SOA Training and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.

    ReplyDelete
  11. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp a great deal more around this condition. and I could assume you are an expert on this subject. Same as your blog i found another one Oracle Taleo .Actually I was looking for the same information on internet for Oracle Taleo and came across your blog. I am impressed by the information that you have on this blog. Thanks a million and please keep up the gratifying work.

    ReplyDelete

  12. I think Tableau provides the base for solving the most complex IT problems. Tableau provides the way for solving many database operations.

    Tableau Soap Connection

    ReplyDelete
  13. Thank you for sharing wonderful information with us to get some idea about it.
    Oracle OSB Training
    OSB Online Training Hyderabad

    ReplyDelete
  14. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
    SOA Online Training
    Oracle SOA Suite Training

    ReplyDelete

Post a Comment

Popular posts from this blog

Solution for BPM standard dashboard & activity guide not working in Oracle SOA 12.2.1.0 C

As earlier i publish a post about different issue of Oracle BPM, After some oracle support i got to fixed them. Issue Blog Here... Issue 3:BPM 12.2.1 process workspace activity guide not working. if you have a normal BPM Process, then this is the issue. In order to have data populated in "Activity Guide" firstly you should create a BPMN Guided Business Process. Below you can find the documentation about activity guide and how to create a Guided Business Process: https://docs.oracle.com/middleware/1221/bpm/bpm-develop/GUID-F765955D-90A5-48D4-8D2A-2F01FBB539E3.htm#BPMPD901 And here is specified: " A Guided Business Process is modeled as an activity guide that is based on a business process. The Activity Guide includes a set of Milestones. A milestone is a contained set of tasks that the end user has to complete. A milestone is complete when the user successfully runs a specific set of tasks in the milestone. " And in the below chapters you will find the ...

Dynamic Routing in OSB 12C

Dynamic Routing in OSB cab be used when the BusinessService endpoint required to be determine at runtime in message flow. Consider a scenario where OSB has to route the incoming requests to 2 different services based on the CustomerType element value sent in the payload. So create a XQuery resource with the following contents. Observe that we are using the absolute path of business service in configuration as required by dynamic routing. Following is the XML schema that we use:>>  Customer.xsd <?xml version="1.0" encoding="windows-1252" ?> <xsd:schema targetNamespace="http://xmlns.oracle.com/schema/Customer" xmlns:xsd="http://www.w3.org/2001/XMLSchema"             xmlns:ns1="http://xmlns.oracle.com/schema/Customer">   <xsd:complexType name="Customer">     <xsd:sequence>       <xsd:element name="CustomerId" type="xsd:string"/>       <xsd:elemen...