Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

wsimport generates new and slightly different wsdl?

832141Dec 21 2011
Hi all,
I am building a web service project from a wsdl. I use JDK 1.6, jax-ws 2.1 and Maven 3.0.3. The wsimport task in Maven (which, for my understanding, uses the wsimport from jax-ws) parses my wsdl and generates a working service. I can also build a client using jax-ws. So far, it's all nice. What is slightly unpleasant is the following: The wsdl I get from the application with urlforwebservice?wsdl seems to be generated by wsimport, in any case it is different from what I imported. Firstly, I wonder why this is. Shouldn't the interface be fixed? What is really not good is that the generated wsdl has no proper parameter name, they are all just called param0, param1 etc. This makes the generated client hard to use. Can somebody shed some light on that? Does somebody know how to get proper parameter names? Sorry if this is obvious, I couldn't find anything about it.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2012
Added on Dec 21 2011
0 comments
122 views