public SummaryDimensionDSClient(String backendServerURL, ConfigurationContext configCtx) throws BAMException { try { String serviceURL = ClientUtil.getBackendEPR(backendServerURL, BAM_SUMMARY_GENERATION_DS); summaryGenerationDSStub = new BAMSummaryGenerationDSStub(configCtx, serviceURL); } catch (Exception e) { throw new BAMException(e.getMessage(), e); } }
public SummaryDimensionDSClient( String cookie, String backendServerURL, ConfigurationContext configCtx) throws BAMException { try { String serviceURL = ClientUtil.getBackendEPR(backendServerURL, BAM_SUMMARY_GENERATION_DS); summaryGenerationDSStub = new BAMSummaryGenerationDSStub(configCtx, serviceURL); } catch (Exception e) { throw new BAMException(e.getMessage(), e); } ServiceClient client = summaryGenerationDSStub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); }