Examples of JaxWsClientFactoryBean


Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientProxyFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsProxyFactoryBean(new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    return new CamelCxfClientImpl(getBus(), ep);
                }
            });
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    return new CamelCxfClientImpl(getBus(), ep);
                }
            };
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

*/
public class BeanPostProcessorTest extends AbstractCXFSpringTest {
   
    @Test
    public void verifyServices() throws Exception {
        JaxWsClientFactoryBean cf = new JaxWsClientFactoryBean();
        cf.setAddress("local://services/Alger");
        cf.setServiceClass(IWebServiceRUs.class);
        Client client = cf.create();
        String response = (String)client.invoke("consultTheOracle")[0];
        assertEquals("All your bases belong to us.", response);
        Service service = WebServiceRUs.getService();
        assertEquals(JAXBDataBinding.class, service.getDataBinding().getClass());
    }
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    return new CamelCxfClientImpl(getBus(), ep);
                }
            };
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.