Examples of sendReceive()


Examples of com.izforge.soapdtc.transport.HttpSoapTransport.sendReceive()

        // Try without a header handler
        message = SoapMessageUtils.readSoapMessageFromStream(getClass().getResourceAsStream("soap-message.xml"));
        try
        {
            response = soapTransport.sendReceive("http://localhost:8085/dtc/iya", message, null);
            fail("There should have been an exception here!");
        }
        catch (SoapTransportException e)
        {
            SoapMessage msg = e.getSoapMessageWithFault();
View Full Code Here

Examples of net.rim.device.api.io.messaging.BlockingSenderDestination.sendReceive()

                            DestinationFactory.createBlockingSenderDestination(
                                    _context, URI.create(_uriStr));
                }

                // Send message and wait for response
                _response = blockSendDest.sendReceive();

                if (_response != null) {
                    _completed = true;

                    // For "http"
View Full Code Here

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

            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
            options.setProperty(Constants.Configuration.ENABLE_REST_THROUGH_GET, Constants.VALUE_TRUE);

            //if post is through GET of HTTP
            OMElement response = call.sendReceive();
            response.serialize(System.out);

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

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

        Options options = new Options();
        options.setTo(
                new EndpointReference("http://127.0.0.1:10100/CommodityQuote"));
        businessClient.setOptions(options);

        OMElement response = businessClient.sendReceive(commodityPayload());

        assertNotNull(response);

        SynapseXPath xPath = new SynapseXPath("//return");
        xPath.addNamespace("ns","http://services.samples/xsd");
View Full Code Here

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

            serviceClient.sendReceiveNonBlocking(payload, new StockQuoteCallback());
            printResult();
        } else {
            long i = 0;
            while (i < iterations || infinite) {
                InnerStruct.RESULT = serviceClient.sendReceive(payload);
                i++;
                printResult();
                if (Boolean.parseBoolean(wsrm) || Boolean.parseBoolean(wsrm11)) {
                    // give some time for RM to terminate normally
                    if (Boolean.parseBoolean(wsrm11)){
View Full Code Here

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

    clientOptions.setAction(echoAction);
    clientOptions.setTo(new EndpointReference (to));
    clientOptions.setProperty(SandeshaClientConstants.UNRELIABLE_MESSAGE,"true");
    serviceClient.setOptions(clientOptions);
   
    OMElement result = serviceClient.sendReceive(getEchoOMBlock("echo1", "sync"));
   
    // Check the response
    String echoStr = checkEchoOMBlock(result);
    assertEquals(echoStr, "echo1");
   
View Full Code Here

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

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

        OMElement response = client.sendReceive(getPayload("Hello world"));
       
        System.out.println(response);
       
    }
   
View Full Code Here

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

        options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_FALSE);
        options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

        ServiceClient sender = new ServiceClient();
        sender.setOptions(options);
        return sender.sendReceive(payload);
    }

    public void setTargetEPR(String targetEPR) {
        this.targetEPR = new EndpointReference(targetEPR);
    }
View Full Code Here

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

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

        OMElement response = client.sendReceive(getPayload("Hello world"));
       
        System.out.println(response);
       
    }
   
View Full Code Here

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

        Map<String, Object> results = null;
        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);
        }
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.