In the To section, select any of the following options:

19-26 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ While assigning a constant or a property to a target XPath expression, the target XPath expression should always point to a leaf node. Otherwise, nonleaf nodes contain only a string value that may generate nonvalid XML according to the .xsd file. Example 19–5 provides details. Example 19–5 Target XPath Expression Pointing to a Leaf Node copy target=out.requestinp1:requestProductReqMake value=NewMakeValue xmlns:inp1=http:xmlns.oracle.compsft In this example, out.requestinp1:requestProductReqMake refers to the leaf node. ■ If a transformation is available, then while assigning a source part to a target part, the target is overwritten because the assign activity occurs on top of the transformation. If the transformation is not available, then the assign activity creates the target. Example 19–6 provides details. Example 19–6 Transformation Availability and Assign Activity copy target=out.request expression=in.body copy target=out.header.inp1_header expression=in.header.inp1_header xmlns:inp1=http:xmlns.oracle.compsft ■ If one of the child nodes in the target payload has to be modified, then there are the following two use cases: – If a transformation is available, then directly assign a source expression to a target XPath expression that is pointing to that child node in the target. Example 19–7 provides details. Example 19–7 Direct Assignment of a Source Expression to a Target XPath Expression copy value=ConstantModel target=out.requestinp1:requestProductReqModel xmlns:inp1=http:xmlns.oracle.compsft – If a transformation is not available, then there are two steps involved. First, assign the source part to the target part, and then assign the source expression to a target XPath expression that is pointing to the child node in the target. Example 19–8 provides details. Example 19–8 Assignments if Transformations are Unavailable copy target=out.request expression=in.body and copy value=ConstantModel target=out.requestinp1:requestProductReqModel xmlns:inp1=http:xmlns.oracle.compsft ■ When only one of the child nodes of the source has to be propagated into a target, then first ensure that there is no transformation invoked. Then, assign the source XPath expression to point to the required child node. Example 19–9 provides details. Note: A leaf node is a node with no child nodes.