Package org.apache.axis

Examples of org.apache.axis.SimpleTargetedChain$PivotIndicator


            EngineConfiguration defaultConfig =
                (new DefaultEngineConfigurationFactory()).
                getClientEngineConfig();
            SimpleProvider config = new SimpleProvider(defaultConfig);
            SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
            config.deployTransport("tcp", c);

            Service service = new Service(config);

            Call     call    = (Call) service.createCall();
View Full Code Here


            // been deployed to it
            Service service = new Service();
            service.setEngine( msgContext.getAxisEngine().getClientEngine() );
            Call    call = (Call) service.createCall();

            SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
            // !!! FIXME
            //service.getEngine().deployTransport("tcp", c);
   
            // add TCP for proxy testing
            call.addTransportPackage("samples.transport");
View Full Code Here

                /*   Protocol Specific-Handler/Checker                        */
                /**************************************************************/

                // When do we call init/cleanup??

                SimpleTargetedChain service = null ;
                msgContext.setPastPivot(false);

                /* Process the Service Specific Request Chain */
                /**********************************************/
                hName =  msgContext.getTargetService();
                if ( hName != null && (h = getService( hName )) != null ) {
                    if ( h instanceof SimpleTargetedChain ) {
                        service = (SimpleTargetedChain) h ;
                        h = service.getRequestHandler();
                    }
                    if ( h != null ) h.invoke( msgContext );
                }

                /* Process the Global Request Chain */
                /**********************************/
                if ((h = getGlobalRequest()) != null )
                    h.invoke(msgContext);

                /** Process the Transport Specific stuff
                 *
                 * NOTE: Somewhere in here there is a handler which actually
                 * sends the message and receives a response.  Generally
                 * this is the pivot point in the Transport chain.
                 */
                hName = msgContext.getTransportName();
                if ( hName != null && (h = getTransport( hName )) != null )
                    h.invoke(msgContext);
                else
                    throw new AxisFault(JavaUtils.getMessage("noTransport00", hName));

                /* Process the Global Response Chain */
                /***********************************/
                if ((h = getGlobalResponse()) != null)
                    h.invoke(msgContext);

                if ( service != null ) {
                    h = service.getResponseHandler();
                    if ( h != null )
                        h.invoke(msgContext);
                }

                // Do SOAP Semantics checks here - this needs to be a call to
View Full Code Here

        // we would create an instance of the SOAP v2.x
        // compatible handler here using the service
        // definition to configure the instance
       
        try {
            SimpleTargetedChain stc = new SimpleTargetedChain();
           
            V2DDProvider prov = service.getProvider();
            String[] methods = prov.getMethods();

            BasicProvider provider = null;
View Full Code Here

            // been deployed to it
            Service service = new Service();
            service.setEngine( msgContext.getAxisEngine().getClientEngine() );
            Call    call = (Call) service.createCall();

            SimpleTargetedChain c = new SimpleTargetedChain();
            c.setPivotHandler(new TCPSender());
      service.getEngine().deployTransport("tcp", c);
   
            // add TCP for proxy testing
            call.addTransportPackage("samples.transport");
            call.setTransportForProtocol("tcp", TCPTransport.class);
View Full Code Here

    private void buildDelegateService() {
        TypeMappingRegistryImpl typeMappingRegistry = new TypeMappingRegistryImpl();
        typeMappingRegistry.doRegisterFromVersion("1.3");

        SimpleProvider engineConfiguration = new SimpleProvider(typeMappingRegistry);
        engineConfiguration.deployTransport("http", new SimpleTargetedChain(new HTTPSender()));

        GeronimoAxisClient engine = new GeronimoAxisClient(engineConfiguration, portToImplementationMap);

        delegate = new Service(engineConfiguration, engine);
    }
View Full Code Here

        try {
            org.apache.axis.client.AdminClient client =
                new org.apache.axis.client.AdminClient(System.err);

            SimpleTargetedChain c = new SimpleTargetedChain();
            c.setPivotHandler(new TCPSender());
            client.getCall().getService().getEngine().deployTransport("tcp", c);

            System.out.println(client.process(args));
        }
        catch( Exception e ) {
View Full Code Here

        symbol = args[0] ;
       
        Service service = new Service();
        Call call = (Call)service.createCall();
       
        SimpleTargetedChain c = new SimpleTargetedChain();
        c.setPivotHandler(new TCPSender());
        service.getEngine().deployTransport("tcp", c);
       
        call.setTransport(new TCPTransport());
       
        call.setTargetEndpointAddress( new URL(opts.getURL()) );
View Full Code Here

            // get the input stream
            if ( engine == null ) {
                engine = new AxisServer();
                engine.init();

                SimpleTargetedChain c = new SimpleTargetedChain();
                c.setPivotHandler(new TCPSender());

                try {
                    engine.deployTransport(transportName, c);
                } catch (DeploymentException e) {
                    // !!! We're toast.  What to do about it?
View Full Code Here

        Call     call    = (Call) service.createCall();

        AxisEngine engine = service.getEngine();

        // Manually deploy file sender and file transport for this example
        SimpleTargetedChain c = new SimpleTargetedChain();
        c.setPivotHandler(new FileSender());
        engine.deployTransport("FileTransport", c);

        call.setOperationName( "getQuote" );
        call.addParameter( "symbol", XMLType.XSD_STRING, Call.PARAM_MODE_IN );
        call.setProperty( Call.NAMESPACE, "urn:xmltoday-delayed-quotes" );
View Full Code Here

TOP

Related Classes of org.apache.axis.SimpleTargetedChain$PivotIndicator

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.