modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SendMessageBuilder.java
public T payload(Object payload, Marshaller marshaller) {
        StringResult result = new StringResult();

        try {
            marshaller.marshal(payload, result);
        } catch (XmlMappingException | IOException e) {
            throw new CitrusRuntimeException("Failed to marshal object graph for message payload", e);
        }

        setPayload(result.toString());
        return self;
    }
/**
     * Sets payload POJO object which is marshalled to a character sequence using the given object to xml mapper.
     * @param payload
     * @param marshaller
     * @return
     */
Sets payload POJO object which is marshalled to a character sequence using the given object to xml mapper.
@param payload
@param marshaller
@return
Sets payload POJO object which is marshalled to a character sequence using the given object to xml mapper . @param payload @param marshaller @return
public T payload(Object payload, Marshaller marshaller) {
        StringResult result = new StringResult();
        try {
            marshaller.marshal(payload, result);
        } catch (XmlMappingException | IOException e) {
            throw new CitrusRuntimeException("Failed to marshal object graph for message payload", e);
        }
        setPayload(result.toString());
        return self;
    }
public T payload ( Object payload , Marshaller marshaller ) { StringResult result = new StringResult ( ) ; try { marshaller . marshal ( payload , result ) ; } catch ( XmlMappingException | IOException e ) { throw new CitrusRuntimeException ( "Failed to marshal object graph for message payload" , e ) ; } setPayload ( result . toString ( ) ) ; return self ; }
Sets payload POJO object which is marshalled to a character sequence using the given object to xml mapper.
Sets payload POJO object which is marshalled to a character sequence using the given object to xml mapper .