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

Removing files from a database based MDS

When you are the MDS of the SOA Suite you probably added some files by mistake which where not mend to be in there. If it is a file based MDS…..no problem. Just delete them from the file system. But when it is a database based MDS, you have to do a bit more. One way is to use WLST to remove the files. Go to MIDDLEWARE_HOME/Oracle_soa1/common/bin and start wlst.sh. Continue ReadingRemoving files from a database based MDS

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

Checking SSL connection using Java

Sometimes SSL issues are the worst there are. Unreadable logging, strange codes and other unprehencible messages. There is a simple way to check if your 1-way SSL is being setup correctly using Java. Here is how it works: The first thing we have to do is to write a class which makes a simple HTTP request to a HTTPS url. This would look something like this: package nl.redrock; import java.io.BufferedReader; Continue ReadingChecking SSL connection using Java

Using JDeveloper to deploy to weblogic over SSL

When you start working with the SOA Suite 11G the server has a default keystore set. Connecting to this setup over HTTPS usually doesn’t give any problem as the CA’s used are generally trusted by default by the JDK used. One of the things you maybe are going to encounter when you equip your server with a genuin certificate with CA’s in the chain which are not trusted by default, Continue ReadingUsing JDeveloper to deploy to weblogic over SSL

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