Source:
public MCCIIN000002UV01 processPatientDiscoveryAsyncResp(PRPAIN201306UV02 request, AssertionType assertion, NhinTargetCommunitiesType target) { LOG.debug("Begin EntityPatientDiscoveryDeferredResponseProxyWebServiceUnsecuredImpl.processPatientDiscoveryAsyncResp(...)"); MCCIIN000002UV01 response = new MCCIIN000002UV01(); String serviceName = NhincConstants.PATIENT_DISCOVERY_ENTITY_ASYNC_RESP_SERVICE_NAME; try { LOG.debug("Before target system URL look up."); String url = oProxyHelper.getUrlLocalHomeCommunity(serviceName); if (LOG.isDebugEnabled()) { LOG.debug("After target system URL look up. URL for service: " + serviceName + " is: " + url); } if (NullChecker.isNotNullish(url)) { RespondingGatewayPRPAIN201306UV02RequestType wsRequest = new RespondingGatewayPRPAIN201306UV02RequestType(); if (request != null) { wsRequest.setPRPAIN201306UV02(request); wsRequest.setAssertion(assertion); wsRequest.setNhinTargetCommunities(target); } ServicePortDescriptor<EntityPatientDiscoveryAsyncRespPortType> portDescriptor = new EntityPatientDiscoveryAsyncRespServicePortDescriptor(); CONNECTClient<EntityPatientDiscoveryAsyncRespPortType> client = CONNECTClientFactory.getInstance() .getCONNECTClientUnsecured(portDescriptor, url, assertion); response = (MCCIIN000002UV01) client.invokePort(EntityPatientDiscoveryAsyncRespPortType.class, "processPatientDiscoveryAsyncResp", wsRequest); } else { LOG.error("Failed to call the web service (" + serviceName + "). The URL is null."); throw new WebServiceException("Could not determine URL for Patient Discovery Deferred Response endpoint"); } } catch (Exception ex) { throw new ErrorEventException(ex, "Unable to call Patient Discovery Deferred Response"); } LOG.debug("End EntityPatientDiscoveryDeferredResponseProxyWebServiceUnsecuredImpl.processPatientDiscoveryAsyncResp(...)"); return response; }

Target:
public MCCIIN000002UV01 processPatientDiscoveryAsyncResp(PRPAIN201306UV02 request, AssertionType assertion, NhinTargetCommunitiesType target) { LOG.debug("Begin EntityPatientDiscoveryDeferredResponseProxyWebServiceUnsecuredImpl.processPatientDiscoveryAsyncResp(...)"); MCCIIN000002UV01 response = new MCCIIN000002UV01(); String serviceName = NhincConstants.PATIENT_DISCOVERY_ENTITY_ASYNC_RESP_SERVICE_NAME; try { LOG.debug("Before target system URL look up."); String url = oProxyHelper.getUrlLocalHomeCommunity(serviceName); if (LOG.isDebugEnabled()) { LOG.debug("After target system URL look up. URL for service: is: {}",serviceName, url); } if (NullChecker.isNotNullish(url)) { RespondingGatewayPRPAIN201306UV02RequestType wsRequest = new RespondingGatewayPRPAIN201306UV02RequestType(); if (request != null) { wsRequest.setPRPAIN201306UV02(request); wsRequest.setAssertion(assertion); wsRequest.setNhinTargetCommunities(target); } ServicePortDescriptor<EntityPatientDiscoveryAsyncRespPortType> portDescriptor = new EntityPatientDiscoveryAsyncRespServicePortDescriptor(); CONNECTClient<EntityPatientDiscoveryAsyncRespPortType> client = CONNECTClientFactory.getInstance() .getCONNECTClientUnsecured(portDescriptor, url, assertion); response = (MCCIIN000002UV01) client.invokePort(EntityPatientDiscoveryAsyncRespPortType.class, "processPatientDiscoveryAsyncResp", wsRequest); } else { throw new WebServiceException("Could not determine URL for Patient Discovery Deferred Response endpoint"); } } catch (Exception ex) { throw new ErrorEventException(ex, "Unable to call Patient Discovery Deferred Response"); } LOG.debug("End EntityPatientDiscoveryDeferredResponseProxyWebServiceUnsecuredImpl.processPatientDiscoveryAsyncResp(...)"); return response; }