Building a simple service using Oracle Service Bus 12C

OFM

Oracle released their new 12C edition of Oracle Fusion Middleware so lets have a look at some of the changes. We are going to make a simple Service Bus project which will take two currencies as input and will return the exchange rate. I installed locally Weblogic 12C and created a base domain. For a brief description how to install SOA Suite 12C see here. After you have installed weblogic, Continue ReadingBuilding a simple service using Oracle Service Bus 12C

Dynamic routing in the OSB

In this post I will show how it is possible to make a dynamic routing in the OSB. You can use this if you need to route to different BusinessServices dependant of information you have. First we have to create a ProxyService CustomerService. As a last step insert an Routing element with a Dynamic Routing in it. We also create 2 BusinessServices where BS_CustomerA calls customers A service and BS_CustomerB Continue ReadingDynamic routing in the OSB

Converting JSON to XML in the OSB when consuming a REST service.

In my previous post I showed you how you could consume the Google Geo service using the OSB. In that example we used XML as the return format. It was also possible to return JSON. JSON stands for JavaScript Object Notation and is smaller then XML and faster en easier to parse. The JSON text format is syntactically identical to the code for creating JavaScript objects. That is why it Continue ReadingConverting JSON to XML in the OSB when consuming a REST service.

Consuming Google Geo REST service using the OSB

In this article I will explain how you can make use of the Google Geo Service API using the OSB. Check out this page to see what we can do with this API. Basically it makes it possible to enter address details and Google comes up with the geographical details including longitude and latitude if Google can find it. The result can either be returned as JSON or as XML. Continue ReadingConsuming Google Geo REST service using the OSB

Using Jenkins to test your OSB/SOA Suite services

This is a very short post on how you can test your webservices build in the OSB or SOA Suite. We are going to use SoapUI for our tests, Maven for our build process, SVN as our repository and Jenkins as our Continuous Integration server. First we need a service which we want to test. Lets use a very simple Hello service. All this service does is greet the user. Continue ReadingUsing Jenkins to test your OSB/SOA Suite services

Add cookie to service callout using the OSB

It might be possible that you want to send a cookie along with a service callout. You can add a Transport Header action to your callout to add a header but I found out that you can’t just input a String in there. You have to insert a cookie-values fragment. You can accomplish it by doing this. First insert you Transport Header. Next select the ‘Add header’ button and select Continue ReadingAdd cookie to service callout using the OSB

Deployment trouble using OEPE to deploy to the OSB (Could not perform unpadding: invalid pad byte)

It might happen that you are using OEPE and that you want to deploy to the OSB server but when you try to do this, you recieve the ‘Error creating configuration jar’. When you look at the detail of the error it wil say this: Caused by: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte. The easiest workaround is just to delete your old OSB configuration project and create a Continue ReadingDeployment trouble using OEPE to deploy to the OSB (Could not perform unpadding: invalid pad byte)

Deployment trouble using OEPE to deploy to the OSB ( _binary/SessionData/singleton (No such file or directory) )

When you use OEPE to deploy to the OSB, you might run into this problem during deployment: .FileNotFoundException: /oraclesoa/Middleware/user_projects/domains/MY_DOMAIN/osb/config/sessions/ALSB_IDE_Internal_PublishOp_1313998-1275/_binary/SessionData/singleton (No such file or directory) This problem occurs when your session is invalid or been corrupted. You can fix this by going to MY_ORACLE_HOME/user_projects/domains/MY_DOMAIN/osb/config/sessions/ and remove or rename the directory involved. After this, restart your managed server and the problem should have been fixed.

Using Java and Spring to connect to an Active Directory

You might find yourself in a position where you want to add, edit or delete accounts in your Active Directory. The OSB itself doesn’t have an adapter for it so how do you resolve this? One of the options is to write a custom java library, add it to your domain and invoke it using a java-callout. Let’s start by making a simple Java project making use of Maven and Continue ReadingUsing Java and Spring to connect to an Active Directory