Abhishek, If you are using Java 2 Standard Edition version 1.4 (J2SE v1.4), then you might be having a problem with the endorsed standards override mechanism. If that's the case, then you could try step 3 of the following modified version of the installation instructions.
http://home.attbi.com/~danchisholm/axis/doc/install.html Dan ----- Original Message ----- From: "Abhishek Agrawal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 12:53 PM Subject: Re: Newbie: WS return only -3 or null value On Thursday 06 June 2002 12:22, Frederic MOLINIERES wrote: You are missing some steps, look at the following link http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 Abhishek > Hi, > > I try to create an new web service under Axis (and tomcat 4.0.1, jdk > 1.4.0). > > ##### The code of Interface ###### > package util; > public interface Util { > public String test(); > } > > ##### The code of Class ###### > package util; > public class UtilImpl { > public String test() { > return "May the force be with you"; > } > } > > I compile this code. > After, I use the command : java -classpath .;%CLASSPATH% > org.apache.axis.wsdl.Java2WSDL -o > til.wsdl -l"http://localhost:8080/axis/services/util" -n urn:util -p"util" > urn:util util.Util > > That's work well :-) > > After, I use the command : java -classpath .;%CLASSPATH% > org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -p util.ws util.wsdl > > That's work well :-) > > I compile this code under the subdirectory util/ws/*.java. > I make the jar file and i copy it to the lib directory of axis > (jakarta-tomcat-4.0.1/axis/web-inf/lib) > I restart tomcat. > > ##### The code of Client ###### > package util; > > public class UtilClient { > public static void main(String [] args) throws Exception { > util.ws.UtilService service = new util.ws.UtilServiceLocator(); > util.ws.Util fib = service.getFibonacci(); > System.out.println("test = " + fib.test()); > } > } > > I try my client and it return me null for a string return value or -3 for a > int return value. > > I don't understand why :-( Could you help me ? > > Frederic
