Examples of cleanupTransport()


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

        OMElement message = factory.createOMElement("PauseSubscription", NameSpaceConstants.WSNT_NS);

        ServiceClient client = createServiceClient(message);
        client.sendReceive(message);
        client.cleanupTransport();
    }

    public void resumeSubscription() throws AxisFault {

        OMElement message = factory.createOMElement("ResumeSubscription", NameSpaceConstants.WSNT_NS);
View Full Code Here

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

        OMElement message = factory.createOMElement("ResumeSubscription", NameSpaceConstants.WSNT_NS);

        ServiceClient client = createServiceClient(message);
        client.sendReceive(message);
        client.cleanupTransport();

    }

    private ServiceClient createServiceClient(OMElement message) throws AxisFault {
View Full Code Here

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

            ServiceClient client = createServiceClient(message);

            OMElement responseMessage = client.sendReceive(message);
            client.cleanup();
            client.cleanupTransport();

            OMElement sr = responseMessage.getFirstChildWithName(new QName(
                    NameSpaceConstants.WSNT_NS.getNamespaceURI(), "SubscriptionReference"));

            if (sr == null) {
View Full Code Here

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

            ServiceClient client = new ServiceClient();
            client.setOptions(opts);
            CommonRoutines.setHeaders(soapAction, brokerEndpointRef.getAddress(), client, identifierEl);

            client.sendReceive(message);
            client.cleanupTransport();

        } catch (AxisFault e) {
            throw new MsgBrokerClientException("unable to send subscribe msg", e);
        }
View Full Code Here

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

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

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

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

    public void setTerminationTime(Calendar cal) throws AxisFault {
        String uuid = UUIDGenerator.getUUID();
View Full Code Here

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

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

    }

    public List<OMElement> getResourceProperty(QName qn) throws AxisFault { // List<XmlElement>
View Full Code Here

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

        OMElement responseMessage = null;
        try {
            responseMessage = serviceClient.sendReceive(createMessageEl());
        } finally {
            serviceClient.cleanup();
            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()

        try {
            responseMessage = serviceClient.sendReceive(messageIn);
        } finally {
            serviceClient.cleanup();
            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()

            responseMessage.build(); // free the input stream.

        } finally {
            serviceClient.cleanup();
            serviceClient.cleanupTransport();
        }

        return (Iterator<OMElement>) responseMessage.getFirstElement().getChildren();
    }
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.