axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Davis" <...@us.ibm.com>
Subject Re: JWS and Java package names
Date Sun, 24 Mar 2002 06:22:40 GMT
Just tested it and I believe that you are correct - which is a shame I
believe it used to work.
-Dug


"Mark Volkmann" <volkmann2@charter.net> on 03/23/2002 04:18:43 PM

Please respond to axis-dev@xml.apache.org

To:    <axis-dev@xml.apache.org>
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" <dug@us.ibm.com>
To: <axis-dev@xml.apache.org>
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" <volkmann2@charter.net> on 01/21/2002 01:45:14 PM
>
> Please respond to axis-dev@xml.apache.org
>
> To:    <axis-dev@xml.apache.org>
> 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?





Mime
View raw message