Oracle service bus provides a built in security feature which can be used to protect the web service.
In this exercise we will see one of the security feature to secure our web service with user id and password.
Following document provides an overview of security feature of OSB
http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/security/model.html
Now in order to set up a security feature we will first use the sample HelloWorld service and use security feature.
Now go to your project explorer and click on the proxy service that you have.
Now go to the Security tab and click on the Transport configuration
It will come up with the following page and click on the condition.
Now in the next screen provide the itcredential as user
Now say next and in the next page specify the username as argument and add it to the argument name.
Now once you will say finish you can see the user specified for the web service as shown below.
Now you can access the wsdl using the following link
http://host:port/endpointurl?wsdl
Now in order to test how this security feature work we will use any testing engine like soap ui.Create a simple project and use this wsdl to initiate a process as shown below.
Now once you will see ok it will ask for user id and password this is because we have specified the security feature as user password but we have not created any user and password.
So now you need to create a user id and password in order to test this service.
So this is how i will create a user id and password
No comments:
Post a Comment