Package org.apache.axis2.client

Examples of org.apache.axis2.client.RESTCall.sendReceive()


    ServiceClient client = new ServiceClient();
    client.getOptions().setTo(new EndpointReference(mesgboxUrl));
   
    OMElement request = OMAbstractFactory.getOMFactory().createOMElement(new QName("foo"));
    request.setText("bar");
    client.sendReceive(request);
   
    iterator = user.takeMessagesFromMsgBox(new EndpointReference(mesgboxUrl),500L);
    assertTrue(iterator.hasNext());
    iterator.next();
    assertFalse(iterator.hasNext());
View Full Code Here


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

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

    responseMessage = serviceClient.sendReceive(message);
View Full Code Here

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

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

  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

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.