Package org.apache.axis2.clientapi

Examples of org.apache.axis2.clientapi.Callback


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

        Callback callback = new Callback() {
            public void onComplete(AsyncResult result) {
                SOAPEnvelope envelope = result.getResponseEnvelope();
               
                OMElement ele = (OMElement) envelope.getBody().getFirstElement().getFirstChild();
                OMText binaryNode = (OMText) ele.getFirstChild();
View Full Code Here


            call.setTo(targetEPR);
            call.setTransportInfo(Constants.TRANSPORT_TCP,
                    Constants.TRANSPORT_TCP,
                    true);
            call.setWsaAction(operationName.getLocalPart());
            Callback callback = new Callback() {
                public void onComplete(AsyncResult result) {
                    try {
                        result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()
                                .createXMLStreamWriter(System.out));
                    } catch (XMLStreamException e) {
View Full Code Here

//        call.setWsaAction(operationName.getLocalPart());
        call.setTransportInfo(Constants.TRANSPORT_HTTP,
                Constants.TRANSPORT_HTTP,
                false);

        Callback callback = new Callback() {
            public void onComplete(AsyncResult result) {
                TestingUtils.campareWithCreatedOMElement(
                        result.getResponseEnvelope().getBody().getFirstElement());
                finish = true;
            }
View Full Code Here

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

        Callback callback = new Callback() {
            public void onComplete(AsyncResult result) {
                SOAPEnvelope envelope = result.getResponseEnvelope();

                OMElement data = (OMElement) envelope.getBody().getFirstElement().getFirstChild();
                compareWithCreatedOMText(data.getText());
View Full Code Here

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

        Callback callback = new Callback() {
            public void onComplete(AsyncResult result) {
                try {
                    result.getResponseEnvelope().serializeWithCache(XMLOutputFactory.newInstance()
                            .createXMLStreamWriter(System.out));
                } catch (XMLStreamException e) {
View Full Code Here

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

        Callback callback = new Callback() {
            public void onComplete(AsyncResult result) {
                TestingUtils.campareWithCreatedOMElement(
                        result.getResponseEnvelope().getBody().getFirstElement());
                finish = true;
            }
View Full Code Here

            call.engageModule(new QName(Constants.MODULE_ADDRESSING));

            try {
                call.setTo(targetEPR);
                call.setTransportInfo(Constants.TRANSPORT_TCP, Constants.TRANSPORT_TCP, true);
                Callback callback = new Callback() {
                    public void onComplete(AsyncResult result) {
                        try {
                            result.getResponseEnvelope().serialize(
                                new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
                        } catch (XMLStreamException e) {
View Full Code Here

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

        Callback callback = new Callback() {
            public void onComplete(AsyncResult result) {
                try {
                    result.getResponseEnvelope().serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
                } catch (XMLStreamException e) {
                    reportError(e);
View Full Code Here

            org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(serviceContext);
            call.engageModule(new QName(Constants.MODULE_ADDRESSING));

                call.setTo(targetEPR);
                call.setTransportInfo(Constants.TRANSPORT_MAIL, Constants.TRANSPORT_MAIL, true);
                Callback callback = new Callback() {
                    public void onComplete(AsyncResult result) {
                        try {
                            result.getResponseEnvelope().serialize(
                                new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
                        } catch (XMLStreamException e) {
View Full Code Here

        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(serviceContext);
        call.engageModule(new QName(Constants.MODULE_ADDRESSING));

            call.setTo(targetEPR);
            call.setTransportInfo(Constants.TRANSPORT_MAIL, Constants.TRANSPORT_MAIL, true);
            Callback callback = new Callback() {
                public void onComplete(AsyncResult result) {
                    try {
                        result.getResponseEnvelope().serialize(
                            new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
                    } catch (XMLStreamException e) {
View Full Code Here

TOP

Related Classes of org.apache.axis2.clientapi.Callback

Copyright © 2018 www.massapicom. 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.