Package org.apache.axis.providers

Examples of org.apache.axis.providers.BasicProvider


                                       EngineConfiguration registry)
        throws Exception
    {
        Class _class = ClassUtils.forName("org.apache.axis.providers.ComProvider");

        BasicProvider provider = (BasicProvider) _class.newInstance();

        String option = service.getParameter("ProgID");

        if (!option.equals("")) {
            provider.setOption(OPTION_PROGID, option);
        }

        option = service.getParameter("threadingModel");

        if (option!= null && !option.equals("")) {
            provider.setOption(OPTION_THREADING_MODEL, option);
        }

        return provider;
    }
View Full Code Here


       
        try {
            V2DDProvider prov = service.getProvider();
            String[] methods = prov.getMethods();

            BasicProvider provider = null;
           
            if (prov instanceof V2DDComProvider) provider = new ComProvider();
            if (prov instanceof V2DDScriptProvider) provider = new BSFProvider();
           
            // ROBJ 911 -- this will need to be fixed now that JavaProvider really
            // exists!  But I am not sure of the intended semantics here.  Nor am
            // I sure whether any test code exists for this...?!?!
            if (provider == null) provider = new RPCProvider();
              
            provider.setOptions(prov.getOptionsTable());
            prov.newInstance(provider);
           
            for (int n = 0; n < methods.length; n++) {
                provider.addOperation(methods[n],
                                      new QName(V2DDConstants.V2DD_NS,
                                                methods[n]));
            }
           
            return provider;
View Full Code Here

                                       EngineConfiguration registry)
        throws Exception
    {
        Class _class = Class.forName("org.apache.axis.handlers.providers.ComProvider");

        BasicProvider provider = (BasicProvider) _class.newInstance();

        String option = service.getParameter("ProgID");

        if (!option.equals("")) {
            provider.setOption(ComProvider.OPTION_PROGID, option);
        }

        option = service.getParameter("CLSID");

        if (!option.equals("")) {
            provider.setOption(ComProvider.OPTION_CLSID, option);
        }

        option = service.getParameter("threadingModel");

        if (!option.equals("")) {
            provider.setOption(ComProvider.OPTION_THREADING_MODEL, option);
        }

        return provider;
    }
View Full Code Here

                                       DeploymentRegistry registry)
        throws Exception
    {
        Class _class = Class.forName("org.apache.axis.handlers.providers.ComProvider");

        BasicProvider provider = (BasicProvider) _class.newInstance();

        String option = service.getParameter("ProgID");

        if (!option.equals("")) {
            provider.setOption(ComProvider.OPTION_PROGID, option);
        }

        option = service.getParameter("CLSID");

        if (!option.equals("")) {
            provider.setOption(ComProvider.OPTION_CLSID, option);
        }

        option = service.getParameter("threadingModel");

        if (!option.equals("")) {
            provider.setOption(ComProvider.OPTION_THREADING_MODEL, option);
        }

        return provider;
    }
View Full Code Here

            SimpleTargetedChain stc = new SimpleTargetedChain();
           
            V2DDProvider prov = service.getProvider();
            String[] methods = prov.getMethods();

            BasicProvider provider = null;
           
            if (prov instanceof V2DDComProvider) provider = new ComProvider();
            if (prov instanceof V2DDScriptProvider) provider = new BSFProvider();
           
            // ROBJ 911 -- this will need to be fixed now that JavaProvider really
            // exists!  But I am not sure of the intended semantics here.  Nor am
            // I sure whether any test code exists for this...?!?!
            if (provider == null) provider = new RPCProvider();
              
            provider.setOptions(prov.getOptionsTable());
            prov.newInstance(provider);
           
            for (int n = 0; n < methods.length; n++) {
                provider.addOperation(methods[n],
                                      new QName(V2DDConstants.V2DD_NS,
                                                methods[n]));
            }
           
            return provider;
View Full Code Here

                                       EngineConfiguration registry)
        throws Exception
    {
        Class _class = ClassUtils.forName("org.apache.axis.providers.ComProvider");

        BasicProvider provider = (BasicProvider) _class.newInstance();

        String option = service.getParameter("ProgID");

        if (!option.equals("")) {
            provider.setOption(OPTION_PROGID, option);
        }

        option = service.getParameter("threadingModel");

        if (option!= null && !option.equals("")) {
            provider.setOption(OPTION_THREADING_MODEL, option);
        }

        return provider;
    }
View Full Code Here

    public void testGenerateWSDL() throws Exception {
       
        SOAPService soapService = server.getService(SERVICE_NAME);   

        BasicProvider provider = (BasicProvider) soapService.getPivotHandler();

        MessageContext mc = new MessageContext(server);
        mc.setService(soapService);
        mc.setProperty(MessageContext.TRANS_URL, "local");

        provider.generateWSDL(mc);

        Document wsdl = (Document) mc.getProperty("WSDL");
        assertNotNull( "cannot create WSDL", wsdl);
       
        Definition def = WSDLFactory.newInstance().newWSDLReader().readWSDL( null, wsdl);
View Full Code Here

TOP

Related Classes of org.apache.axis.providers.BasicProvider

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.