In this post..
I hope to describe how to add a Message Digest to a Business service callout to another Web ServicePossible uses:
- Mainly security purposes
Lets Begin:
This is a two phase process:
- Setting an OSB flow to use the Message Digest
- 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.
- Click on the "Policy's" tab.
- For each service you wish to use the Message Digest you need to do the following on the Operation's request:
- Click the word 'request'
- Click 'add' on the right hand side
- Click on the 'Use custom WS-Policy' and press ok
- A browse button should appear in the bottom right
- In here navigate to the first policy we created and select it.
- Repeat steps 1 - 5 using the second policy instead.
- Notice that a new tab will have appeared next to the "Policy's" one called 'Security', this require's a service-account
- Create a service account, tick the static box.
- Set the username to the username expected, and set the password to the password, Note: this may need to be md5sum'd before hand
- Browse to this service account on the Security tab in step 7.