Examples of RPCProvider


Examples of org.apache.axis.providers.java.RPCProvider

    }

    protected void setUp() throws Exception {
        SimpleProvider config = new SimpleProvider();

        SOAPService service = new SOAPService(new RPCProvider());
        service.setOption("className", "test.inheritance.Child");
        service.setOption("allowedMethods", "*");
        config.deployService("inheritanceTest", service);

        server = new AxisServer(config);
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

            msgContext.setClassLoader( cl );

            /* Create a new RPCProvider - this will be the "service"   */
            /* that we invoke.                                                */
            /******************************************************************/
            Handler rpc = new RPCProvider();
            msgContext.setServiceHandler( rpc );

            rpc.addOption( "className", clsName );

            /** For now, allow all methods - we probably want to have a way to
            * configure this in the future.
            */
            rpc.addOption( "methodName", "*");

            rpc.init();   // ??
            if (doWsdl)
                rpc.generateWSDL(msgContext);
            else
                rpc.invoke( msgContext );
            rpc.cleanup()// ??
        }
        catch( Exception e ) {
            category.error( "JWSProcessor fault", e );
            if ( !(e instanceof AxisFault) ) e = new AxisFault( e );
            throw (AxisFault) e ;
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

    public TestSerializedRPC(String name) throws Exception {
        super(name);
        engine.init();

        // Register the reverseString service
        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "*");
        provider.deployService(SOAPAction, reverse);

        // And deploy the type mapping
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

    public void setUp() throws Exception {
        engine.init();
        localTransport.setUrl(localURL);
       
        SOAPService service = new SOAPService(new TestHandler(),
                                              new RPCProvider(),
                                              null);
       
        service.setOption("className", TestService.class.getName());
        service.setOption("allowedMethods", "*");
       
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

       
        ServiceInfo serviceInfo = AxisServiceBuilder.createServiceInfo(portInfo, cl);
        JavaServiceDesc serviceDesc = serviceInfo.getServiceDesc();

        targetGBean.setAttribute("pojoClassName", servletClassName);
        RPCProvider provider = new POJOProvider();

        SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(serviceDesc);
        service.setOption("className", servletClassName);
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

     * @param target class of the service.
     */
    public void deploy(String serviceName, Class target) {
        String className = target.getName();

        SOAPService service = new SOAPService(new RPCProvider());
        service.setOption("className", className);
        service.setOption("allowedMethods", "*");

        config.deployService(serviceName, service);
        transport.setRemoteService(serviceName);
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

    public void setUp() throws Exception {
        engine.init();
        localTransport.setUrl(localURL);
       
        SOAPService service = new SOAPService(new TestHandler(),
                                              new RPCProvider(),
                                              null);
       
        service.setOption("className", TestService.class.getName());
        service.setOption("allowedMethods", "*");
       
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

    public TestSerializedRPC(String name) throws Exception {
        super(name);
        engine.init();

        // Register the reverseString service
        SOAPService reverse = new SOAPService(new RPCProvider());
        reverse.setOption("className", "test.RPCDispatch.Service");
        reverse.setOption("allowedMethods", "*");
        provider.deployService(SOAPAction, reverse);
       
        // And deploy the type mapping
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

            // Cache the rpc service created to handle the class.  The cache
            // is based on class name, so only one .jws/.jwr class can be active
            // in the system at a time.
            SOAPService rpc = (SOAPService)soapServices.get(clsName);
            if (rpc == null) {
                rpc = new SOAPService(new RPCProvider());
                rpc.setOption(RPCProvider.OPTION_CLASSNAME, clsName );
                rpc.setEngine(msgContext.getAxisEngine());
               
                // Support specification of "allowedMethods" as a parameter.
                String allowed = (String)getOption(RPCProvider.OPTION_ALLOWEDMETHODS);
View Full Code Here

Examples of org.apache.axis.providers.java.RPCProvider

            soapHandler = null;
            return;
        }
        this.soapHandler = webContainers.iterator().next();

        RPCProvider provider = new EjbRpcProvider(ejbDeploymentContext.getDeploymentInfo(), serviceInfo.getHandlerInfos());
        SOAPService service = new SOAPService(null, provider, null);

        JavaServiceDesc serviceDesc = serviceInfo.getServiceDesc();
        service.setServiceDescription(serviceDesc);
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.