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
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
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
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:
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
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
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