wso2esb - how we can store a data or string in txt file in wso2 esb -
my issue getting data or json or string front end or mobile app contains details of error need append details in single txt file in local system how can have mediator or may use vfs trnsport let me knoe tried code giving error config is:
<proxy xmlns="http://ws.apache.org/ns/synapse" name="filewrite" transports="https,http" statistics="disable" trace="disable" startonload="true"> <target> <insequence> <log level="custom"> <property name="sequence" value="filewritesequence"/> </log> <log> <property name="transport.vfs.replyfilename" expression="fn:substring-after(get-property('messageid'), 'urn:uuid:')"/> <property name="out_only" value="true"/> </log> <send> <endpoint> <address uri="///home/youtility2/desktop/errorlog"/> </endpoint> </send> </insequence> <outsequence> <send/> </outsequence> </target> <parameter name="transport.vfs.contenttype">text/plain</parameter> <description></description> </proxy>
error throing esb side
2013-04-01 15:58:04,707] error - clientutils system cannot infer transport information ///home/youtility2/desktop/errorlog url. [2013-04-01 15:58:04,708] error - axis2sender unexpected error during sending message out org.apache.axis2.axisfault: system cannot infer transport information ///home/youtility2/desktop/errorlog url. @ org.apache.axis2.description.clientutils.inferouttransport(clientutils.java:81
) have refernace let me know.
you need append "transport.vfs.append=true" out-file uri append data in existing file... there thread regarding in stackoverflow see [1]. more details regarding vfs please refer [2].
[1] how append response message text file?
[2] http://docs.wso2.org/wiki/display/esb403/vfs+transport
regards,
mohan
Comments
Post a Comment