Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Giorgi Kandelaki
Greenhorn
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
 
Giorgi Kandelaki
Greenhorn
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!