Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EmulBPA implements SkeletonInterface {
- Integer i = null;
- public BPAGetResponseDocument BPAGet(bpa10.BPAGetDocument BPAGet4) throws MsgWSTechnicalException, MsgWSAppTechnicalException, MsgWSAppException, MsgWSAccessException, MsgWSVerificationException {
- BPAGetResponseDocument Ret = BPAGetResponseDocument.Factory.newInstance();
- BPAGetResponse response = Ret.addNewWSAccountMoneyTransferBPAGetResponse();
- BPAGetResponseType out = response.addNewResponse();
- BPAGetOutParms outParms = out.addNewOutParms();
- WSCommonOutParms commonParms = out.addNewOutCommonParms();
- WSExtention commonParmsExt = commonParms.addNewOutCommonParmsExt();
- commonParmsExt.setName("UID");
- String ref = (BPAGet4.getBPAGet().getInParms().getRef()).replaceAll("\D", "");
- if ( ref != null && !ref.equals(""))
- {
- i = Integer.parseInt(ref);
- }
- if(i == null) {
- outParms.setWts("NOT");
- outParms.setWtsc("FND");
- }
- else if(i == i) {
- outParms.setWts("WRA");
- outParms.setWtsc("");
- }
- else
- {
- outParms.setWts("WRC");
- outParms.setWtsc("");
- }
- return Ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement