Examples of invokeBlocking()


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

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

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

            MessageContext result =
                    inOutMC.invokeBlocking(
                            serviceContext.getAxisService().getOperation(operationName),
                            msgctx);
        } catch (Exception e) {
            e.printStackTrace();
            fail("Exception Occurred !! ." + e.getMessage());
View Full Code Here

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

            options.setUseSeparateListener(false);
            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.invokeBlocking();
            response.serialize(System.out);

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

Examples of org.apache.axis2.clientapi.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

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

        }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

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

            MessageContext msgCtx = new MessageContext(configCtx);

            OperationDescription opDesc = new OperationDescription(new QName(""));
            SOAPEnvelope requestEnvilope = util.getEchoSoapEnvelope();
            msgCtx.setEnvelope(requestEnvilope);
            MessageContext resMsgCtx = call.invokeBlocking(opDesc, msgCtx);
            retEnvelope = resMsgCtx.getEnvelope();

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

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

            ConfigurationContext configCtx = new ConfigurationContext(axisConfig);
            MessageContext msgCtx = new MessageContext(configCtx);
            OperationDescription opDesc = new OperationDescription(new QName(""));
            SOAPEnvelope requestEnvilope = util.getEchoSoapEnvelope();
            msgCtx.setEnvelope(requestEnvilope);
            MessageContext responseMCtx = call.invokeBlocking(opDesc, msgCtx);
            resEnv = responseMCtx.getEnvelope();

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

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

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

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

            StringWriter writer = new StringWriter();


View Full Code Here

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

        msgCtx.setEnvelope(reqEnv);


        QName opName = new QName("");
        OperationDescription opDesc = new OperationDescription(opName);
        MessageContext retMsgCtx = call.invokeBlocking(opDesc, msgCtx);
        //SOAPEnvelope responseEnvelop = replyContext.getEnvelope();
        retEnv = retMsgCtx.getEnvelope();

        return retEnv;
    }
View Full Code Here

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

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

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


        } catch (Exception e) {
            throw new 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.