org.apache.axis.client.Stub Java Examples

The following examples show how to use org.apache.axis.client.Stub. 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: 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 #2
Source File: DynamicWebServiceStubGenerator.java    From openbd-core with GNU General Public License v3.0 6 votes vote down vote up
public Stub generateStub(String wsdlURL, String portName, CallParameters cp) throws cfmRunTimeException {
	// Gen a MD5 sum of the wsdl contents
	String wsdlContents = getWSDLContents(wsdlURL, cp);
	String wsdlSum = MD5.getDigest( wsdlContents );

	// Check cache first
	DynamicCacheClassLoader cl = null;
	synchronized (DynamicCacheClassLoader.STUB_MUTEX) {
		cl = checkCacheForStub(wsdlURL, wsdlSum, portName);
		if (cl == null)
			cl = buildClientClasses(wsdlURL, portName, wsdlContents, wsdlSum);
	}

	// Create and return a stub
	return createStubInstance(cl, wsdlURL);
}
 
Example #3
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 #4
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 #5
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 #6
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 #7
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 #8
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 #9
Source File: DynamicWebServiceInvoker.java    From openbd-core with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Configures the specified Stub with the specified CallParameters.
 * 
 * @param stub
 *          Stub to configure
 * @param callParms
 *          CalParameters containing the values to configure the Stub
 * @throws cfmRunTimeException
 */
protected void configureStub(Stub stub, CallParameters callParms) throws cfmRunTimeException {
	// Register the stub's classloader
	getParameterConverter().registerLocalClassLoader(stub.getClass().getClassLoader());

	// Set the timeout
	stub.setTimeout(callParms.getTimeout());

	// Set the credentials
	if (callParms.getUsername() != null)
		stub.setUsername(callParms.getUsername());
	if (callParms.getPassword() != null)
		stub.setPassword(callParms.getPassword());
}
 
Example #10
Source File: DynamicWebServiceInvoker.java    From openbd-core with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Looks for the correct local method (i.e. not a web service operation proxy
 * method) on the Stub that matches the specified operationName and parms.
 * 
 * Operations with the most arguments will be matched first using all
 * specified parameters.
 * 
 * @param stub
 *          Axis Stub to execute
 * @param operationName
 *          name of the operation
 * @param stubInfo
 *          web service WSDL operation/parameter information
 * @param parms
 *          user specified parameters
 * @return results of searching for the web service operation
 */
private OperationSearchResult findMethod(Stub stub, String operationName, StubInfo stubInfo, cfWSParameter[] parms) {
	OperationSearchResult result = new OperationSearchResult();
	result.isWebServiceOperation = false;

	// Get all the methods with the correct name and order them by
	// number of parameters, descending.
	Method[] methods = stub.getClass().getMethods();
	LinkedList operations = new LinkedList();
	for (int i = 0; i < methods.length; i++) {
		if (methods[i].getName().equalsIgnoreCase(operationName))
			operations.add(methods[i]);
	}
	Collections.sort(operations, new Comparator() {
		public int compare(Object o1, Object o2) {
			return (((Method) o2).getParameterTypes().length - ((Method) o1).getParameterTypes().length);
		}
	});

	// Examine all the methods
	Iterator itr = operations.iterator();
	while (itr.hasNext()) {
		// Try to match up the parameters
		Method operation = (Method) itr.next();
		examineMethod(result, operation, parms);
		if (result.method != null)
			break;
	}

	return result;
}
 
Example #11
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 #12
Source File: AxisContextHelper.java    From j-road with Apache License 2.0 5 votes vote down vote up
public void afterPropertiesSet() throws Exception {
  Stub stub = stubClass.getConstructor(Service.class).newInstance(new Object[] { null });
  for (Method m : stub.getClass().getDeclaredMethods()) {
    if (m.getName().equals("createCall")) {
      m.setAccessible(true);
      messageContext = ((Call) m.invoke(stub)).getMessageContext();
      break;
    }
  }
  if (messageContext == null) {
    throw new IllegalStateException("Could not find the createCall() method in the stub supplied!");
  }
}
 
Example #13
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a SOAP header from the given SOAP client, if it exists.
 *
 * @param soapClient the SOAP client to check for the given header
 * @param headerName the name of the header being looked for
 * @return the header element, if it exists
 */
@Override
public Object getHeader(Stub soapClient, String headerName) {
  SOAPHeaderElement[] soapHeaders = soapClient.getHeaders();
  for (SOAPHeaderElement soapHeader : soapHeaders) {
    if (soapHeader.getName().equals(headerName)) {
      return soapHeader;
    }
  }
  return null;
}
 
Example #14
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 5 votes vote down vote up
/**
 * @see  SoapClientHandler#setHeader(Object, String, String, Object)
 */
@Override
public void setHeader(Stub soapClient, String namespace, String headerName,
    Object headerValue) {
  try {
    QName qName = new QName(namespace, headerName);
    SOAPHeaderElement soapHeaderElement = new SOAPHeaderElement(qName);
    soapHeaderElement.setObjectValue(headerValue);
    soapHeaderElement.setActor(null);
    soapClient.setHeader(soapHeaderElement);
  } catch (SOAPException e) {
    throw new ServiceException("Could not set header.", e);
  }
}
 
Example #15
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 #16
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 #17
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 #18
Source File: AxisContextHelper.java    From j-road with Apache License 2.0 4 votes vote down vote up
public AxisContextHelper(Class<? extends Stub> stubClass) {
  this.stubClass = stubClass;
}
 
