Hi Gurbeer,
I was pretty much doing the same thing, but as a workaround I used IIS to mapped the source file into a URL that could then be read by invoking either xdmp:document-load() or the combination of xdmp:document-get() and xdmp:document-insert() (I prefer the latter because of more granular control). Then to activate the transfer you can either schedule it or query a MarkLogic HTTP app server that spawns the transfer request. I also wrote an interface to interact with a SQL control table by sending commands to an ASP.Net webserver via HTTP. Tim Meagher - AAOM Consulting From: [email protected] [mailto:[email protected]] On Behalf Of Singh, Gurbeer Sent: Friday, September 16, 2011 11:40 AM To: [email protected] Subject: [MarkLogic Dev General] Reading file data from a shared path in XQY Hi, I need a help from Developer team, will appreciate any feedback. We have a Content management Application, where we are using Mark logic 4.2 Here front end is ASP.NET and for backend we are using ML, We have written a service, ASHX service which takes the request from asp.ner application and calls a xqy to dump the file into ML, then pipeline code comes into picture to convert into XML or XHTML. I have no issue with pipeline code, they convert it on the fly, no performance issue. But while calling this service we are creating a stream object which will write the file data into byte[] and post the data in http-web-request object, where it is hitting performance. It takes some sec for doing this operations, I want to know if I will send the path of the file to XQY and ML code will read the file and then will call the pipeline code, is this possible reading file from a shared path in XQY. Let me know if you want any more information. ~Gurbeer _____ NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: <http://www.morganstanley.com/disclaimers> http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
