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