Hi, get-property() will get values stored in the registry. If you are using this multiple times. I suggest method one is better.
*Madhuranga Sampath Bandara* Software Engineer WSO2, Inc.;http://wso2.com/ <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ> lean.enterprise.middleware Mobile: +94722241065 On Wed, Jun 17, 2015 at 10:01 PM, Hasintha Indrajee <[email protected]> wrote: > Hi all, > > Following are two approaches which I can use to create a payload using a > payload factory. > > > 1) Just replace the body with xml content > > <payloadFactory> > <format> > <m:checkpriceresponse xmlns:m="http://services.samples/xsd"> > <m:code>$1</m:code> > <m:price>$2</m:price> > </m:checkpriceresponse> > </format> > <args> > <!-- some args go here--> > </arg> > > </payloadFactory> > > 2) Create an *OM type* property which has the request body (This is done > only once) and embed it in content of the body. > > <payloadFactory> > <format> > $1 > </format> > <args> > <arg expression="get-property('request')" xmlns:m0=" > http://services.samples/xsd"/> > </arg> > > </payloadFactory> > > > Suppose I am re-calling these sequences multiple times. Should there be > any performance differences in these two cases ? even if we have an OM > type payload embedded, does it try to parse the payload again ? > > -- > Hasintha Indrajee > Software Engineer > WSO2, Inc. > Mobile:+94 771892453 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
