Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. /**
  2.  * Created by Anime_000 on 17/02/2017.
  3.  */
  4. class MockBankValidation {
  5.  
  6.   public static function getBankDetails(eft : EFTData):EFTData{
  7.  
  8.     var eftData = new EFTData()
  9.  
  10.     var service = new GW_CC_BankDetails_ExportService_BankValidationAPIHttpService()
  11.  
  12.     // The SOAP request call to ESB
  13.     var request_we  = new BankDetails()
  14.  
  15.     var response = new BankValidationResponse()
  16.  
  17.     // Mapping the fields from Guidewire to ESB Mediation service
  18.  
  19.     request_we.xyz = eft.BankAccountNumber
  20.     request_we.abc = eft.BankRoutingNumber
  21.  
  22.     // RESTful Service  Response
  23.     _logger.info("Bank Details ="+response.abc)
  24.  
  25.  
  26.  
  27.     // Parsing the Response
  28.     var xmldoc  = XmlElement.parse(response.abc)
  29.  
  30.     // Return eftData after some setters.
  31.  
  32.      eftData.setBankAccountNumber(xyz)
  33.     eftData.setBankRoutingNumber(abc)
  34.   }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement