Examples of cleanupTransport()


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

        OMElement responseMessage = null;
        try {
            responseMessage = serviceClient.sendReceive(message);
        } finally {
            serviceClient.cleanup();
            serviceClient.cleanupTransport();
        }

        responseMessage = serviceClient.sendReceive(message);
        if (responseMessage == null) {
            throw AxisFault.makeFault(new RuntimeException("no response recieved for subscription message"));
View Full Code Here

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

        ServiceClient client = createServiceClient(type, notificationMessage, brokerLocationEPR, timeout, null);

        OMElement ret = client.sendReceive(notificationMessage);
        client.cleanup();
        client.cleanupTransport();
        return ret;

    }

    public synchronized OMElement deliverMessage(OMElement notificationMessage, String type,
View Full Code Here

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

        ServiceClient client = createServiceClient(type, notificationMessage, brokerLocationEPR, timeout,
                topicExpressionEl);

        OMElement ret = client.sendReceive(notificationMessage);
        client.cleanup();
        client.cleanupTransport();
        return ret;

    }

    private ServiceClient createServiceClient(String type, OMElement notificationMessage,
View Full Code Here

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

        } catch (AxisFault ex) {
            throw new SendingException(ex.getCause());
        } finally {
            if (client != null) {
                try {
                    client.cleanupTransport();
                } catch (AxisFault ex) {
                    logger.error(ex.getMessage(), ex);
                }
            }
        }
View Full Code Here

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

                } catch (AxisFault ex) {
                    // Check that this is a 404 error
                    assertNull(ex.getCause());
                    assertTrue(ex.getMessage().contains("404"));
                }
                serviceClient.cleanupTransport();
            }
        } finally {
            server.stop();
        }
    }
View Full Code Here

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

        ServiceClient serviceClient = createServiceClient();
        OMElement responseMessage = null;
        try {
            responseMessage = serviceClient.sendReceive(createMessageEl());
        } finally {
            serviceClient.cleanupTransport();
        }

        if (responseMessage == null) {
            throw AxisFault.makeFault(new RuntimeException("no response recieved for subscription message"));
        }
View Full Code Here

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

        OMElement responseMessage = null;

        try {
            responseMessage = serviceClient.sendReceive(messageIn);
        } finally {
            serviceClient.cleanupTransport();
        }

        if (responseMessage == null) {
            throw AxisFault.makeFault(new RuntimeException("no response recieved for subscription message"));
        }
View Full Code Here

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

        OMElement message = createMessageEl(eventSinkReferenceEPR, filterEl, expireTime);

        ServiceClient serviceClient = createServiceClient(message);
        OMElement responseMessage = serviceClient.sendReceive(message);
        serviceClient.cleanupTransport();
        if (responseMessage == null) {
            throw AxisFault.makeFault(new RuntimeException("no response recieved for subscription message"));
        }
        OMElement responseSubscriptionsManagerElement = responseMessage.getFirstChildWithName(new QName(
                NameSpaceConstants.WSE_NS.getNamespaceURI(), "SubscriptionManager"));
View Full Code Here

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

            EndpointReference brokerLocationEPR, long timeout) throws AxisFault {

        ServiceClient client = createServiceClient(type, notificationMessage, brokerLocationEPR, timeout, null);

        OMElement ret = client.sendReceive(notificationMessage);
        client.cleanupTransport();
        return ret;

    }

    public synchronized OMElement deliverMessage(OMElement notificationMessage, String type,
View Full Code Here

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

        ServiceClient client = createServiceClient(type, notificationMessage, brokerLocationEPR, timeout,
                topicExpressionEl);

        OMElement ret = client.sendReceive(notificationMessage);
        client.cleanupTransport();
        return ret;

    }

    private ServiceClient createServiceClient(String type, OMElement notificationMessage,
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.