users@jax-rpc.java.net

Re: auto generating enums in the wsdl generator???

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Tue, 13 Sep 2005 11:12:28 -0700

Rune Science wrote:

>Im still new at the webservice thing.
>
>Something has come up. 2 of the parameters in one of
>my interface functions have specific values that can
>be used in these functions.
>
>So i tried putting an enum in the interface
>
>
>I want theses options to show up in the wsdl that the
>user of the webservices
>
>it doesnt show in the WSDL though...
>
>public interface FastQuery extends java.rmi.Remote {
>
> public static final int EXACTPHRASE = 6;
> public static final int BEGINSWITH = 15;
> public static final int CONTAINS = 45;
>
> public String getFullDBInfo(
> int operationEnum,
> String searchstring,
> String whereColumnName,
> String columnFiltering)
>
>How do i get the enums to show up in the wsdl as
>something generated by the wsdl maker???
>
There is no way to know that your constants to be mapped to enum(since
it's possible that you have extra constants and that are not related to
each other). Also, JAXRPC 1.1 doesn't have support for J2SE1.5 enum
keyword. But if you use enum keyword JAXWS, probably you would get what
you were expecting.

Jitu

>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>