Package eu.planets_project.services

Examples of eu.planets_project.services.PlanetsService


     *
     * @return true if an instanstiable PlanetsService
     */
    public boolean isServiceInstanciable() {
        Service service = Service.create(wsdlLocation, qName);
        PlanetsService s = (PlanetsService) service.getPort(getServiceClass());
        if ( s  != null ) {
            return true;
        } else {
            return false;
        }
View Full Code Here


    /**
     * @return the service description for this service, or null.
     */
    public ServiceDescription getServiceDescription() {
        Service service = Service.create(wsdlLocation, qName);
        PlanetsService s = (PlanetsService) service.getPort(getServiceClass());
        if ( s  != null ) {
            return s.describe();
        } else {
            return null;
        }
    }
View Full Code Here

     * @return the service description from the service endpoint describe() method
     */
    public static ServiceDescription getServiceDescription( URL wsdlLocation ) {
        try {
          PlanetsServiceExplorer se = new PlanetsServiceExplorer(wsdlLocation);
            PlanetsService s = (PlanetsService) createServiceObject(se.getServiceClass(), wsdlLocation);
            if( s == null ) return null;
            ServiceDescription sd = s.describe();
            return sd;
        } catch( Exception e ) {
            log.severe("Runtime exception while inspecting WSDL: "+wsdlLocation+" : "+e);
            e.printStackTrace();
            return null;
View Full Code Here

      log.debug("Creating a workflow service object with: "+serviceConf.getEndpoint() +" "+ PlanetsServices.NS+" "+sServiceNameValue);
     
      javax.xml.ws.Service service = javax.xml.ws.Service.create(new URL(serviceConf.getEndpoint()), new QName(PlanetsServices.NS,sServiceNameValue));
      //reflection implementation of the following behavior:
      //PlanetsService planetsService = (Identify) service.getPort(Identify.class);
      PlanetsService planetsService = planetsServiceType.cast(service.getPort(planetsServiceType));
     
      //finally update the object
      declaredWFService.setAccessible(true);
      declaredWFService.set(wft, planetsService);
      log.debug("Successfully instantiated a PlanetsService of interface type: "+planetsService.describe().getClassname());
     
    //2) set additional configured parameters for this service as e.g. input/output format for migration services or service specific parameters as e.g. compression type, etc.
      if(serviceConf.getParameters()!=null){
        setServiceParameters(wft, planetsService, serviceConf.getParameters());
      }
View Full Code Here

     * @param wsdlLocation
     * @return
     */
    public boolean isServiceInstanciable() {
        Service service = Service.create(wsdlLocation, qName);
        PlanetsService s = (PlanetsService) service.getPort(getServiceClass());
        if ( s  != null ) {
            return true;
        } else {
            return false;
        }
View Full Code Here

     * @return
     */
    public static ServiceDescription getServiceDescription( URL wsdlLocation ) {
        try {
            PlanetsServiceExplorer se = new PlanetsServiceExplorer(wsdlLocation);
            PlanetsService s = (PlanetsService) createServiceObject(se.getServiceClass(), wsdlLocation);
            if( s == null ) return null;
            ServiceDescription sd = s.describe();
        return sd;
        } catch( Exception e ) {
            log.error("Runtime exception while inspecting WSDL: "+wsdlLocation+" : "+e);
            return null;
        }
View Full Code Here

            e1.printStackTrace();
            return null;
        }
       
        // Attempt to invoke the service:
        PlanetsService service;
        try {
            service = (PlanetsService) serviceClazz.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
            return null;
        } catch (IllegalAccessException e) {
            e.printStackTrace();
            return null;
        }
       
        // Return the description:
        return service.describe();
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.services.PlanetsService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.