axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Roudet" <crou...@activia.net>
Subject RE: java2wsdl Help needed
Date Mon, 12 Jul 2004 20:16:39 GMT
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:mayurkumar@yahoo.com]
> Sent: Monday, July 12, 2004 3:01 PM
> To: axis-user@ws.apache.org
> 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




Mime
View raw message