Java Code Examples for org.apache.axis.client.Stub#_setProperty

The following examples show how to use org.apache.axis.client.Stub#_setProperty . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImportExportSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initImportExportSDKServiceProxy() {
  try {
it.eng.spagobi.sdk.importexport.stub.ImportExportSDKServiceServiceLocator locator = new it.eng.spagobi.sdk.importexport.stub.ImportExportSDKServiceServiceLocator();
Remote remote = locator.getPort(it.eng.spagobi.sdk.importexport.stub.ImportExportSDKService.class);
      Stub axisPort = (Stub) remote;
      axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
      axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
      //axisPort.setTimeout(30000); //used in SpagoBIStudio

      importExportSDKService = (it.eng.spagobi.sdk.importexport.stub.ImportExportSDKService) axisPort;
    if (importExportSDKService != null) {
      if (_endpoint != null)
        ((javax.xml.rpc.Stub)importExportSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
      else
        _endpoint = (String)((javax.xml.rpc.Stub)importExportSDKService)._getProperty("javax.xml.rpc.service.endpoint.address");
    }      
  }
  catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 2
Source File: DataSetsSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initDataSetsSDKServiceProxy() {
  try {
it.eng.spagobi.sdk.datasets.stub.DataSetsSDKServiceServiceLocator locator = new it.eng.spagobi.sdk.datasets.stub.DataSetsSDKServiceServiceLocator();
Remote remote = locator.getPort(it.eng.spagobi.sdk.datasets.stub.DataSetsSDKService.class);
      Stub axisPort = (Stub) remote;
      axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
      axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
      //axisPort.setTimeout(30000); //used in SpagoBIStudio

      dataSetsSDKService = (it.eng.spagobi.sdk.datasets.stub.DataSetsSDKService) axisPort;
    if (dataSetsSDKService != null) {
      if (_endpoint != null)
        ((javax.xml.rpc.Stub)dataSetsSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
      else
        _endpoint = (String)((javax.xml.rpc.Stub)dataSetsSDKService)._getProperty("javax.xml.rpc.service.endpoint.address");
    }      
  }
  catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 3
Source File: DataSourcesSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initDataSourcesSDKServiceProxy() {
	try {
		it.eng.spagobi.sdk.datasources.stub.DataSourcesSDKServiceServiceLocator locator = new it.eng.spagobi.sdk.datasources.stub.DataSourcesSDKServiceServiceLocator();
		Remote remote = locator.getPort(it.eng.spagobi.sdk.datasources.stub.DataSourcesSDKService.class);
		Stub axisPort = (Stub) remote;
		axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
		axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
		//axisPort.setTimeout(30000); //used in SpagoBIStudio
		dataSourcesSDKService = (it.eng.spagobi.sdk.datasources.stub.DataSourcesSDKService) axisPort;        
		//dataSourcesSDKService = (new DataSourcesSDKServiceServiceLocator()).getDataSourcesSDKService();
		if (dataSourcesSDKService != null) {
			if (_endpoint != null)
				((javax.xml.rpc.Stub)dataSourcesSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
			else
				_endpoint = (String)((javax.xml.rpc.Stub)dataSourcesSDKService)._getProperty("javax.xml.rpc.service.endpoint.address");
		}

	}
	catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 4
Source File: DomainsServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initDomainsServiceProxy() {
  try {
it.eng.spagobi.sdk.domains.stub.DomainsServiceServiceLocator locator = new it.eng.spagobi.sdk.domains.stub.DomainsServiceServiceLocator();
Remote remote = locator.getPort(it.eng.spagobi.sdk.domains.stub.DomainsService.class);
      Stub axisPort = (Stub) remote;
      axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
      axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
    //axisPort.setTimeout(30000); //used in SpagoBIStudio
      domainsService = (it.eng.spagobi.sdk.domains.stub.DomainsService) axisPort;
  	
   // domainsService = (new DomainsServiceServiceLocator()).getDomainsService();
    if (domainsService != null) {
      if (_endpoint != null)
        ((javax.xml.rpc.Stub)domainsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
      else
        _endpoint = (String)((javax.xml.rpc.Stub)domainsService)._getProperty("javax.xml.rpc.service.endpoint.address");
    }
    
  }
  catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 5
Source File: EnginesServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initEnginesServiceProxy() {
   try {
	it.eng.spagobi.sdk.engines.stub.EnginesServiceServiceLocator locator = new it.eng.spagobi.sdk.engines.stub.EnginesServiceServiceLocator();
	Remote remote = locator.getPort(it.eng.spagobi.sdk.engines.stub.EnginesService.class);
       Stub axisPort = (Stub) remote;
       axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
       axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
       //axisPort.setTimeout(30000); //used in SpagoBIStudio
       enginesService = (it.eng.spagobi.sdk.engines.stub.EnginesService) axisPort;
	
     if (enginesService != null) {
       if (_endpoint != null)
         ((javax.xml.rpc.Stub)enginesService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
       else
         _endpoint = (String)((javax.xml.rpc.Stub)enginesService)._getProperty("javax.xml.rpc.service.endpoint.address");
     }
     
   }
   catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 6
Source File: MapsSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initMapsSDKServiceProxy() {
  try {
it.eng.spagobi.sdk.maps.stub.MapsSDKServiceServiceLocator locator = new it.eng.spagobi.sdk.maps.stub.MapsSDKServiceServiceLocator();
Remote remote = locator.getPort(it.eng.spagobi.sdk.maps.stub.MapsSDKService.class);
      Stub axisPort = (Stub) remote;
      axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
      axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
      //axisPort.setTimeout(30000); //used in SpagoBIStudio

      mapsSDKService = (it.eng.spagobi.sdk.maps.stub.MapsSDKService) axisPort;
  	//mapsSDKService = (new MapsSDKServiceServiceLocator()).getMapsSDKService();
    if (mapsSDKService != null) {
      if (_endpoint != null)
        ((javax.xml.rpc.Stub)mapsSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
      else
        _endpoint = (String)((javax.xml.rpc.Stub)mapsSDKService)._getProperty("javax.xml.rpc.service.endpoint.address");
    }      
  }
  catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 7
Source File: TestConnectionServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 6 votes vote down vote up
private void _initTestConnectionServiceProxy() {
  try {
it.eng.spagobi.sdk.test.stub.TestConnectionServiceServiceLocator locator = new it.eng.spagobi.sdk.test.stub.TestConnectionServiceServiceLocator();
Remote remote = locator.getPort(it.eng.spagobi.sdk.test.stub.TestConnectionService.class);
      Stub axisPort = (Stub) remote;
      axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
      axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
      //axisPort.setTimeout(30000); //used in SpagoBIStudio

      testConnectionService = (it.eng.spagobi.sdk.test.stub.TestConnectionService) axisPort;
  	
    if (testConnectionService != null) {
      if (_endpoint != null)
        ((javax.xml.rpc.Stub)testConnectionService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
      else
        _endpoint = (String)((javax.xml.rpc.Stub)testConnectionService)._getProperty("javax.xml.rpc.service.endpoint.address");
    }
    
  }
  catch (javax.xml.rpc.ServiceException serviceException) {}
}
 
Example 8
Source File: BehaviouralServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
private void _initBehaviouralServiceProxy() {
	// try {
	// behaviouralService = (new
	// BehaviouralServiceServiceLocator()).getBehaviouralService();
	// if (behaviouralService != null) {
	// if (_endpoint != null)
	// ((javax.xml.rpc.Stub)
	// behaviouralService)._setProperty("javax.xml.rpc.service.endpoint.address",
	// _endpoint);
	// else
	// _endpoint = (String) ((javax.xml.rpc.Stub)
	// behaviouralService)._getProperty("javax.xml.rpc.service.endpoint.address");
	// }
	//
	// } catch (javax.xml.rpc.ServiceException serviceException) {
	// }

	try {
		it.eng.spagobi.sdk.behavioural.stub.BehaviouralServiceServiceLocator locator = new it.eng.spagobi.sdk.behavioural.stub.BehaviouralServiceServiceLocator();
		Remote remote = locator.getPort(it.eng.spagobi.sdk.behavioural.stub.BehaviouralService.class);
		Stub axisPort = (Stub) remote;
		axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
		axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
		// axisPort.setTimeout(30000); //used in SpagoBIStudio
		behaviouralService = (it.eng.spagobi.sdk.behavioural.stub.BehaviouralService) axisPort;
		if (behaviouralService != null) {
			if (_endpoint != null)
				((javax.xml.rpc.Stub) behaviouralService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
			else
				_endpoint = (String) ((javax.xml.rpc.Stub) behaviouralService)._getProperty("javax.xml.rpc.service.endpoint.address");
		}

	} catch (javax.xml.rpc.ServiceException serviceException) {
	}

}
 
Example 9
Source File: DocumentsServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
private void _initDocumentsServiceProxy() {
	// try {
	// documentsService = (new
	// DocumentsServiceServiceLocator()).getDocumentsService();
	// if (documentsService != null) {
	// if (_endpoint != null)
	// ((javax.xml.rpc.Stub)
	// documentsService)._setProperty("javax.xml.rpc.service.endpoint.address",
	// _endpoint);
	// else
	// _endpoint = (String) ((javax.xml.rpc.Stub)
	// documentsService)._getProperty("javax.xml.rpc.service.endpoint.address");
	// }
	//
	// } catch (javax.xml.rpc.ServiceException serviceException) {
	// }
	try {
		it.eng.spagobi.sdk.documents.stub.DocumentsServiceServiceLocator locator = new it.eng.spagobi.sdk.documents.stub.DocumentsServiceServiceLocator();
		Remote remote = locator.getPort(it.eng.spagobi.sdk.documents.stub.DocumentsService.class);
		Stub axisPort = (Stub) remote;
		axisPort._setProperty(WSHandlerConstants.USER, cch.getUsername());
		axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, cch);
		// axisPort.setTimeout(30000); //used in SpagoBIStudio
		documentsService = (it.eng.spagobi.sdk.documents.stub.DocumentsService) axisPort;
		if (documentsService != null) {
			if (_endpoint != null)
				((javax.xml.rpc.Stub) documentsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
			else
				_endpoint = (String) ((javax.xml.rpc.Stub) documentsService)._getProperty("javax.xml.rpc.service.endpoint.address");
		}

	} catch (javax.xml.rpc.ServiceException serviceException) {
	}

}
 
Example 10
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 5 votes vote down vote up
/**
 * @see SoapClientHandler#putAllHttpHeaders(Object, Map)
 */
@Override
public void putAllHttpHeaders(Stub soapClient, Map<String, String> headersMap) {
  @SuppressWarnings("unchecked")
  Hashtable<String, String> headers =
      (Hashtable<String, String>) soapClient._getProperty(HTTPConstants.REQUEST_HEADERS);
  if (headers == null) {
    headers = new Hashtable<String, String>();
  }
  headers.putAll(headersMap);
  soapClient._setProperty(HTTPConstants.REQUEST_HEADERS, headers);
}
 
Example 11
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 4 votes vote down vote up
/**
 * Clears all of the SOAP headers from the given SOAP client.
 *
 * @param soapClient the client to remove the headers from
 */
@Override
public void clearHeaders(Stub soapClient) {
  soapClient._setProperty(HTTPConstants.REQUEST_HEADERS, new Hashtable<String, String>());
  soapClient.clearHeaders();
}
 
Example 12
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the endpoint address of the given SOAP client.
 *
 * @param soapClient the SOAP client to set the endpoint address for
 * @param endpointAddress the target endpoint address
 */
@Override
public void setEndpointAddress(Stub soapClient, String endpointAddress) {
  soapClient._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, endpointAddress);
}
 
Example 13
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 2 votes vote down vote up
/**
 * Set whether SOAP requests should use compression.
 * 
 * @param soapClient the client to set compression settings for
 * @param compress whether or not to use compression
 */
@Override
public void setCompression(Stub soapClient, boolean compress) {
  soapClient._setProperty(HTTPConstants.MC_ACCEPT_GZIP, compress);
  soapClient._setProperty(HTTPConstants.MC_GZIP_REQUEST, compress);
}