Package org.jibx.ws.soap.client

Examples of org.jibx.ws.soap.client.SoapClient


        m_location = location;
        m_fact = BindingDirectory.getFactory("example_binding", "org.jibx.ws.example.custom.exception.common");
    }

    private Object sayHello(Greetee s) throws WsException, IOException {
        SoapClient client = new SoapClient(m_location, m_fact);
        return client.call(s);
    }
View Full Code Here


     * @return a {@link SoapClient}
     */
    public Client createClient(String location, IBindingFactory factory, MessageOptions options)
        throws WsBindingException, WsConfigurationException {

        return new SoapClient(location, factory, options, this);
    }
View Full Code Here

        m_location = location;
        m_fact = BindingDirectory.getFactory(Greetee.class);
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        Client client = new SoapClient(m_location, m_fact);
        return (Welcome) client.call(s);
    }
View Full Code Here

        m_location = location;
        m_fact = BindingDirectory.getFactory(Greetee.class);
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        SoapClient client = new SoapClient(m_location, m_fact);
        client.addInFaultDetailsHandler(new ExceptionReader());
        Welcome welcome = (Welcome) client.call(s);
        return welcome;
    }
View Full Code Here

        m_location = location;
        m_fact = BindingDirectory.getFactory(Greetee.class);
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        SoapClient client = new SoapClient(m_location, m_fact);
        client.addOutHeader(new Locale("fr"));
        UnmarshallingInHandler headerHandler = new UnmarshallingInHandler(QOS.class);
        client.addInHeaderHandler(headerHandler);
        Welcome welcome = (Welcome) client.call(s);
        System.out.println("QOS: " + headerHandler.getPayload());
        return welcome;
    }
View Full Code Here

        m_location = location;
        m_fact = BindingDirectory.getFactory("example_binding", "org.jibx.ws.example.fault.custom.common");
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        SoapClient client = new SoapClient(m_location, m_fact);
        Welcome welcome = (Welcome) client.call(s);
        return welcome;
    }
View Full Code Here

        m_location = location;
        m_fact = BindingDirectory.getFactory(Greetee.class);
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        Client client = new SoapClient(m_location, m_fact);
        return (Welcome) client.call(s);
    }
View Full Code Here

        m_outInterceptor = new CopiedOutputStreamInterceptor(m_requestBaos);
        m_inInterceptor = new CopiedInputStreamInterceptor(m_responseBaos);
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        SoapClient client = new SoapClient(m_location, m_fact);
        TransportOptions transportOptions = TransportDirectory.newTransportOptions(m_location);
        if (transportOptions instanceof OutputStreamInterceptable) {
            ((OutputStreamInterceptable)transportOptions).setOutputStreamInterceptor(m_outInterceptor);
        }
        if (transportOptions instanceof InputStreamInterceptable) {
            ((InputStreamInterceptable)transportOptions).setInputStreamInterceptor(m_inInterceptor);
        }
        client.setTransportOptions(transportOptions);
       
        Welcome welcome = (Welcome) client.call(s);
        System.out.println("Request is " + m_requestBaos.toString());
        System.out.println("Response is " + m_responseBaos.toString());
        return welcome;
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.soap.client.SoapClient

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.