Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Authentication for APEX web service call

Santosh SangaleJan 25 2018 — edited Feb 9 2018

Hi,

I am invoking web service using APEX pl/sql code and passing username and password in code. I don't think this is good approach. Is there any other way I can avoid hard coding credentials in code. Another approach I can think of having db table with those details.

Here is sample,

l_result := apex_web_service.make_request(

            p_url => 'https://adc-fap0828-fa-ext.oracledemos.com:443/publicFinancialCommonErpIntegration/ErpIntegrationService?WSDL',

            p_action => 'http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/ErpIntegrationService/uploadFileToUcm',

            p_envelope => l_envelope,

            p_username => 'scm_impl',

            p_password => 'XXXXXX',

            p_wallet_path => 'file:/u02/oracle/DEMO1226/12.1.0/admin/DEMO1226/cloud_wallet',

            p_wallet_pwd  => 'WalletPasswd123'

            );

Thanks,

Santosh

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2018
Added on Jan 25 2018
3 comments
668 views