Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. public class EmulBPA implements SkeletonInterface {
  2. Integer i = null;
  3.  
  4. public BPAGetResponseDocument BPAGet(bpa10.BPAGetDocument BPAGet4) throws MsgWSTechnicalException, MsgWSAppTechnicalException, MsgWSAppException, MsgWSAccessException, MsgWSVerificationException {
  5.  
  6. BPAGetResponseDocument Ret = BPAGetResponseDocument.Factory.newInstance();
  7. BPAGetResponse response = Ret.addNewWSAccountMoneyTransferBPAGetResponse();
  8. BPAGetResponseType out = response.addNewResponse();
  9. BPAGetOutParms outParms = out.addNewOutParms();
  10. WSCommonOutParms commonParms = out.addNewOutCommonParms();
  11. WSExtention commonParmsExt = commonParms.addNewOutCommonParmsExt();
  12. commonParmsExt.setName("UID");
  13. String ref = (BPAGet4.getBPAGet().getInParms().getRef()).replaceAll("\D", "");
  14.  
  15. if ( ref != null && !ref.equals(""))
  16. {
  17. i = Integer.parseInt(ref);
  18. }
  19.  
  20. if(i == null) {
  21. outParms.setWts("NOT");
  22. outParms.setWtsc("FND");
  23. }
  24. else if(i == i) {
  25. outParms.setWts("WRA");
  26. outParms.setWtsc("");
  27. }
  28. else
  29. {
  30. outParms.setWts("WRC");
  31. outParms.setWtsc("");
  32. }
  33.  
  34. return Ret;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement