Skip to content

Instantly share code, notes, and snippets.

@JavaYank
Created April 5, 2019 11:49
Show Gist options
  • Save JavaYank/b71cc6d5ec82d6cb474daef2f9def49e to your computer and use it in GitHub Desktop.
Save JavaYank/b71cc6d5ec82d6cb474daef2f9def49e to your computer and use it in GitHub Desktop.
IssuingPortProxy issuingPortProxy = new IssuingPortProxy(
ConnectionPool.getValue("HUMO_HOST"),
ConnectionPool.getValue("HUMO_USERNAME"),
ConnectionPool.getValue("HUMO_PASSWORD"));
String bankC = ConnectionPool.getValue("HUMO_BANK_C");
String groupC = ConnectionPool.getValue("HUMO_GROUPC");
String realCardNumber = getRealCardNumber(rs.getString("CARD"), issuingPortProxy, bankC, groupC)
************************************************************************************
private static String getRealCardNumber(String pseudoCard, IssuingPortProxy proxy, String bankC, String groupC) throws RemoteException {
OperationConnectionInfo connectionInfo = new OperationConnectionInfo();
connectionInfo.setBANK_C(bankC);
connectionInfo.setGROUPC(groupC);
connectionInfo.setEXTERNAL_SESSION_ID(getExternalSession());
RowType_GetRealCard_Request request = new RowType_GetRealCard_Request(pseudoCard);
RowType_GetRealCard_ResponseHolder response = new RowType_GetRealCard_ResponseHolder();
proxy.getRealCard(connectionInfo, request, new OperationResponseInfoHolder(), response);
return response.value.getRCARD();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment