Examples of cleanupTransport()


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

        try {
            OMFactory factory = OMAbstractFactory.getOMFactory();
            OMElement payload = factory.createOMElement(serviceName);
            payload.addChild(parameterSer.getFirstElement());
            OMElement respOMElement = client.sendReceive(payload);
            client.cleanupTransport();
            results = UtilGenerics.cast(SoapSerializer.deserialize(respOMElement.toString(), delegator));
        } catch (Exception e) {
            Debug.logError(e, module);
        }
        return results;
View Full Code Here

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

                OMElement response = client.sendReceive(rstQn,
                                                        createIssueRequest(requestType, appliesTo));
   
                return processIssueResponse(version, response, issuerAddress);
            } finally {
                client.cleanupTransport();
            }
        } catch (AxisFault e) {
            log.error("errorInObtainingToken", e);
            throw new TrustException("errorInObtainingToken", new String[]{issuerAddress},e);
        }
View Full Code Here

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

                options.setProperty(RampartMessageData.CANCEL_REQUEST, Constants.VALUE_FALSE);
                serviceClient.sendReceive(getEchoElement());
                options.setProperty(RampartMessageData.CANCEL_REQUEST, Constants.VALUE_TRUE);
                serviceClient.sendReceive(getEchoElement());
                serviceClient.cleanupTransport();

            }

        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

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

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

    responseMessage = serviceClient.sendReceive(message);
    if (responseMessage == null) {
      throw AxisFault.makeFault(new RuntimeException(
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()

      }

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

    } finally {
      serviceClient.cleanupTransport();
    }

    Iterator<OMElement> children = responseMessage.getFirstElement()
        .getChildren();
    return children;
View Full Code Here

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

            axisFault.printStackTrace();
        }
        finally {
            if (serviceClient!= null) {
                try {
                    serviceClient.cleanupTransport();
                } catch (Exception e) {
                    log.error("Could not clean the transport", e);
                }

                try {
View Full Code Here

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

            context.completeWithFault(cid, axisFault);
        } finally {
            if (sender != null) {
                try {
                    //To release http connections to connection pool
                    sender.cleanupTransport();
                } catch (AxisFault axisFault) {
                    axisFault.printStackTrace();
                    context.completeWithFault(cid, axisFault);
                }
            }
View Full Code Here

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

            client = new ServiceClient();
            System.out.println(mesgboxUrl);
            client.getOptions().setTo(new EndpointReference(mesgboxUrl));
            OMElement response = client.sendReceive(request);
        } finally {
            client.cleanupTransport();
        }

        iterator = user.takeMessagesFromMsgBox(new EndpointReference(mesgboxUrl), timeout);
        assertTrue(iterator.hasNext());
        while (iterator.hasNext()) {
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.