Package com.volantis.xml.pipeline.sax.impl.drivers.webservice

Examples of com.volantis.xml.pipeline.sax.impl.drivers.webservice.Part


     * @param buffer
     */
    private static void addMessageToBuffer(Message input,
                                           StringBuffer buffer) {
        for (int i = 0; i < input.size(); i++) {
            Part part = input.retrievePart(i);
            buffer.append('<').append(part.getName()).append(">\n");
            buffer.append(part.getValue());
            buffer.append("</").append(part.getName()).append(">\n");
        }
    }
View Full Code Here


        for (int i = 0; i < parts.size(); i++) {
            javax.wsdl.Part wsdlPart = (javax.wsdl.Part)parts.get(i);
            String partName = wsdlPart.getName();
            Object value = output.getObjectPart(partName);
            Part wsDriverPart = new Part();
            wsDriverPart.setName(partName);
            wsDriverPart.setValue(value);
            result.addPart(wsDriverPart);
        }

        return result;
    }
View Full Code Here

                                    " equivalent has " + wsDriverMessage.size());
        }

        for (int i = 0; i < parts.size(); i++) {
            javax.wsdl.Part wsdlPart = (javax.wsdl.Part)parts.get(i);
            Part wsDriverPart = wsDriverMessage.retrievePart(i);

            if (!wsDriverPart.getName().equals(wsdlPart.getName())) {
                // Both sets of parts should be in the same order and have the
                // same set of part names.
                throw new WSIFException("Unexpected part name. Expected \"" +
                                        wsdlPart.getName() + "\" but was \"" +
                                        wsDriverPart.getName() + "\".");
            }

            wsifMessage.setObjectPart(wsDriverPart.getName(),
                                      wsDriverPart.getValue());

        }
    }
View Full Code Here

     * @param buffer
     */
    private static void addMessageToBuffer(Message input,
                                           StringBuffer buffer) {
        for (int i = 0; i < input.size(); i++) {
            Part part = input.retrievePart(i);
            buffer.append('<').append(part.getName()).append(">\n");
            buffer.append(part.getValue());
            buffer.append("</").append(part.getName()).append(">\n");
        }
    }
View Full Code Here

        for (int i = 0; i < parts.size(); i++) {
            javax.wsdl.Part wsdlPart = (javax.wsdl.Part)parts.get(i);
            String partName = wsdlPart.getName();
            Object value = output.getObjectPart(partName);
            Part wsDriverPart = new Part();
            wsDriverPart.setName(partName);
            wsDriverPart.setValue(value);
            result.addPart(wsDriverPart);
        }

        return result;
    }
View Full Code Here

                                    " equivalent has " + wsDriverMessage.size());
        }

        for (int i = 0; i < parts.size(); i++) {
            javax.wsdl.Part wsdlPart = (javax.wsdl.Part)parts.get(i);
            Part wsDriverPart = wsDriverMessage.retrievePart(i);

            if (!wsDriverPart.getName().equals(wsdlPart.getName())) {
                // Both sets of parts should be in the same order and have the
                // same set of part names.
                throw new WSIFException("Unexpected part name. Expected \"" +
                                        wsdlPart.getName() + "\" but was \"" +
                                        wsDriverPart.getName() + "\".");
            }

            wsifMessage.setObjectPart(wsDriverPart.getName(),
                                      wsDriverPart.getValue());

        }
    }
View Full Code Here

        operation.setWsdlURI(wsdlURI);
        operation.setPortType(portType);
        operation.setOperationName(operationName);

        // Set up the message
        Part part = new Part();
        part.setName("translationmode");
        part.setValue(translation);
        message.addPart(part);

        part = new Part();
        part.setName("sourcedata");
        part.setValue(text);
        message.addPart(part);
    }
View Full Code Here

        operation.setWsdlURI(wsdlURI);
        operation.setPortType(portType);
        operation.setOperationName(operationName);

        // Set up the message
        Part part = new Part();
        part.setName("parameters");
        part.setValue("<ReverseString>"+string+"</ReverseString>");
        message.addPart(part);

    }
View Full Code Here

        operation.setWsdlURI(wsdlURI);
        operation.setPortType(portType);
        operation.setOperationName(operationName);

        // Set up the message
        Part part = new Part();
        part.setName("KeywordSearchRequest");

        StringBuffer buffer = new StringBuffer();
        buffer.append("<keyword>" + author + "</keyword>\n");
        buffer.append("<page>1</page>\n");
        buffer.append("<mode>books</mode>\n");
        buffer.append("<tag>webservices-20</tag>\n");
        buffer.append("<type>lite</type>\n");
        buffer.append("<devtag>*******</devtag>\n");
        buffer.append("<version>1.0</version>\n");

        part.setValue(buffer.toString());

        message.addPart(part);
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.impl.drivers.webservice.Part

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.