Package eu.planets_project.services

Examples of eu.planets_project.services.PlanetsService.describe()


     */
    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


    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

      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

    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

            e.printStackTrace();
            return null;
        }
       
        // Return the description:
        return service.describe();
    }

    /**
     * Main so that this can be invoked from the build scripts to create descriptions from the code.
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.