Just tested it and I believe that you are correct - which is a shame I believe it used to work. -Dug
"Mark Volkmann" <[EMAIL PROTECTED]> on 03/23/2002 04:18:43 PM Please respond to [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> cc: Doug Davis/Raleigh/IBM@IBMUS Subject: Re: JWS and Java package names Doug, Sorry I've taken so long to reply. I got busy with other issues. Hopefully if I explain better what I'm attempting, you'll see the error in my ways. Here's the .jws file I'm using for my test. package mypkg; public class BasicMath { public int add(int n1, int n2) { return n1 + n2; } } I see four possibilities for working with JWS and packages. Case 1: No package statement in .jws file, copy it to webapps/axis - This URL works. http://localhost:8080/axis/BasicMath.jws?wsdl. Case 2: No package statement in .jws file, copy it to webapps/axis/mypkg. - This URL works. http://localhost:8080/axis/mypkg/BasicMath.jws?wsdl. Case 3: "package mypkg;" in .jws file, copy it to webapps/axis - This URL doesn't work. http://localhost:8080/axis/mypkg/BasicMath.jws?wsdl. Case 4: "package mypkg;" in .jws file, copy it to webapps/axis/mypkg - I believe this is what you suggested I try in your last email. - This URL doesn't work. http://localhost:8080/axis/mypkg/BasicMath.jws?wsdl. - In fact, this creates BasicMath.class in webapps/axis/mypkg/mypkg. It seems to me that if you want to use a package with JWS, you need to put the .jws file in a package subdirectory of webapps/axis, but you can't put a package statement in the .jws file. Does this match your understanding? ----- Original Message ----- From: "Doug Davis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 1:38 PM Subject: Re: JWS and Java package names > Copied the StockQuoteService.jws file into a "com" dir, added "package > com;" and did: > java samples.stock.GetQuote -l > http://localhost:8080/axis/com/StockQuoteService.jws IBM > and it seemed to work for me. Is there some other variation I need to try? > -Dug > > > "Mark Volkmann" <[EMAIL PROTECTED]> on 01/21/2002 01:45:14 PM > > Please respond to [EMAIL PROTECTED] > > To: <[EMAIL PROTECTED]> > cc: > Subject: JWS and Java package names > > > > At one point Java classes that had package statements could be deployed as > web services using JWS. I know because I requested that feature and it was > added a couple of days later. I verified that it worked. If the package was > com.ociweb.test then the JWS file needed to be placed in > webapps/com/ociweb/test of the server. > > This no longer seems to work. Is it really a requirement that all JWS > classes cannot have a package statement?