Friday, November 16, 2012

Testing a secured proxy service from OSB test console

In the previous blogs I had mentioned how to secure a proxy service using the username token policy. In this article I am going to explain how to test a secured service from the osb test console.

Step1:  In the OSB console using the security configuration create a new user account as follows.
                                                    username - test_user
                                                    password - welcome1


Step2 : Now a key store has to be configured in the em console. Prior to that create a key store (testks.jks) as follows


 Step 3: In the emconsole goto the domain and on the right click menu goto Security->Security Provider Configuration



 
  Step 4: Configure the above created key store as follows

 provide the password as welcome1 for every highlighted item

Save and restart the server. The restart is mandatory to effect the changes done.

Step5 : Create a credential key. In the em console goto the domain->rightclick->Security->Credentials
Step6 : Create a Security Map called oracle.wsm.security , if it not existing

Under this map create a new security key as follows


Now we are ready to test the OSB service from the test console. Open the test console
In the override attribute section provide the security key as test_user and then click the execute button.

Now we can see a SOAP Header is attached to the request and the service executed successfully.




No comments:

Post a Comment