Difference between replace entire node and replace node contents in OSB -
i have started using osb , came across feature "replace entire node or replace node contents". me in listing out difference between 2 examples. basic question started learning osb , wanted right.
thanks in advance.
cheers..
ok, let's assume have variable, $body
. proxy has done stuff, , has $body set, , want run through xquery transform before return it.
$body like
<soap:body xmlns:soap="etc"> <ns0:response xmlns:ns0="etc2"> <ns0:item> <!-- etc etc --> </ns0:item> </ns0:response> </soap:body>
if replace entire node, must replace <soap:body>
. (i mean, could replace different, you'll encounter error somewhere because osb expects $body type)
if replace node contents, may replace anything: perhaps transformed <ns0:response>
, it's common replace totally different elements. either way, <soap:body>
element unaffected, , insides scooped out , replaced.
most of time, you'll replace node contents of $body rather replacing entire node, if it's variable you've created yourself, go either way depending on want.
Comments
Post a Comment