Oracle Field Service Cloud Service 2023 Implementation Essentials — Question 4
CSV-formatted data has been extracted from ERP Cloud by invoking a web service using the SOAP Adapter, and the data extract has been returned as an MTOM attachment. You now need to send this CSV file to an external REST API that supports accepting this content as a Base64 encoded string.
Which XPath mapper function should be used to map the SOAP MTOM attachment to the Base64 element present in the target REST API payload?
Answer options
- A. encodeBase64
- B. encodeReferenceToBase64
- C. decodeBase64ToReference
- D. decodeBase64
Correct answer: B
Explanation
The correct answer is B, as the encodeReferenceToBase64 function is specifically designed to handle attachments like the SOAP MTOM attachment and convert it into a Base64 encoded string. The other options either encode a simple string or decode Base64 content, which is not suitable for this scenario.