RE: Accessing text files in SOAP service folder

2003-06-17 Thread Ruane, Conleth
al Message- From: Ruane, Conleth Sent: 17 June 2003 11:44 To: '[EMAIL PROTECTED]' Subject: RE: Accessing text files in SOAP service folder Thanks again Scott. I just use getServletPath() to establish the "current directory" when the service is running. The problem is

RE: Accessing text files in SOAP service folder

2003-06-17 Thread Ruane, Conleth
AP services? > None of the SOAP samples do this and I couldn't find anything on > the web. (I'm still looking though). > > Any input is appreciated. > > Thanks > Con > > > String tmpDir = request.getServletPath(); > > > > -Orig

RE: Accessing text files in SOAP service folder

2003-06-16 Thread Scott Nichol
7;m still looking though). > > Any input is appreciated. > > Thanks > Con > > > String tmpDir = request.getServletPath(); > > > > -Original Message- > From: Scott Nichol [mailto:[EMAIL PROTECTED] > Sent: 13 June 2003 19:11 > To: [E

RE: Accessing text files in SOAP service folder

2003-06-16 Thread Ruane, Conleth
nd I couldn't find anything on the web. (I'm still looking though). Any input is appreciated. Thanks Con String tmpDir = request.getServletPath(); -----Original Message- From: Scott Nichol [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 19:11 To: [EMAIL PROTECTED] Subject: Re:

RE: Accessing text files in SOAP service folder

2003-06-13 Thread Siddharth Rath \(sirath\)
Hi, You can use "ServletContext.getResource and then parse The returned URL" to overcome this kind of issues. Thanx Sidd -Original Message- From: Ruane, Conleth [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 7:41 AM To: [EMAIL PROTECTED] Subject: Accessing text fil

Re: Accessing text files in SOAP service folder

2003-06-13 Thread Scott Nichol
Doing a getRealPath is fine, but you have to code your services specially to get the servlet context. Specifically, you must add a parameter to the method(s) of type SOAPContext. Apache SOAP will then pass the current request context, from which you can get the HttpRequest, etc. As long as y

Accessing text files in SOAP service folder

2003-06-13 Thread Ruane, Conleth
Hi All. I'm writing my first SOAP service using Apache SOAP. I've run into a problem I can't find a solution for after a lot of searching. I want my service to pull some settings from a text file which is in the same folder as the service classes but if I use just the file name I get a fileNotF