Setting up a Message Digest (OSB)


In this post..  

I hope to describe how to add a Message Digest to a Business service callout to another Web Service 

Possible uses:

  • Mainly security purposes

Lets Begin:

This is a two phase process:
  1. Setting an OSB flow to use the Message Digest
  2. Setting up the Weblogic domain to enable Message Digest

Phase 1 - OSB flow

First of all, you will need to create a couple of 'WS-Policy-File':

The first one should contain: 

The second one should contain:

Next, we create the business service that will be using these WS-Policy-Files.
  1. Click on the "Policy's" tab.
  2. For each service you wish to use the Message Digest you need to do the following on the Operation's request:
    1. Click the word 'request'
    2. Click 'add' on the right hand side 
    3. Click on the 'Use custom WS-Policy' and press ok
    4. A browse button should appear in the bottom right 
    5. In here navigate to the first policy we created and select it.
    6. Repeat steps 1 - 5 using the second policy instead.
  3. Notice that a new tab will have appeared next to the "Policy's" one called 'Security', this require's a service-account
  4. Create a service account, tick the static box.
  5. Set the username to the username expected, and set the password to the password, Note: this may need to be md5sum'd before hand
  6. Browse to this service account on the Security tab in step 7.