EntityDocSubmissionProxyWebServiceSecuredImpl implements EntityDocSubmissionProxy { @Override public RegistryResponseType provideAndRegisterDocumentSetB(ProvideAndRegisterDocumentSetRequestType message, AssertionType assertion, NhinTargetCommunitiesType targets, UrlInfoType urlInfo) { LOG.debug("Begin EntityDocSubmissionProxyWebServiceSecuredImpl.provideAndRegisterDocumentSetB"); RegistryResponseType response = new RegistryResponseType(); try { String url = oProxyHelper.getUrlLocalHomeCommunity(NhincConstants.ENTITY_XDR_SECURED_SERVICE_NAME); ServicePortDescriptor<EntityXDRSecuredPortType> portDescriptor = getServicePortDescriptor(NhincConstants.ADAPTER_API_LEVEL.LEVEL_a0); CONNECTClient<EntityXDRSecuredPortType> client = getCONNECTClient(portDescriptor, url, assertion); RespondingGatewayProvideAndRegisterDocumentSetSecuredRequestType securedRequest = new RespondingGatewayProvideAndRegisterDocumentSetSecuredRequestType(); securedRequest.setNhinTargetCommunities(targets); securedRequest.setProvideAndRegisterDocumentSetRequest(message); securedRequest.setUrl(urlInfo); response = (RegistryResponseType) client.invokePort(EntityXDRSecuredPortType.class, "provideAndRegisterDocumentSetB", securedRequest); } catch (Exception e) { throw new ErrorEventException(e, response, "Unable to call Doc Submission Entity"); } LOG.debug("End EntityDocSubmissionProxyWebServiceSecuredImpl.provideAndRegisterDocumentSetB"); return response; } EntityDocSubmissionProxyWebServiceSecuredImpl(); @Override RegistryResponseType provideAndRegisterDocumentSetB(ProvideAndRegisterDocumentSetRequestType message,
        AssertionType assertion, NhinTargetCommunitiesType targets, UrlInfoType urlInfo);  }
@Test public void testProvideAndRegisterDocumentSetB() throws Exception { expectMockCONNECTClient(); expectMockWebServiceProxyHelperGetUrl(); EntityDocSubmissionProxyWebServiceSecuredImpl proxyImpl = createWebServiceSecuredImpl(); RegistryResponseType response = invokeProvideAndRegisterDocumentSetB(proxyImpl); context.assertIsSatisfied(); assertEquals(DocumentConstants.XDS_SUBMISSION_RESPONSE_STATUS_SUCCESS, response.getStatus()); }