WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

@MessageBrokerCopyTransform

Use the @MessageBrokerCopyTransform annotation to alter the behavior of the evaluate method in a PHP class.

The @MessageBrokerCopyTransform annotation causes one parameter to be passed to the evaluate method. This parameter is a reference to the output assembly with the contents of the input assembly already copied into it. The input assembly is available with the @MessageBrokerCopyTransform. If you declare a second parameter (which is optional) the input assembly is passed to it.

If the @MessageBrokerCopy Transform and @MessageBrokerSimpleTransform annotations are specified together, the @MessageBrokerCopyTransform annotation takes precedence.

The following example modifies the original XML message by adding an element called Greeting with the value Hello World:

<?php

class CopyTest {

    /**

     * An example of MessageBrokerCopyTransform

     * 

     * @MessageBrokerCopyTransform

     */

    function evaluate($assembly) {
        $assembly->XMLNSC->doc->Greeting = “Hello World”;
    }

}

?>
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:35


Concept topicConcept topic | Version 8.0.0.7 | ac69032_