Examples of ServiceDescription


Examples of org.apache.axis.encoding.ServiceDescription

            ServiceClient call   = new ServiceClient
                ( new TCPTransport("localhost", "8088") );
           
            // reconstruct URL
            ServiceDescription sd = new ServiceDescription("stockQuotes", true);
            sd.addOutputParam("return", SOAPTypeMappingRegistry.XSD_FLOAT);
            call.setServiceDescription(sd);
           
            Float res = new Float(0.0F);
            //      for (int i=0; i<count; i++) {
            Object ret = call.invoke(
View Full Code Here

Examples of org.apache.axis.encoding.ServiceDescription

      String namespace = "urn:xmltoday-delayed-quotes";
      symbol = args[0] ;

      ServiceClient call = new ServiceClient(opts.getURL());
      call.setTransport(new TCPTransport());
      ServiceDescription sd = new ServiceDescription("stockQuotes", true);
      sd.addInputParam("symbol", SOAPTypeMappingRegistry.XSD_STRING);
      sd.setOutputType(SOAPTypeMappingRegistry.XSD_FLOAT);
      call.setServiceDescription(sd);
     
      // TESTING HACK BY ROBJ
      if (symbol.equals("XXX_noaction")) {
          symbol = "XXX";
View Full Code Here

Examples of org.apache.axis.encoding.ServiceDescription

      String namespace = "urn:xmltoday-delayed-quotes";
      symbol = args[0] ;

      ServiceClient call = new ServiceClient(opts.getURL());
      ServiceDescription sd = new ServiceDescription("stockQuotes", true);
      sd.addInputParam("symbol", SOAPTypeMappingRegistry.XSD_STRING);
      sd.setOutputType(SOAPTypeMappingRegistry.XSD_FLOAT);
      call.setServiceDescription(sd);
     
      // TESTING HACK BY ROBJ
      if (symbol.equals("XXX_noaction")) {
          symbol = "XXX";
View Full Code Here

Examples of org.apache.axis2.description.ServiceDescription

                fac = OMAbstractFactory.getSOAP11Factory();
            } else {
                throw new AxisFault(Messages.getMessage("invalidSOAPversion"));
            }

            ServiceDescription service =
                msgContext
                    .getOperationContext()
                    .getServiceContext()
                    .getServiceConfig();
            ClassLoader classLoader = service.getClassLoader();
            Parameter implInfoParam = service.getParameter(SERVICE_CLASS);
            if (implInfoParam != null) {
                Class implClass =
                    Class.forName(
                        ((String) implInfoParam.getValue()).trim(),
                        true,
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ServiceDescription

            log.debug("Cache Map = " + cache.toString());
            if (key != null)
                log.debug("Description Key = " + key.printKey());

        }
        ServiceDescription serviceDesc = null;
        synchronized(configContext) {
            serviceDesc = cache.get(key);
            if (log.isDebugEnabled()) {
                log.debug("Check to see if ServiceDescription is found in cache");
            }
            if (serviceDesc != null) {
                if (log.isDebugEnabled()) {
                    log.debug("ServiceDescription found in the cache");
                    log.debug(serviceDesc.toString());
                }
            }
            if (serviceDesc == null) {
                if (log.isDebugEnabled()) {
                    log.debug("ServiceDescription not found in the cache");
                    log.debug(" creating new ServiceDescriptionImpl");
                }

                serviceDesc = new ServiceDescriptionImpl(wsdlURL, serviceQName, serviceClass);
                if (log.isDebugEnabled()) {
                    log.debug("ServiceDescription created with WSDL URL: " + wsdlURL + "; QName: " +
                        serviceQName + "; Class: " + serviceClass);
                    log.debug(serviceDesc.toString());
                }
                if (log.isDebugEnabled()) {
                    log.debug("Caching new ServiceDescription in the cache");
                }
                cache.put(key, serviceDesc);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ServiceDescription

     *      AxisService)
     * @deprecated
     */
    public static ServiceDescription createServiceDescriptionFromServiceImpl(
            Class serviceImplClass, AxisService axisService) {
        ServiceDescription serviceDesc = new ServiceDescriptionImpl(serviceImplClass, axisService);
        if (log.isDebugEnabled()) {
            log.debug("Deprecated method used!  ServiceDescription created with Class: " +
                    serviceImplClass + "; AxisService: " + axisService);
            log.debug(serviceDesc.toString());
        }
        return serviceDesc;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ServiceDescription

        return serviceDesc;
    }

    /** @see org.apache.axis2.jaxws.description.DescriptionFactory#createServiceDescription(Class) */
    public static ServiceDescription createServiceDescription(Class serviceImplClass) {
        ServiceDescription serviceDesc = null;

        if (serviceImplClass != null) {
            JavaClassToDBCConverter converter = new JavaClassToDBCConverter(serviceImplClass);
            HashMap<String, DescriptionBuilderComposite> dbcMap = converter.produceDBC();
            List<ServiceDescription> serviceDescList = createServiceDescriptionFromDBCMap(dbcMap);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ServiceDescription

        for (Iterator<DescriptionBuilderComposite> nameIter = dbcMap.values()
                .iterator(); nameIter.hasNext();) {
            DescriptionBuilderComposite serviceImplComposite = nameIter.next();
            if (isImpl(serviceImplComposite)) {
                // process this impl class
                ServiceDescription serviceDescription = new ServiceDescriptionImpl(
                        dbcMap, serviceImplComposite);
                ServiceDescriptionValidator validator =
                        new ServiceDescriptionValidator(serviceDescription);
                if (validator.validate()) {
                    serviceDescriptionList.add(serviceDescription);
                    if (log.isDebugEnabled()) {
                        log.debug("Service Description created from DescriptionComposite: " +
                                serviceDescription);
                    }
                } else {

                    String msg =
                            "The ServiceDescription failed to validate due to the following errors: \n" +
                                    validator.toString();

                    if (log.isDebugEnabled()) {
                        log.debug("Validation Phase 2 failure: " + msg);
                        log.debug("Failing composite: " + serviceImplComposite.toString());
                        log.debug("Failing Service Description: " + serviceDescription.toString());
                    }

                    // TODO: Validate all service descriptions before failing
                    // TODO: Get more detailed failure information from the Validator
                    throw ExceptionFactory.makeWebServiceException(msg);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ServiceDescription

                }
            }
        }

        List<ServiceDescription> serviceDescList = DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
        ServiceDescription sd = serviceDescList.get(0);
        Parameter serviceDescription = new Parameter(EndpointDescription.AXIS_SERVICE_PARAMETER, sd.getEndpointDescriptions()[0]);
        service.addParameter(serviceDescription);

        return service;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ServiceDescription

        if (messageContext == null) {
         
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("nullMsgCtxErr"));
        }

        ServiceDescription sd = messageContext.getEndpointDescription().getServiceDescription();
        if (sd != null) {
            ConfigurationContext configCtx = sd.getAxisConfigContext();
            List<ApplicationContextMigrator> migratorList = (List<ApplicationContextMigrator>) configCtx.getProperty(contextMigratorListID);
            if (migratorList != null) {
               
                // Create copy to avoid using shared list
                List listCPM = null;
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.