aspose file tools
The moose likes Web Services and the fly likes WSDL2JAVA generating all the Client code in one solid Java file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "WSDL2JAVA generating all the Client code in one solid Java file" Watch "WSDL2JAVA generating all the Client code in one solid Java file" New topic
Author

WSDL2JAVA generating all the Client code in one solid Java file

Giorgi Kandelaki
Greenhorn

Joined: Jun 16, 2010
Posts: 3
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

Joined: Jun 16, 2010
Posts: 3
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...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: WSDL2JAVA generating all the Client code in one solid Java file
 
Similar Threads
Can't deploy web service in Weblogic with a complex type that contains a sequence of complex types
accessing a .NET webservice
order of request parameters causing unexpected subelement exception
Sample Questions for 288 - Need answers
Axis2 Questions