Package org.apache.axis2.client

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


        call.setTransportInfo(Constants.TRANSPORT_HTTP,
                Constants.TRANSPORT_HTTP,
                false);
        call.setDoREST(true);

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

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


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

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

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

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

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

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

      call.setTransportInfo(Constants.TRANSPORT_HTTP,
          Constants.TRANSPORT_HTTP, false);
      call.set(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);

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

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

        call.setTo(
                new EndpointReference(url.toString()));
        try {
            responseElement =
                    call.invokeBlocking("doGoogleSpellingSugg",
                            requestElement);
        } catch (AxisFault axisFault) {
            observer.updateError(axisFault.getMessage());
        }
View Full Code Here

            call.setTransportInfo(Constants.TRANSPORT_HTTP,
                    Constants.TRANSPORT_HTTP,
                    true);

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

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

        call.setTransportInfo(Constants.TRANSPORT_TCP,
                Constants.TRANSPORT_TCP,
                false);
        //call.engageModule(new QName(Constants.MODULE_ADDRESSING));

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

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

            call.setTransportInfo(Constants.TRANSPORT_HTTP,
                    Constants.TRANSPORT_HTTP,
                    false);
            call.setTo(targetEPR);
            SOAPEnvelope resEnv =
                    (SOAPEnvelope) call.invokeBlocking(
                            operationName.getLocalPart(), method);

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

        call.setTo(targetEPR);
        call.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.setTo(
                    new EndpointReference(url.toString()));
            String axisOp = request.getSOAPBody().getFirstChild().getNodeName();
            NodeImpl bodyContentNode = (NodeImpl)request.getSOAPBody().getFirstChild();
            OMElement bodyContent = (OMElement)bodyContentNode.getOMNode();
            OMElement result = call.invokeBlocking(axisOp, bodyContent);
            org.apache.axis2.soap.SOAPEnvelope responseEnv = (org.apache.axis2.soap.SOAPEnvelope) ((OMElement)result.getParent()).getParent();
            SOAPEnvelopeImpl response = new SOAPEnvelopeImpl(responseEnv);
           
            SOAPMessageImpl sMsg = new SOAPMessageImpl(response);
            extractAttachmentNodes(responseEnv, sMsg);
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.