• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile time Error in java file generated by WSDL2Java

 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
warining given by compiler
 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I know that code will run successfully.
but my client is asking there should not be any warining.
Thanks
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
I think it's silly to want no warnings


As long as you don't use -nowarn
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic