Examples of sendRobust()


Examples of org.apache.axis2.client.ServiceClient.sendRobust()

                new EndpointReference(toEpr));
        ServiceClient servicClient = new ServiceClient();

        servicClient.setOptions(options);

        servicClient.sendRobust(getPayload());
    }

    private static OMElement getPayload() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace(
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

        EndpointReference epr =
                new EndpointReference("http://localhost:9763/services/SecurityVerifierService");
        opts.setTo(epr);

        client.setOptions(opts);
        client.sendRobust(createPayLoad());   // robust send. Will get reply only if there is a fault
        System.out.println("sent the message");
    }

    public static OMElement createPayLoad() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

        try {
            if (i == WSDLConstants.MEP_CONSTANT_IN_OUT) {
                client.sendReceive(element);
            } else {
                client.sendRobust(element);
            }
        } catch (AxisFault axisFault) {
            env = getResponseEnvelope(client);
            if (env != null && env.getBody().hasFault()) {
                throw new AxisFault(env.getBody().getFault());
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

        client.setOptions(opts);
        Runnable runnable = new Runnable() {
            public void run() {
                try {
                    client.sendRobust(createPayLoad());   // robust send. Will get reply only if there is a fault
                } catch (AxisFault axisFault) {
                    axisFault.printStackTrace();
                }
            }
        };
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

            client.addHeader(action);
            client.addHeader(msgId);
            client.addHeader(to);
        }
        client.setOptions(opts);
        client.sendRobust(messageEl);

    }

    private List<OMElement> elementsAsList(OMElement responseMessage) {
        List<OMElement> list = new ArrayList<OMElement>();
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

        try {

            client = configureServiceClient(actionString, consumerReference, additionalMessageContent.getMessageID(),
                    soapHeaders);

            client.sendRobust(message);

        } catch (AxisFault ex) {
            throw new SendingException(ex.getCause());
        } finally {
            if (client != null) {
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

            client.addHeader(to);
        }
        client.setOptions(opts);

        try {
            client.sendRobust(message);
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }finally {
            client.cleanup();
            client.cleanupTransport();
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

            client.addHeader(msgId);
            client.addHeader(to);
        }
        client.setOptions(opts);
        try {
            client.sendRobust(message);
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }finally {
            client.cleanupTransport();
        }
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

        try {

            client = configureServiceClient(actionString, consumerReference, additionalMessageContent.getMessageID(),
                    soapHeaders);

            client.sendRobust(message);

        } catch (AxisFault ex) {
            throw new SendingException(ex.getCause());
        } finally {
            if (client != null) {
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.sendRobust()

            client.addHeader(action);
            client.addHeader(msgId);
            client.addHeader(to);
        }
        client.setOptions(opts);
        client.sendRobust(messageEl);

    }

    private List<OMElement> elementsAsList(OMElement responseMessage) {
        List<OMElement> list = new ArrayList<OMElement>();
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.