GetBSConfig getBSConfig = new GetBSConfig();
BSConfigRequest configRequest = new BSConfigRequest();
configRequest.setBSName(bsName);
getBSConfig.setBs(configRequest);
GetBSConfigResponse getBSConfigResponse = service.getBSConfig(getBSConfig);
BSConfigResponse response = getBSConfigResponse.getGetBSConfigResult();
TradeOrderConfig config = new TradeOrderConfig();
config.setServiceName(response.getOPSName());
config.setEndpointURL(response.getOPS());
config.setSecure(response.isSec());