Hi Asankha,

Thank you for you hint, unfortunately this one of the things I have
tried and it is not working. The get-property('filename') returns an
empty or null as result. The synapse log gives the following error:

INFO TimeoutHandler This engine will expire all callbacks after : 86400
seconds, irrespective of the timeout action, after the specified or
optional timeout
2009-07-22 09:53:35,389 [127.0.1.1-niek-laptop] [HttpClientWorker-1]
WARN SynapseConfigUtils IO Error reading from
URL : /<dirs>/./repository/FileNamejava.io.FileNotFoundException: 
/<dirs>/./repository/FileName (No such file or directory)

It seem getting the property results in some IO action....

I am not sure if I correct but to me it seems I have to deal with in /
out to the file system and another in / out from web service to fs.

Maybe you have a working example?

Best Regards, Niek Palm 

> 
> cheers
> asankha
> > Hi Niek,
> >
> > All the properties of the in path of the message will be there for the out
> > path as well. So you can directly use the property name "filename" to
> > retrieve the file name at the outSequence.
> >
> > <property name="transport.vfs.ReplyFileName"
> > expression="fn:concat(get-property('SYSTEM_DATE', 'yyMMddHHmmss'), '-',
> > get-property('filename'), '.xml')" scope="transport" />
> > Hope this helps...
> >
> > Thanks,
> > Ruwan
> >
> >
> > 2009/7/22 Niek Palm <[email protected]>
> >
> >   
> >> I am trying to confiugre synapse to pick up files for the file system
> >> (vfs) send them to a web services an write the response to the file
> >> syste. I succees this basic scenario. Now I want to write the webservice
> >> response to a file that has the same file name as its origin. The
> >> problem is that I cannot not access the FILE NAME when the webservice is
> >> invoked. So I can I transfer a property to other mediators (e.g. form
> >> inSequence to outSequence).
> >>
> >> Here is my configuration:
> >>
> >>
> >> <proxy name="FileProxy" transports="vfs">
> >> <parameter name="transport.vfs.FileURI">file:///opt/synapse/inbox
> >> </parameter>
> >> <parameter name="transport.vfs.ContentType">application/xml</parameter>
> >> <parameter name="transport.vfs.FileNamePattern">.*\.xml</parameter>
> >> <parameter name="transport.PollInterval">1</parameter>
> >> <parameter
> >> name="transport.vfs.MoveAfterProcess">file:///opt/synapse/processed
> >> </parameter>
> >> <parameter
> >> name="transport.vfs.MoveAfterFailure">file:///opt/synapse/failed
> >> </parameter>
> >> <parameter name="transport.vfs.ActionAfterProcess">DELETE</parameter>
> >> <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
> >> <parameter
> >> name="transport.vfs.MoveTimestampFormat">yyMMddHHmmss</parameter>
> >>
> >> <target>
> >> <inSequence>
> >>        <log level="custom">
> >>        <property name="filename" expression="get-property('transport',
> >> 'FILE_NAME')" /><property name="transport.vfs.ReplyFileName"
> >>        </log>
> >>
> >>        <send>
> >>                <endpoint key="soapService"></endpoint>
> >>        </send>
> >>
> >> </inSequence>
> >>
> >> <outSequence>
> >>
> >>        <property name="transport.vfs.ReplyFileName"
> >>                expression="fn:concat(get-property('SYSTEM_DATE',
> >>     'yyMMddHHmmss') ,
> >> '-',
> >>                get-property('????', '??? ref to FILE???'),
> >> '.xml')"
> >> scope="transport" />
> >>        <send>
> >>                <endpoint>
> >>                <address uri="vfs:file:///opt/synapse/outbox" />
> >>                </endpoint>
> >>        </send>
> >> </outSequence>
> >> </target>
> >> </proxy>
> >>
> >> Best Regard, Niek Palm
> >>     
> 
ÿþDit bericht is vertrouwelijk en kan 
geheime informatie bevatten enkel

bestemd voor de geadresseerde. Indien 
dit bericht niet voor u is bestemd,

verzoeken wij u dit onmiddellijk aan 
ons te melden en het bericht te

vernietigen.

Aangezien de integriteit van het 
bericht niet veilig gesteld is middels

verzending via internet, kan Atos 
Origin niet aansprakelijk worden 
gehouden

voor de inhoud daarvan.

Hoewel wij ons inspannen een virusvrij 
netwerk te hanteren, geven

wij geen enkele garantie dat dit 
bericht virusvrij is, noch aanvaarden 
wij

enige aansprakelijkheid voor de 
mogelijke aanwezigheid van een virus in 
dit

bericht.

 

Op al onze rechtsverhoudingen, 
aanbiedingen en overeenkomsten 
waaronder

Atos Origin goederen en/of diensten 
levert zijn met uitsluiting van alle

andere voorwaarden de 
Leveringsvoorwaarden van Atos Origin 
van toepassing.

Deze worden u op aanvraag direct 
kosteloos toegezonden.

 

This e-mail and the documents attached 
are confidential and intended solely

for the addressee; it may also be 
privileged. If you receive this e-mail

in error, please notify the sender 
immediately and destroy it.

As its integrity cannot be secured on 
the Internet, the Atos Origin group

liability cannot be triggered for the 
message content. Although the

sender endeavours to maintain a 
computer virus-free network, the sender

does not warrant that this transmission 
is virus-free and will not be

liable for any damages resulting from 
any virus transmitted.

 

On all offers and agreements under 
which Atos Origin supplies goods and/or

services of whatever nature, the Terms 
of Delivery from Atos Origin

exclusively apply. 

The Terms of Delivery shall be promptly 
submitted to you on your request.

 

Atos Origin Nederland B.V. / Utrecht

KvK Utrecht 30132762

Reply via email to