File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes compile time Error in java file generated by WSDL2Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "compile time Error in java file generated by WSDL2Java" Watch "compile time Error in java file generated by WSDL2Java" New topic
Author

compile time Error in java file generated by WSDL2Java

Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
hi.. all,
I have created a webservice which is running smoothly. But duirng the compilation of tha java file which are generated by WSDL2Java, are given deprecated warning
can any body suggest me to resolve it.

here ant code is give to generate java file from wsdl



I using given java version
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)


Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Deprecation warnings are just that - warnings, not errors. The code will almost certainly run just fine. But you left out the all-important information which warning was generated.


Ping & DNS - updated with new look and Ping home screen widget
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
warining given by compiler
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
Hi.
I know that code will run successfully.
but my client is asking there should not be any warining.
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Maybe you can find an older version of the XMLBeans library where that method is not deprecated? I think it's silly to want no warnings, especially when dealing with open source libraries that get released often and deprecate methods frequently.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Originally posted by Ulf Dittmer:
I think it's silly to want no warnings


As long as you don't use -nowarn


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: compile time Error in java file generated by WSDL2Java
 
Similar Threads
problems compiling for java 1.5/5.0
doing javac -source 1.5 MyClass.java
Trouble with subclassing??
About Solaris
Java VM: Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode, sharing)