axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Noob Question: JAVA2WSDL
Date Wed, 20 Oct 2004 22:04:15 GMT

Hi everyone, this is probabaly a huge trivial question, yet I can't figure it
out... so I'm not sure if it even does it.

I want to be able to use constants when I generate the WSDL file (and of course
in stub classes when generated from WSDL). This is like the only thing while
implementing a web service that I couldn't figure out.

Say I have a class like this:

package servicetest;

public class MyClass {

   public static final String SOME_STRING = "Option1";



How do I have it so that JAVA2WSDL put in the constant definition  for
SOME_STRING in the WSDL so when I run WSDL2JAVA it generates the constants?

Here's the command I used with JAVA2WSDL

java org.apache.axis.wsdl.Java2WSDL -o servicetest.wsdl
-e"servicetest.MyClass" -n"urn:servicetest" -p"servicetest" "urn:servicetest"

Thanks in advance,


View raw message