What code should the developer use to authenticate?

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!)
B . stub.inputHttpHeaders_x.put(‘Authorization’ , ‘Basic QthZGprJpchVulHNchFtZQ’)
C . Http.setAuthentication(‘Basic QthZGprjpchVulHNchFtZQ’)
D . stub.authentication.put (‘Authorization’,’Basic QthZGprjpchVulHNchFtZQ’)

Answer: B

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments