Tuesday, November 18, 2008
















Calling a WS-Security secured web service from Oracle BPEL

Oracle provides a nice guide to show you how to secure a web service using the Oracle Web Service Manager here. So how do you call this WS-Security enabled web service? Easy, just follow the following steps:

1. Import the secured wsdl as a partner link.

2. Go to the properties tab, and add the following properties:

  • wsseHeaders - Property Value : credentials
  • wsseUsername - Property Value : your_webservice_username
  • wssePassword - Property Value : your_webservice_password

3. Click ok.
4. Thats it, you can now call the partner link with an invoke and map all the fields you require.

5. The BPEL process can now be deployed.

Update:
If the source service uses http for authentication method, use in your properties tab:

  • basicHeaders - Property Value : credentials
  • basicUsername - Property Value : your_webservice_username
  • basicPassword - Property Value : your_webservice_password


4 comments:

Unknown said...

Thanks for the post. I tried to do as you suggest. On compilation I get three warnings for each of the headers. The warnings are in this form:
"property wsseHeaders may not be understood by BPEL component....it will most likely be ignored"

"property wsseUsername may not be understood by BPEL component....it will most likely be ignored"

"property wssePassword may not be understood by BPEL component....it will most likely be ignored"

On deployment the unauthorised error persists.

Marinus Snyman said...

If you can send me your process I can take a look?

Unknown said...

transformation

















name
password









transformation

sap project management said...

This post include very interesting topic which is new for me as well but I like it as it deals with the security of web-services. I able to apply these security measures with the help of the given steps in your post. Thanks.