Package org.apache.axis2.soap

Examples of org.apache.axis2.soap.SOAPFaultRole.serializeWithCache()


                false);

        OMElement result =
                call.invokeBlocking(operationName.getLocalPart(),
                        payload);
        result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(
                                System.out));
        call.close();
    }

    public void testEchoXMLCompleteSync() throws Exception {
View Full Code Here


                Constants.TRANSPORT_TCP,
                true);

        OMElement result = call.invokeBlocking(
                operationName.getLocalPart(), method);
        result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(
                                System.out));
        call.close();

    }
View Full Code Here

            if (descriptionElement !=null) {
                OMElement descriptionValue = descriptionElement.getFirstElement();
                if(descriptionValue !=null){
                    StringWriter writer = new StringWriter();
                    descriptionValue.build();
                    descriptionValue.serializeWithCache(new
                            OMOutputImpl(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
                    writer.flush();
                    service.setServiceDescription(writer.toString());
                } else {
                    service.setServiceDescription(descriptionElement.getText());
View Full Code Here

            OMElement firstChild =
                (OMElement) inMessage.getEnvelope().getBody().getFirstChild();
            inMessage.getEnvelope().build();
            StringWriter writer = new StringWriter();
            firstChild.build();
            firstChild.serializeWithCache(
                new OMOutputImpl(
                    XMLOutputFactory.newInstance().createXMLStreamWriter(
                        writer)));
            writer.flush();
            String value = writer.toString();
View Full Code Here

            OMElement firstChild =
                (OMElement) inMessage.getEnvelope().getBody().getFirstChild();
            inMessage.getEnvelope().build();
            StringWriter writer = new StringWriter();
            firstChild.build();
            firstChild.serializeWithCache(
                new OMOutputImpl(
                    XMLOutputFactory.newInstance().createXMLStreamWriter(
                        writer)));
            writer.flush();
            String value = writer.toString();
View Full Code Here

            call.setRestThroughPOST(false);

            //if post is through GET of HTTP
            OMElement response = call.invokeBlocking();
            XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
            response.serializeWithCache(new OMOutputImpl(writer));
            writer.flush();

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

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

        OMElement result =
                (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
        result.serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out)));
        call.close();
        System.out.println(i);
      }
    }
View Full Code Here

                false);

        OMElement result =
                call.invokeBlocking(operationName.getLocalPart(),
                        payload);
        result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(
                                System.out));
        call.close();
    }

    public void testEchoXMLCompleteSync() throws Exception {
View Full Code Here

                Constants.TRANSPORT_TCP,
                true);

        OMElement result = call.invokeBlocking(
                operationName.getLocalPart(), method);
        result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(
                                System.out));
        call.close();

    }
View Full Code Here

                false);
        call.setDoREST(true);
        OMElement result =
                call.invokeBlocking(operationName.getLocalPart(),
                        payload);
        result.serializeWithCache(XMLOutputFactory.newInstance().createXMLStreamWriter(
                                System.out));

        call.close();
    }
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.