> Thanks for replying, I used wsdl2java tool to generate the stubs from
> a deployed service. The server part is not in my control. can I still
> use '@SuppressWarnings( "unchecked")'?
Not on the server, nor any other code that you are not compiling. You only
write or change source that you compile, and vice versa.
> Would this means to rewrite the part that is generating the wsdl file
The part of what?
You only change Java source with the idioms I suggested, not WSDL or schema.
> and service right i.e. server?
I am not really understanding this wording.
You only change the Java source, if you change anything, that you generate.
From what you've said, I gather that you aren't compiling (or even rewriting)
the server code, so what we're saying here will not apply to that.
The downside to changing generated code is that you lose those changes every
time you regenerate the code. The upside is that you completely control the
result.
> the only thing I am doing is
> 1- running wsdl
Do you mean "WSDL2Java"? I am not aware of any Axis executable called "wsdl".
> 2- compiling those stubs which shows warnings.
You can probably ignore the warnings, but if you don't want to do that, try
the other solutions mentioned.
- Lew
sakcee@gmail.com - 14 Feb 2007 00:17 GMT
> sak...@gmail.com wrote:
> > Thanks for replying, I used wsdl2java tool to generate the stubs from
[quoted text clipped - 33 lines]
>
> - Lew
> Do you mean "WSDL2Java"? I am not aware of any Axis executable called "wsdl".
yes WSDL2Java,
yes I can supress the warnings in already generated stubs, but the
customer has to option to create stubs on fly and compile themselves ,
in this situation the supress code will be overwritten.
I do not understand why this error is occuring. It was not there in
jdk1.4,
Following are the only possibilities , that I can think of
1- WSDL2Java is not creating generic(type-safe) stubs when used with
axis 1.2.1 and jdk 1.5
2- WSDL file is incorrect i.e. the service is doing something wrong
if jdk1.5 started caring about generics, maybe the axis/wsdl2java
1.2.1 code is not writing generic/type safe stubs!!??
Arne Vajhøj - 14 Feb 2007 00:21 GMT
> yes WSDL2Java,
>
[quoted text clipped - 12 lines]
> if jdk1.5 started caring about generics, maybe the axis/wsdl2java
> 1.2.1 code is not writing generic/type safe stubs!!??
Axis (as in Axis1) is not Java 1.5 ready. It also uses
fields called enum.
Try compiling with:
-source 1.4 -target 1.4
Or upgrade to Axis2.
Arne