Package org.apache.axis2.dataretrieval.client

Examples of org.apache.axis2.dataretrieval.client.MexClient.sendReceive()


  public EndpointReference execute() throws AxisFault {
    ServiceClient serviceClient = createServiceClient();
    OMElement responseMessage = null;
    try {
      responseMessage = serviceClient.sendReceive(createMessageEl());
    } finally {
      serviceClient.cleanupTransport();
    }

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


    ServiceClient serviceClient = createServiceClient();

    OMElement responseMessage = null;

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

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

    OMElement message = createMessageEl(this.msgBoxId);
    ServiceClient serviceClient = createServiceClient(message);

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

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

            client.engageModule("rampart");

            //Process the STS and service policy policy
            this.processPolicy(issuerPolicy, servicePolicy);
           
            OMElement response = client.sendReceive(rstQn,
                                                    createIssueRequest(requestType, appliesTo));

            return processIssueResponse(version, response, issuerAddress);
        } catch (AxisFault e) {
            log.error("errorInObtainingToken", e);
View Full Code Here

            ServiceClient client = getServiceClient(rstQn, issuerAddress);
            if(action != null) {
                client.getOptions().setAction(action);
            }
           
            return processCancelResponse(client.sendReceive(rstQn,
                                                            createCancelRequest(tokenId)));
        } catch (AxisFault e) {
            log.error("errorInCancelingToken", e);
            throw new TrustException("errorInCancelingToken", e);
        }
View Full Code Here

            client.engageModule("addressing");
            client.engageModule("rampart");

            this.processPolicy(issuerPolicy, null);
           
            OMElement response = client.sendReceive(rstQn,
                                                    createValidateRequest(requestType,tokenId));
           
            return true;
           
           
View Full Code Here

        this.processPolicy(issuerPolicy, null);
       
        String tokenType = RahasConstants.TOK_TYPE_SAML_10;
       
        OMElement response = client.sendReceive(rstQn,
                                                createRenewRequest(tokenType,tokenId));
       
        return true;
       
        } catch (AxisFault e) {
View Full Code Here

        opts.setTo(myUniEP);
        opts.setAction("urn:getQuote");
        serviceClient.setOptions(opts);


        OMElement res = serviceClient.sendReceive(createPayLoad());
        System.out.println(res);
    }

    public static OMElement createPayLoad() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here

            options.setTo(epr);

            options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
            options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);

            OMElement result = client.sendReceive(element);
            return result;
        } catch (Exception ex) {
            throw AxisFault.makeFault(ex);
        }
    }
View Full Code Here

    Options options = new Options();
    options.setTo(targetEPR);
    options.setAction("urn:" + opName);
    ServiceClient sender = new ServiceClient();
    sender.setOptions(options);
    OMElement result = sender.sendReceive(payload);
    return result;
  }
 
  /**
   * Calls an operation of a target web service with the given parameters and
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.