Package org.apache.axis2.client

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


        } catch (AxisFault e) {
            throw new MsgBrokerClientException("unable to send the subscription", e);
        } finally {
            try {
                serviceClient.cleanup();
                serviceClient.cleanupTransport();
            } catch (AxisFault e) {
                throw new MsgBrokerClientException("unable to send the subscription", e);
            }
        }
View Full Code Here

        } catch (AxisFault e) {
            throw new MsgBrokerClientException("unable to send unsubscribe msg", e);
        } finally {
            try {
                client.cleanup();
                client.cleanupTransport();
            } catch (AxisFault e) {
                throw new MsgBrokerClientException("unable to send unsubscribe msg", e);
            }
        }
        return true;
View Full Code Here

            }
           
            return response;
        } finally {
            try {
                serviceClient.cleanupTransport();
                serviceClient.cleanup();
            } catch (AxisFault ex) {
                throw new SOAPException(ex);
            }
        }
View Full Code Here

            }
           
            return response;
        } finally {
            try {
                serviceClient.cleanupTransport();
                serviceClient.cleanup();
            } catch (AxisFault ex) {
                throw new SOAPException(ex);
            }
        }
View Full Code Here

                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

                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

            OMElement response = serviceClient.sendReceive(msg);
            // build response to materialize lazy information
            response.build();
            return response;
        } finally {
            serviceClient.cleanupTransport();
        }
    }

    /**
     * Builds a message for the deployment and management API using simple parameter
View Full Code Here

            OMElement response = serviceClient.sendReceive(msg);
            // build response to materialize lazy information
            response.build();
            return response;
        } finally {
            serviceClient.cleanupTransport();
        }
    }

    /**
     * Builds a message for the deployment and management API using simple parameter
View Full Code Here

            }
           
            return response;
        } finally {
            try {
                serviceClient.cleanupTransport();
                serviceClient.cleanup();
            } catch (AxisFault ex) {
                throw new SOAPException(ex);
            }
        }
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.