ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 119 - Certified Platform Developer II discussion

Report
Export

A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication.

What code should the developer use to authenticate?

A.
Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)
Answers
A.
Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)
B.
stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')
Answers
B.
stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')
C.
Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
Answers
C.
Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
D.
stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')
Answers
D.
stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')
Suggested answer: B
asked 23/09/2024
Adrian Mark
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first