• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSDL2JAVA generating all the Client code in one solid Java file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I've got one very confusing problem. Can anybody help me please?

As we know, when generating web service Client from WSDL, using wsdl2java utility, it generates all types in one STUB class.

Recently I had a task to write a client for the web service with quite a lot of operations and it had quite a lot of Types defined in schema, also.
My WSDL has 60 Operations and 145 Types

I don't know is such WSDL considered as too big, but, I know that my Eclipse hangs while opening it.

Then when I generate Client with wsdl2java, it generates huge, 5 MB, .java file. And it is impossible to operate on this file in Eclipse, or any other editor, I know.

So, the question is:
Can I somehow make wsdl2java, to generate separate .java files for every Type defined in WSDL?
(Just like it does when we generate Skeleton)

This is how I run wsdl2java:

Thank you very much in advance,

Giorgi
 
Giorgi Kandelaki
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
haha, I've found it out!

wsdl2java -u ... ...

-u option makes: "Unpacks the databinding classes"
it was written in help.
so easy... stupid me... :-)

You can move this post in "Beginning Java" forum...
 
reply
    Bookmark Topic Watch Topic
  • New Topic