Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by PaulFremantle: http://wiki.apache.org/ws/Synapse/UserGuide The comment on the change is: Fix up xml description ------------------------------------------------------------------------------ }}} Note that the rules, like the stages, can have more than one child. While it isnât fixed in Synapse, the built-in rules and mediators all use the same âplanâ to execute their children, which involves executing in the lexical order that they occur in the synapse.xml. - == Ruel Configuration Elements == + == XML Configuration Elements == - Synapse rule configurations are done with xml Elements. Every Element maps to a instance of a Processor. Thus, there are Elements that can be used in hierarchical order, which exhibits a higher precedence over some Elements (ex: <regex/> over <xpath/>) and others will act stand alone (ex: <engage-addressing-in/>). + Every element in the Synapse configuration file maps to a instance of a Processor. There are two types of element - '''nodes''' that "contain" sub-elements (ex: `<regex/>`, `<stage/>` and `<xpath/>`) and '''leaves''' others which only contain configuration for that element or have no xml children (ex: `<engage-addressing-in/>`). - {{{ - Elements that can be used in hierarchical order as follows with there default precedence. + ==== Grouping and Referencing elements ==== - 1.<regex/> - 2.<xpaht/> - Elements that can be used in stand alone + 1. `<stage/>` + 1. `<in/>` + 1. `<out/>` + 1. `<never/>` + 1. `<ref/>` + ==== Rule elements ==== - 1.<engage-addressing-in/> - 2.<servicemediator/> - 3.<classmediator/> - Built in Elements + 1. `<regex/>` + 1. `<xpath/>` + ==== Built-in mediators ==== - 1.<log/> - 2.<fault/> - 3.<send/> - 4.<header/> - Stage Elements + 1. `<engage-addressing-in/>` + 1. `<log/>` + 1. `<fault/>` + 1. `<send/>` + 1. `<header/>` + ==== User mediator types ==== - 1.<stage/> - 2.<in/> - 3.<out/> - 4.<never/> + 1. `<servicemediator/>` + 1. `<classmediator/>` - Reference Elements - - 1. <ref/> - }}} - == Samples ==