Package com.consol.citrus.ws.message

Examples of com.consol.citrus.ws.message.SoapMessage.addAttachment()


                    attachment.setContent(context.replaceDynamicContentInString(attachment.getContent()));
                } else if (attachment.getContentResourcePath() != null) {
                    attachment.setContent(context.replaceDynamicContentInString(FileUtils.readToString(FileUtils.getFileResource(attachment.getContentResourcePath(), context))));
                }

                soapMessage.addAttachment(attachment);
            }

        } catch (IOException e) {
            throw new CitrusRuntimeException(e);
        }
View Full Code Here


        attachment.setContentId("attContentId");
        attachment.setContent("This is a SOAP attachment\nwith multi-line");
        attachment.setContentType("plain/text");

        SoapMessage testMessage = new SoapMessage(requestPayload);
        testMessage.addAttachment(attachment);

        SoapMessageConverter soapMessageConverter = new SoapMessageConverter();

        reset(soapRequest, soapBody);
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.