Package org.apache.axis2.client

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


            options.setExceptionToBeThrownOnSOAPFault(false);
            options.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
            options.setSoapAction(soapAction);
            //Blocking invocation

            firstchild = call.invokeBlocking("", util.getEchoOMElement());


        } catch (Exception e) {
            throw new AxisFault(e);
        }
View Full Code Here


            options.setTo(targetEPR);

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

            OMElement result = call.invokeBlocking(
                    operationName.getLocalPart(), method);
            result.serializeAndConsume(XMLOutputFactory.newInstance().createXMLStreamWriter(
                    System.out));
            fail("the test must fail due to bad service Name");
        } catch (AxisFault e) {
View Full Code Here

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

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

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

            //Blocking invocation

            firstchild = call.invokeBlocking("",util.getEchoOMElement());

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();

        }
View Full Code Here

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

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

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

            OMElement resultElem = call.invokeBlocking(operationName.getLocalPart(), payload);


            assertNotNull("Result is null", resultElem);
            String result = ((OMElement) resultElem.getFirstOMChild()).getText();
View Full Code Here

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

            //Blocking invocation

            firstchild = call.invokeBlocking("", util.getEchoOMElement());


        } catch (Exception e) {
            throw new AxisFault(e);
        }
View Full Code Here

                Constants.VALUE_TRUE);
        options.setTransportInfo(Constants.TRANSPORT_HTTP,
                Constants.TRANSPORT_HTTP, false);
        options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);

        OMElement resultElem = call.invokeBlocking("EchoTestSingle", BodyElements.bodySingle(optimized));
        responseAssertion(resultElem, optimized);
    }

    public void testNonOptimized() throws Exception {
        runTest(false);
View Full Code Here

                Constants.VALUE_TRUE);
        options.setTransportInfo(Constants.TRANSPORT_HTTP,
                Constants.TRANSPORT_HTTP, false);
        options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);

        OMElement resultElem = call.invokeBlocking("EchoTestMultiple", BodyElements.bodyMultiple(optimized, repeat));
        responseAssertion(resultElem);
    }

    public void testNonOptimized() throws Exception {
        runTest(false, repeat);
View Full Code Here

            options.setExceptionToBeThrownOnSOAPFault(false);
            options.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
            options.setSoapAction(soapAction);
            //Blocking invocation

            firstchild = call.invokeBlocking("",util.getEchoOMElement());

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();

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.