• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

WSDL2JAVA generating all the Client code in one solid Java file  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • 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 Kandelaki
Posts: 3
  • Mark post as helpful
  • send pies
  • 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...
What does a metric clock look like? I bet it is nothing like this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!