MB-820 · Question #114
You plan to call a web service by using the data type HttpClient from a Business Central AL extension. You must provide the following implementation for the web service call: - The web service must…
The correct answer is B. HttpClient.AddCertificate(Certificate: SecretText, Password: SecretText). You plan to call a web service using HttpClient from a Business Central AL extension. The web service must authenticate using a certificate that includes a password, and the password must be hidden during debugging. The question asks for the correct implementation where the…
Question
You plan to call a web service by using the data type HttpClient from a Business Central AL extension. You must provide the following implementation for the web service call:
- The web service must authenticate the client with a certificate.
- The certificate must include a password.
- The password must be hidden when you debug the code
You need to include the certificate in the web service call. Which instruction should you use?
Options
- AHttpClient.AddCertificate(Certificate: Text, Password: Text);
- BHttpClient.AddCertificate(Certificate: SecretText, Password: SecretText);
- CHttpClient.AddCertificate(Certificate: Blob, Password: SecretText);
- DHttpClient.AddCertificate(Password: SecretText);
How the community answered
(34 responses)- A9% (3)
- B74% (25)
- C3% (1)
- D15% (5)
Explanation
You plan to call a web service using HttpClient from a Business Central AL extension. The web service must authenticate using a certificate that includes a password, and the password must be hidden during debugging. The question asks for the correct implementation where the certificate and password are provided and where the password is hidden when debugging. SecretText is a special data type in Business Central that hides sensitive data (like passwords) during debugging.
Topics
Community Discussion
No community discussion yet for this question.