Friday, November 2, 2012

Invoking a web service with HTTP Basic authentication – OSB 11g

Invoking a web service with HTTP Basic authentication – OSB 11g:


To invoke the webservice that is protected with basic authentication, the Service account needs to be created and attached to the outbound business service (the service that calls the webservice)
This post explains the steps required to invoke the basic authentication enabled service.

Steps to invoke the basic authentication enabled service

  • Login to sbconsole
  • Create the Service AccountA service account provides a user name and password that proxy services and business services use for outbound authentication or authentication to a local or remote resource, such as an FTP server or a JMS server. For example, if a business service is required to supply a user name and password for transport-level authentication with a Web Service, you create a service account that specifies the user name and password and then you configure the business service to include the service-account credentials in its outbound requests.
  • Select Project Explorer and then select a project or folder in which to add the service account
  •  From the Create Resource drop-down list, select Service Account to display the Create a New Service Account page

    • To create a service account that provides the user names and passwords that it receives from incoming client requests, select Pass Through.
    • To create a service account that provides a user name and password that you save with the service account configuration, select Static.
    • To create a service account that maps the user name from one or more authenticated clients to user names and passwords that you specify, select Mapping.
                This scenario I have chosen the static option to provide the predefined username/password.

  • Click Last and Finish.
  • Create the Business Service that invokes the webservice and select the Authentication as Basic and Service Account as Security/UserToken.

  • Create a proxy service that invokes the Business service created in the previous step.

Test the Proxy service:

Correct username and password.

Wrong username and password.




5 comments:

  1. Great job!! I really appreciate your work.Thanks for sharing.Keep it up......

    ReplyDelete
  2. great info!!! really great surfing for me, Thanks a lot...

    ReplyDelete
  3. Nice information. I must have to say this is one of the most interesting topics for me. Thanks & Keep Sharing…

    ReplyDelete