HTTP Basic Auth Protected Services using Web Service Data Control

Posted by vishal.s.jain(at)oracle.com on Oracle Blogs See other posts from Oracle Blogs or by vishal.s.jain(at)oracle.com
Published on Tue, 08 Feb 2011 14:33:10 +0530 Indexed on 2011/02/08 23:31 UTC
Read the original article Hit count: 566

Filed under:
|
With Oracle JDeveloper 11g (11.1.1.4.0) one can now create Web Service Data Control for services which are protected with HTTP Basic Authentication.
So when you provide such a service to the Data Control Wizard, a dialog pops up prompting you to entry the authentication details:

WSDCHTTPAuthDialog.jpg

After you give the details, you can proceed with the creation of Data Control.
Once the Data Control is created, you can use the WSDC Tester to quickly test the service.In this case, since the service is protected, we need to first edit the connection to provide username details:

EditWSDCConn.jpg


Enter the authentication details against username and password.

EditWSDCConnDialog.jpg

Once done, select DataControl.dcx and using the context menu, select 'Run'.

StartTesterDialog.jpg


This will bring up the Tester.On the Tester, select the Service Node and using context menu pick 'Operations'. This will bring up the methods which you can test:

WSDCTesterDialogWithOps.jpg

Now you can pick a method, provide the input parameters and hit execute to see the results.

WSDCTesterDialogWithOpsExecute.jpg


© Oracle Blogs or respective owner

Related posts about adf

Related posts about webservices