Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.AxisConfiguration.cleanup()


            if (index > 10) {
                throw new AxisFault(
                        "Server was shutdown as the async response take too long to complete");
            }
        }
        sender.cleanup();
    }

    public void testEchoXMLSync() throws Exception {
        OMElement payload = createPayload();
View Full Code Here


        sender.setOptions(options);
        OMElement result = sender.sendReceive(operationName, payload);

        result.serialize(StAXUtils.createXMLStreamWriter(
                System.out));
        sender.cleanup();
    }

    public void testEchoXMLCompleteSync() throws Exception {
        OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here

        sender.setOptions(options);
        OMElement result = sender.sendReceive(operationName, payloadElement);

        result.serialize(StAXUtils.createXMLStreamWriter(
                System.out));
        sender.cleanup();

    }

    public void testEchoXMLSyncMC() throws Exception {       
        AxisOperation opdesc = new OutInAxisOperation(new QName("echoOMElement"));
View Full Code Here

        MessageContext response = opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
        SOAPEnvelope env = response.getEnvelope();
        assertNotNull(env);
        env.getBody().serialize(StAXUtils.createXMLStreamWriter(
                System.out));
        sender.cleanup();
    }


}
View Full Code Here

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

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

        message.addChild(publisherRef);

        ServiceClient client = createServiceClient(message);

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

        OMElement publisherRegistrationRef = responseMessage.getFirstChildWithName(new QName(NameSpaceConstants.WSBR_NS
                .getNamespaceURI(), "PublisherRegistrationReference"));
View Full Code Here

        try {
            OMElement subscriptionMsg = WSEProtocolClient.createSubscription(eventSinkLocation, topicExpression,
                    xpathExpression, expireTime);
            ServiceClient serviceClient = configureServiceClientForSubscription(subscriptionMsg);
            OMElement responseMessage = serviceClient.sendReceive(subscriptionMsg);
            serviceClient.cleanup();
            serviceClient.cleanupTransport();

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

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

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

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

                    xpathExpression);

            ServiceClient client = createServiceClient(message);

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

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

    public static void clear(){
        CarbonUtils.checkSecurity();
        if (configCtx != null) {
            AxisConfiguration axisConfig = configCtx.getAxisConfiguration();
            if (axisConfig != null) {
                axisConfig.cleanup();
            }
            try {
                configCtx.terminate();
            } catch (AxisFault e) {
                log.error("Error occurred while terminating ConfigurationContext", e);
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.