You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera" <as...@wso2.com> on 2006/05/16 16:13:06 UTC
Fixed validation for all JDK's and maven test plugin
For the test cases to pass, you need to place the Xerces 2.8.0 jars into
the JAVA_HOME/lib/endorsed folders of the JDK being used. The validate
mediator is now fixed..
This patch also adds three examples, which *may* be started as
"synapse.bat -sample 2" etc.. (I will update the synapse.sh shortly)
This will pick the sample configuration files placed at
synapse_repository\conf\sample\synapse_sample_2.xml etc based on the
sample number specified.
As synapse validates and loads the configuration file at startup, and
errors found are reported at startup with this patch.
The sample 0 is at the same level of the previous StockQuote client, and
shows how it could be configured with the new configuration language.
The sample 1 shows how a custom quote request could be received,
transformed (into a standard request) and sent to the actual endpoint,
and the response transformed back into a custom format, using
correlation support discussed a few days back.
(Use the CustomStockQuoteClient found in the samples to test this
configuration)
The sample 2 shows the use of most of the new features introduced,
except for class mediators and header mediators. Examples for these will
follow. This example validates a custom request, transforms into a
standard request and forwards to the real endpoint using "endpoint"
definitions. It also shows the use of global and local message
properties and how they could be retrieved via the
synapse:get-Property() extension function, and uses custom logging with
properties, fault, switch, filter, in, out etc
(Use the AdvancedQuoteClient found in the samples to test this
configuration)
Documentation on the examples will follow with an updated wiki page for
the configuration language
asankha