It's not a secret anymore!
The moose likes Web Services and the fly likes wsdl2java stubs naming problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java stubs naming problem" Watch "wsdl2java stubs naming problem" New topic

wsdl2java stubs naming problem

Torsten Schindler

Joined: Aug 18, 2004
Posts: 13
Hi *,

when I try to generate Axis Java client stubs for an SOAP web service

java org.apache.axis.wsdl.WSDL2Java \
-o . \ \

The following stubs are generated:

But the WSDL file returned when invoking
in a browser contains only the ".cgi" in the address location, e.g.
WSDL file:
<wsdl:service name="ModelService">
<wsdl ort binding="impl:ModelSoapBinding" name="Model">
location="" />
</wsdl ort>

How to avoid the addition of CGI to the names of the Java client stubs?
So that one gets:


Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
I guess tht option is not available in wsdl2java utility. :roll:

Spritle Software Blogs
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
just create an ant task and change the package names afterwards..
I agree. Here's the link:
subject: wsdl2java stubs naming problem
jQuery in Action, 3rd edition