On Wednesday, May 18, 2011 4:29:38 AM bart_212 wrote:
> Hi,
> I have the SEI class with the following methods and the same request
> wrapper classes:
>
> @RequestWrapper(className = "com.example.bean.StartRequest")
> boolean start(
> @WebParam(name = "application")
> final String appID) ;
>
> @RequestWrapper(className = "com.example.bean.StartRequest")
> boolean stop(
> @WebParam(name = "application")
> final String appID);
>
> When I use java2ws for generating these beans "java2ws -server -wrapperbean
> com.example.MyExample" I receive the message:
>
> duplicate class: com.example.bean.StartRequest
> public class StartRequest {
> ^
>
> Is it not recomended to use the same wrapper class or it is a bug in
> java2ws tool? I'm using cxf 2.2.12.
Not a bug, this is per spec. I just checked the JAX-WS spec and section
3.6.2.1 states:
Generated bean classes must have unique names within a package
and MUST NOT clash with other classes in that package. Clashes during
generation MUST be reported as an error and require user intervention via name
customization to correct. Note that some platforms do not distiguish filenames
based on case so comparisons MUST ignore case.
Thus, this is working as per spec.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com