What code should the developer use to authenticate if a developer has - ProProfs Discuss
Topics
Products
Follow Us:

What code should the developer use to authenticate if a developer has generated Apex code from a WSDL for an external web service and the web service requires basic authentication?



A. Http. setHeader ( Authorization , Basic QthZGprjpchVuIHNchFtZQ== );
B. Stub . inputhth-Ieader3_x.put ( Authorization , Basic QthZGprjpchVuIHIQchE‘tZQ:
C. Http. setAuthentication( Basic QthZGprjpchVuIHNchFtZQ:
D. Stub.authentication.put ( Authorization , Basic QthZGprjpchVuIHNchFtZQ==

This question is part of PD2
Asked by Pal, Last updated: Jul 07, 2020

+ Answer
Request

3 Answers

R. Jones

Curious about the World

R. Jones, Student, Postgraduate, Calgary

Answered May 17, 2019

The correct answer to this question is B, Stub . inputhth-Ieader3_x.put (Authorization, Basic QthZGprjpchVuIHIQchE‘tZQ: This code would be used on the cloud-based software, Salesforce. In this software, an apex code is a typed, object-oriented programming language that is strong.

The Apex code is used by developers, which allows them to execute transaction control statements and execute the flow. It is used in the Lightning platform. Apex codes can be stored in two different forms. The first is a class, which is a blueprint where Apex objects are created. The second is a trigger, which is executed before or after DML, which is data manipulation language.

 

devilzP

DevilzP

Answered Apr 05, 2018

Stub . inputhth-Ieader3_x.put ( Authorization , Basic QthZGprjpchVuIHIQchEtZQ:

 

Pal

Pal

Answered Jan 13, 2018

Stub . inputhth-Ieader3_x.put ( Authorization , Basic QthZGprjpchVuIHIQchE‘tZQ:
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.