You need to sign in to do that
Don't have an account?
Ab
XML parsing in Salesforce
Hello,
How to send construct a XML request and display the response on a VF Page.
How to send construct a XML request and display the response on a VF Page.
HTTP h = new HTTP(); HTTPRequest req = new HTTPRequest(); req.setEndpoint('https://servicesgateway.com/1/rest/searchByName'); Blob header = Blob.valueOf(UserId+ ':' + Password); String authHeader = 'BASIC ' + EncodingUtil.base64Encode(header); req.setHeader('Authorization', authHeader); req.setMethod('GET'); HTTPResponse resp = req.send(req); System.debug(res.getBody());
You can have a look on the salesforce link.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_xml_dom.htm
This will helpful to you..!