Example #19
Source File: AxisHandler.java    From googleads-java-lib with Apache License 2.0 4 votes vote down vote up
/**
 * @see SoapClientHandlerInterface#getEndpointAddress(Object)
 */
@Override
public String getEndpointAddress(Stub soapClient) {
  return (String) soapClient._getProperty(Stub.ENDPOINT_ADDRESS_PROPERTY);
}
 
Example #20
Source File: AdWordsAxisHeaderHandler.java    From googleads-java-lib with Apache License 2.0 4 votes vote down vote up
/**
 * @see HeaderHandler#setHeaders(Object,
 *      com.google.api.ads.common.lib.client.AdsSession,
 *      com.google.api.ads.common.lib.client.AdsServiceDescriptor)
 */
@Override
public void setHeaders(Object soapClient, AdWordsSession adWordsSession,
    AdWordsServiceDescriptor adWordsServiceDescriptor) throws AuthenticationException,
    ServiceException {
  try {
    Preconditions.checkArgument(soapClient instanceof Stub,
        "soapClient must be Stub but was: %s", soapClient);
    Stub stub = (Stub) soapClient;
    Object soapHeader = soapHeaderFactory.createSoapHeader(adWordsServiceDescriptor);

    String namespace =
        adWordsApiConfiguration.getNamespacePrefix() + "/"
            + adWordsServiceDescriptor.getPackageGroup() + "/"
            + adWordsServiceDescriptor.getVersion();

    soapClientHandler.setHeader(stub, namespace, REQUEST_HEADER_LOCAL_PART, soapHeader);

    soapClientHandler.setHeaderChild(stub, REQUEST_HEADER_LOCAL_PART, "developerToken",
        adWordsSession.getDeveloperToken());
    soapClientHandler.setHeaderChild(stub, REQUEST_HEADER_LOCAL_PART, "clientCustomerId",
        adWordsSession.getClientCustomerId());
    soapClientHandler.setHeaderChild(stub, REQUEST_HEADER_LOCAL_PART, "userAgent",
        userAgentCombiner.getUserAgent(adWordsSession.getUserAgent()));
    soapClientHandler.setHeaderChild(stub, REQUEST_HEADER_LOCAL_PART, "validateOnly",
        adWordsSession.isValidateOnly());
    soapClientHandler.setHeaderChild(stub, REQUEST_HEADER_LOCAL_PART, "partialFailure",
        adWordsSession.isPartialFailure());

    soapClientHandler.setCompression(stub, adsLibConfiguration.isCompressionEnabled());
    soapClientHandler.setRequestTimeout(stub, adsLibConfiguration.getSoapRequestTimeout());

    authorizationHeaderHandler.setAuthorization(soapClient, adWordsSession);
  } catch (InstantiationException
      | IllegalAccessException
      | ServiceException
      | ClassNotFoundException
      | InvocationTargetException
      | NoSuchMethodException e) {
    throw new ServiceException(
        "Unexpected exception setting headers for: " + adWordsServiceDescriptor, e);
  }
}
 
Example #21
Source File: TestConnectionServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
  _endpoint = endpoint;
  if (testConnectionService != null)
    ((javax.xml.rpc.Stub)testConnectionService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  
}
 
Example #22
Source File: DocumentsServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
	_endpoint = endpoint;
	if (documentsService != null)
		((javax.xml.rpc.Stub) documentsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

}
 
Example #23
Source File: MapsSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
  _endpoint = endpoint;
  if (mapsSDKService != null)
    ((javax.xml.rpc.Stub)mapsSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  
}
 
Example #24
Source File: EnginesServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
  _endpoint = endpoint;
  if (enginesService != null)
    ((javax.xml.rpc.Stub)enginesService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  
}
 
Example #25
Source File: DomainsServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
  _endpoint = endpoint;
  if (domainsService != null)
    ((javax.xml.rpc.Stub)domainsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  
}
 
Example #26
Source File: DataSourcesSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
	_endpoint = endpoint;
	if (dataSourcesSDKService != null)
		((javax.xml.rpc.Stub)dataSourcesSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

}
 
Example #27
Source File: BehaviouralServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
	_endpoint = endpoint;
	if (behaviouralService != null)
		((javax.xml.rpc.Stub) behaviouralService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

}
 
Example #28
Source File: DataSetsSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
  _endpoint = endpoint;
  if (dataSetsSDKService != null)
    ((javax.xml.rpc.Stub)dataSetsSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  
}
 
Example #29
Source File: ImportExportSDKServiceProxy.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
public void setEndpoint(String endpoint) {
  _endpoint = endpoint;
  if (importExportSDKService != null)
    ((javax.xml.rpc.Stub)importExportSDKService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
  
}
 
Example #30
Source File: DynamicWebServiceInvoker.java    From openbd-core with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Uses the DynamicWebServiceStubGenerator to create an Axis Stub to execute.
 * 
 * @param wsdlURL
 *          URL for the WSDL
 * @param portName
 *          specified port binding name (or null)
 * @param callParms
 *          proxy/connection specific settings
 * @return Axis Stub that can execute the web service operation
 * @throws cfmRunTimeException
 */
public Stub getStub(String wsdlURL, String portName, CallParameters callParms) throws cfmRunTimeException {
	if (this.currProxy == null) {
		// Generate and configure the proxy/stub
		this.currProxy = this.dws.generateStub(wsdlURL, portName, callParms);
		configureStub(this.currProxy, callParms);
	}

	return this.currProxy;
}