Simple Outbound REST API with XML Response using Apex in Salesforce
Remote Site Settings: Visualforce Page: <apex:page controller="RESTAPIXMLResponseController"> <apex:form> <apex:pageBlock> <apex:pageBlockSection> <apex:pageBlockSectionItem>Customer No: <apex:inputText value="{!strCustomerNo}"/></apex:pageBlockSectionItem> </apex:pageBlockSection> <apex:pageBlockButtons location="bottom"> <apex:commandButton value="Fetch" action="{!fetchAPI}"/> </apex:pageBlockButtons> </apex:pageBlock> <apex:pageBlock> <apex:repeat value="{!mapCustomer}" var="c"> {!c} - {!mapCustomer[c]}<br/> </apex:repeat> ....