...
Info |
---|
title | Endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
resource | Spring resource | the spring resource pointing to the XSLT stylesheet | one of (resource, expression) | expression | ServiceMix expression | expression used to dynamically load the stylesheet | one of (resource, expression) | wsdlResource | Spring resource | if set, the wsdl will be retrieved from the given Spring resource | no | transformerFactory | TransformerFactory | TraX factory to create transformers | defaults to Saxon implementation | configuration | Saxon configuration | Saxon configuration | no | result | String | Output result type | defaults to dom , possible values are dom , bytes , string | copyAttachments | boolean | | defaults to true | copyProperties | boolean | | defaults to true | copySubject | boolean | | defaults to true |
|
XSLT Proxy
One common use case is the need to transform a request coming from a service and send it to another service and do the same with the response. A simple example is the need to translate the request and responses between two SOAP endpoints. Such a use case could be implemented using two XSLT endpoints and an EIP StaticRoutingSlip. However, there are some drawbacks, as the operation is lost in the process, and a static routing slip can not be used to process InOnly exchanges.
The 4.0 version of servicemix-saxon provides such a feature in a single endpoint:
Code Block |
---|
|
<saxon:proxy service="test:proxy" endpoint="endpoint"
resource="classpath:transform-in.xsl"
outResource="classpath:transform-out.xsl"
faultResource="classpath:transform-fault.xsl">
<saxon:target>
<saxon:exchange-target service="test:echo" />
</saxon:target>
</saxon:proxy>
|
Info |
---|
title | Endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
resource | Spring resource | the spring resource pointing to the XSLT stylesheet used to transform the input message | no | outResource | Spring resource | the spring resource pointing to the XSLT stylesheet used to transform the output message | no | faultResource | Spring resource | the spring resource pointing to the XSLT stylesheet used to transform the fault message | no | expression | ServiceMix expression | expression used to dynamically load the stylesheet. If set, it will prevail against all resource, outResource and faultResource attributes | no | wsdlResource | Spring resource | if set, the wsdl will be retrieved from the given Spring resource | no | transformerFactory | TransformerFactory | TraX factory to create transformers | defaults to Saxon implementation | configuration | Saxon configuration | Saxon configuration | no | result | String | Output result type | defaults to dom , possible values are dom , bytes , string | copyAttachments | boolean | | defaults to true | copyProperties | boolean | | defaults to true | copySubject | boolean | | defaults to true | target | ExchangeTarget | the destination where the transformed exchange will be sent to | yes |
|
XQuery endpoint
The XQuery endpoint can be used to apply a selected XQuery to the input document.
...