Try to turn your service into an interface:
package samples.myEchoInt;
public interface IEchoIntService
{
public int echoInt(int i);
}
Christophe
> -----Original Message-----
> From: Mayur Shetye [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: java2wsdl Help needed
>
> this is a simple java class , I want to generate a
> simple WSDL frile from it and then use that WSDL to
> create stubs on the client side .
>
> The code is as follows
>
> ____________
>
> package samples.myEchoInt;
>
> public class EchoIntService
> {
> public int echoInt(int i)
> {
> return i;
> }
> }
>
>
>
> _____________
>
>
> My java2wsdl arguement is
>
> java org.apache.axis.wsdl.Java2WSDL -o wp.wsdl
> -l"http://localhost:8080/axis/services/EchoIntService"
> -n "urn:myservice.com" -p"samples.myEchoInt"
> "urn:myservice.com" samples.myEchoInt.EchoIntService
>
>
>
> I get an error saying
>
> The <class-of-portType> has already been specified as,
> a. It cannot be specifie
> d again as samples.myEchoInt.EchoIntService.
> Java2WSDL emitter
> Usage: java org.apache.axis.wsdl.Java2WSDL [options]
> class-of-portType
>
>
> Can anyone please tel me why ?
>
> regards
> Mayur Shetye
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail