Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by Anime_000 on 17/02/2017.
- */
- class MockBankValidation {
- public static function getBankDetails(eft : EFTData):EFTData{
- var eftData = new EFTData()
- var service = new GW_CC_BankDetails_ExportService_BankValidationAPIHttpService()
- // The SOAP request call to ESB
- var request_we = new BankDetails()
- var response = new BankValidationResponse()
- // Mapping the fields from Guidewire to ESB Mediation service
- request_we.xyz = eft.BankAccountNumber
- request_we.abc = eft.BankRoutingNumber
- // RESTful Service Response
- _logger.info("Bank Details ="+response.abc)
- // Parsing the Response
- var xmldoc = XmlElement.parse(response.abc)
- // Return eftData after some setters.
- eftData.setBankAccountNumber(xyz)
- eftData.setBankRoutingNumber(abc)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement