Jeff
Can you please raise a JIRA with the behaviour you would like to see,
and we will use that to help make it a little easier.
Thanks
Paul
On Tue, Aug 12, 2008 at 3:35 AM, Jeff Davis <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to setup an inSequence node that, when validation fails, an email
> is sent out. The inbound message is arriving via transport.vfs. I'd like the
> content of my email to include the name of the inbound file. My on-fail
> looks like:
>
> <on-fail>
> <property name="Subject" value="Errors occurs when processing order"
> scope="transport"/>
> <xslt key="xslt-key-email" source="//*[local-name()='csv']">
> <property name="filename"
> expression="get-property('transport.vfs.FileName')" scope="transport"/>
> </xslt>
> <send>
> <endpoint>
> <address uri="mailto:[EMAIL PROTECTED]" format="pox"/>
> </endpoint>
> </send>
> <drop/>
> </on-fail>
>
> The filename parameter being passed to the xstl fails because the property
> isn't found. I've even tried instead to get one of the previously defined
> properties, such as "transport.vfs.FileURI", but that doesn't work either.
>
> To be honest, this is a fairly constant frustration for me -- I never seem
> to be able to printout property values successfully where log level is
> custom either. It seems as though when you specify log level="full", it
> would print out ALL the property valus, but that often doesn't appear to be
> the case (it just seems to print out only message context, not the
> transport-specific ones).
>
> Thanks again!
>
> jeff
>
--
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com