Posts

Showing posts from November, 2017

XML file in Apex Class

public with sharing class domXmlParsing { //method to parse xml file public static string walkThrough(){ //XML string to parse String response = '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">' + '<S:Body>' + '<wss:createPendingTicketResponse xmlns:wss="http://www.boomi.com/connector/wss">' + '<wss:createPaymentTransctionLogResponse/>' + '<PendingTicket xmlns:pay="http://www.boomi.com/v1b/Payment">' + '<pay:Response>' + '<pay:R10TillID>test001</pay:R10TillID>' + '<pay:R10SequenceNumber>test002</pay:R10SequenceNumber>' + '<pay:SFTnxId>test003</pay:SFTnxId>' + '<pay:R10TnxID>' + 'TESTME' + '</pay:R