Package org.apache.axis2.client

Examples of org.apache.axis2.client.Call.invokeBlocking()


                    opStr = "substract";
                } else if ("*".equals(operation)) {
                    opStr = "multiply";
                }
                System.out.println("Invoking...");
                SOAPEnvelope result = call.invokeBlocking(opStr, getRequestEnvelope(opStr, param1, param2,
                        serviceGroupContextId));
                printResult(result);

                if (serviceGroupContextId == null)
                    serviceGroupContextId = getServiceGroupContextId(result);
View Full Code Here


                } else if ("*".equals(operation)) {
                    opStr = "multiplyPrevious";
                }

                System.out.println("Invoking...");
                SOAPEnvelope result = call.invokeBlocking(opStr, getPreviousRequestEnvelope(opStr, param,
                        serviceGroupContextId));
                printResult(result);

            }

View Full Code Here

            options.setTo(targetEPR);
            options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
            options.setUseSeparateListener(false);

            //Blocking invocation
            OMElement result = call.invokeBlocking("echo",
                    payload);

            StringWriter writer = new StringWriter();
            result.serialize(XMLOutputFactory.newInstance()
                    .createXMLStreamWriter(writer));
View Full Code Here

        options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);

        Call call = new Call();
        call.setClientOptions(options);

        OMElement result = call.invokeBlocking("echo", getPayload());

        try {
            XMLStreamWriter writer = XMLOutputFactory.newInstance()
                    .createXMLStreamWriter(System.out);
            result.serialize(writer);
View Full Code Here

        options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
        options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
        options.setUseSeparateListener(false);

        call.setClientOptions(options);
        return call.invokeBlocking(operationName
                .getLocalPart(),
                payload);

    }
View Full Code Here

        options.setTransportInfo(Constants.TRANSPORT_HTTP,
                Constants.TRANSPORT_HTTP, false);

        //Blocking invocation via wsa mapping
        options.setAction("urn:sample/echo");
        OMElement result = (OMElement) call.invokeBlocking("echo", getBody());

        StringWriter writer = new StringWriter();
        result.serialize(writer);
        writer.flush();
View Full Code Here

                    Constants.TRANSPORT_HTTP,
                    false);
            options.setTo(targetEPR);
           
            SOAPEnvelope resEnv =
                    (SOAPEnvelope) call.invokeBlocking(
                            "echoOMElement", method);

            SOAPBody sb = resEnv.getBody();
            if (sb.hasFault()) {
                throw new AxisFault(
View Full Code Here

                    Constants.TRANSPORT_HTTP,
                    false);
            call.setClientOptions(options);

            OMElement result =
                    call.invokeBlocking(operationName.getLocalPart(),
                            payload);
            TestingUtils.campareWithCreatedOMElement(result);
            call.close();
            log.info("Finishing Thread number "+ threadNumber + " .....");
        } catch (AxisFault axisFault) {
View Full Code Here

        clientOptions.setTo(targetEPR);
        clientOptions.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP,
                false);

        OMElement result =
                call.invokeBlocking(operationName.getLocalPart(),
                        payload);
        TestingUtils.campareWithCreatedOMElement(result);
        call.close();
    }
}
View Full Code Here

            call.setClientOptions(options);
            options.setTo(new EndpointReference(this.stsUrl));
            options.setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, this.outConfig.getProperty());
            options.setProperty(WSSHandlerConstants.INFLOW_SECURITY, this.inConfig.getProperty());

            OMElement res = call.invokeBlocking(Constants.LN.REQUEST_SECURITY_TOKEN, this.prepareRequst(rst));
            RequestSecurityTokenResponse rstr = new RequestSecurityTokenResponse(res);
            return rstr;
        } catch (AxisFault e) {
            throw new TrustException("Problem in communicating with the SecurityTokenService", 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.