You can specify a XPath expression that specifies where the splitted
element should be attached when the payload is being preserved.
eg:
*Sample Payload*
<catalog>
<pros>
<pro>123</pro>
<pro>456</pro>
<pro>789</pro>
</pros>
<res/>
</catalog>
*synapse config*
<iterate preservePayload="true" attachPath="//res"
expression="//pro">
<target>
<sequence>
<log level="full">
<property name="XXXXXXXXXXXXXXXXXX"
value="XXXXXXXXXX"/>
</log>
</sequence>
</target>
</iterate>
*Iterator payload in the first cycle*
<catalog>
<pros></pros>
<res>
<pro>123</pro>
</res>
</catalog>
On Wed, Jan 21, 2015 at 5:41 PM, Udara Liyanage <[email protected]> wrote:
> Hi,
>
> I see below parameters defined in the iterate mediator sample. What is the
> use of attachPath parameter.
>
>
> * attachPath="//m0:getQuote"*
> expression="//m0:getQuote/m0:request">
>
> [1]
> https://docs.wso2.com/display/ESB470/Sample+400%3A+Message+Splitting+and+Aggregating+the+Responses
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Best Regards,
Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev