Examples of CXFConnectionFactory


Examples of org.apache.cxf.connector.CXFConnectionFactory

        Context ctx = new InitialContext();

        // retrieve the connection factory from JNDI
        //
        CXFConnectionFactory factory = (CXFConnectionFactory)ctx.lookup(EIS_JNDI_NAME);
           
        URL wsdlLocation = getClass().getResource("/wsdl/hello_world.wsdl");

        QName serviceName =
            new QName("http://apache.org/hello_world_soap_http", "SOAPService");
        QName portName = new QName("http://apache.org/hello_world_soap_http", "SoapPort");


        // create the connection
        //
        return (Connection)factory.getConnection(Greeter.class, wsdlLocation, serviceName, portName);
    }
View Full Code Here

Examples of org.apache.cxf.connector.CXFConnectionFactory

        Context ctx = new InitialContext();

        // retrieve the connection factory from JNDI
        //
        CXFConnectionFactory factory = (CXFConnectionFactory)ctx.lookup(EIS_JNDI_NAME);
           
        URL wsdlLocation = getClass().getResource("/wsdl/hello_world.wsdl");

        QName serviceName =
            new QName("http://apache.org/hello_world_soap_http", "SOAPService");
        QName portName = new QName("http://apache.org/hello_world_soap_http", "SoapPort");


        // create the connection
        //
        CXFConnectionRequestInfo requestInfo = new CXFConnectionRequestInfo(Greeter.class,
                                                                            wsdlLocation,
                                                                            serviceName,
                                                                            portName);
        return (Connection)factory.getConnection(requestInfo);
    }
View Full Code Here

Examples of org.apache.cxf.connector.CXFConnectionFactory

        Context ctx = new InitialContext();

        // retrieve the connection factory from JNDI
        //
        CXFConnectionFactory factory = (CXFConnectionFactory)ctx.lookup(EIS_JNDI_NAME);
           
        URL wsdlLocation = getClass().getResource("/wsdl/hello_world.wsdl");

        QName serviceName =
            new QName("http://apache.org/hello_world_soap_http", "SOAPService");
        QName portName = new QName("http://apache.org/hello_world_soap_http", "SoapPort");


        // create the connection
        //
        CXFConnectionRequestInfo requestInfo = new CXFConnectionRequestInfo(Greeter.class,
                                                                            wsdlLocation,
                                                                            serviceName,
                                                                            portName);
        return (Connection)factory.getConnection(requestInfo);
    }
View Full Code Here

Examples of org.apache.cxf.jca.outbound.CXFConnectionFactory


        // retrieve the connection factory from JNDI
        //
        Context ctx = new InitialContext();
        CXFConnectionFactory factory = (CXFConnectionFactory)ctx.lookup(EIS_JNDI_NAME);

        // create the connection
        //
        CXFConnectionSpec spec = new CXFConnectionSpec();
        spec.setWsdlURL(getClass().getResource("/wsdl/hello_world.wsdl"));
        spec.setBusConfigURL(getClass().getResource("/etc/cxf_client.xml"));
        spec.setServiceName(new QName("http://apache.org/hello_world_soap_http", "SOAPService"));
        spec.setEndpointName(new QName("http://apache.org/hello_world_soap_http", "SoapPort"));
        spec.setServiceClass(Greeter.class);
        return factory.getConnection(spec);
    }
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.