Hi Aman, Please find the sample below.
<parameter name="transport.vfs.FileURI" key="gov:/path/sourceFilesURI"/> Thanks On Mon, Oct 22, 2018 at 2:59 PM Aman Singh <amansingh0...@gmail.com> wrote: > Hi Shakila, > > When I try to get properties which I have stored in gov/registry in XML ia > below code I am successfully able to do so:- > > <inSequence> > <property description="Load Property File" > expression="get-property('registry', 'gov:/MyFolder/Entries.xml')" > name="localProperties" scope="default" type="OM" xmlns:ns=" > http://org.apache.synapse/xsd"/> > <property description="get User" > expression="$ctx:localProperties//UserNameIs" name="User" scope="default" > type="STRING"/> > </inSequence> > > But If I try to get it via VFS File dynamically from registry then it > fails to , below is sample proxy :- > > <proxy name="FileProxy" startOnLoad="true" transports="vfs" xmlns=" > http://ws.apache.org/ns/synapse"> > <target> > <inSequence> > <log description="LOG" level="custom"> > <property name="Property Name" value="=================== > LOGGGER"/> > </log> > > </inSequence> > <outSequence> > > </outSequence> > <faultSequence/> > </target> > <parameter > name="transport.vfs.Streaming">{ctx:StreamingMode}</parameter> > <parameter > name="transport.PollInterval">{ctx:PollingInterval}</parameter> > <parameter name="transport.vfs.FileURI">{ctx:FileUri}</parameter> > </proxy> > > How can I refer to my registry dynamically in <parameter> .Can you help me > in modifying what I am doing wrong. > > Thank you, > Aman > -- Shakila Sasikaran Software Engineer Mobile :+94 (0) 77 526 6848 shak...@wso2.com WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev