NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Rene Simons on January 12, 2012, 12:58:29 AM

Title: Using XFiles in NTWS
Post by: Rene Simons on January 12, 2012, 12:58:29 AM
Hi,

After I have uploaded an XML-file to a folder, I would like to process the data in that file using XFiles.

Cheers,
Rene
Title: Re: Using XFiles in NTWS
Post by: Bruce on January 12, 2012, 05:21:15 AM
Hi Rene,

You don't need a window structure for xFiles - so you can just make a simple source procedure that does the work you want. You certainly can pass it the p_web parameter if you want to (it's just a parameter like any other.)

I wouldn't call it on a new thread, rather I'd do it at the end of the WebHandler, at any point after the reply to the browser has been sent.

ie
  p_web.replycomplete()
  myWhatever(p_web)

cheers
Bruce

Title: Re: Using XFiles in NTWS
Post by: Mike Grigsby on January 24, 2012, 09:23:15 PM
I seem to recall uploading an example of xFiles and NTWS in the examples forum. It was a long time ago, but worth a dig.