You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mik <ws...@gmail.com> on 2005/08/16 22:06:04 UTC
Constants and Web Services
Hello.
Maybe a very stupid question but:
I wonder is it possible to publish a provider service which has as
parameter a complex datatype and this datatype has some constants .
something like this :
Provider Service
public void setState(State state){
.......
}
Complex datatype
Class State {
public static final String CONSTANT_1="string1";
public static final String CONSTANT_2="string2";
public String value;
public State(String value){
this.value= value;
}
}
Is it possible to generate wsdl i such a way that also the string
constants are published?.
So that somebody willing to use setState service could just generate
stubs (and constants) with wsdl2java ????
thanks in advance.