aspose 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 The Software Craftsman this week in the Agile 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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
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.
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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
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: 2922
    
    5
Originally posted by Ulf Dittmer:
I think it's silly to want no warnings


As long as you don't use -nowarn
 
 
subject: compile time Error in java file generated by WSDL2Java