aspose file tools*
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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java stubs naming problem" Watch "wsdl2java stubs naming problem" New topic
Author

wsdl2java stubs naming problem

Torsten Schindler
Greenhorn

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 . \
-Nurn:ClustalW=org.example.ws.stubs \
"http://www.example.org/~user/cgi-bin/Model.cgi?WSDL"

The following stubs are generated:
ModelCGI.java
ModelSoapBindingStubCGI.java
ModelServiceCGI.java
ModelServiceLocatorCGI.java

But the WSDL file returned when invoking
http://www.example.org/~user/cgi-bin/Model.cgi?WSDL
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">
<wsdlsoap:address
location="http://www.example.org/~user/cgi-bin/Model.cgi" />
</wsdl ort>
</wsdl:service>
...

How to avoid the addition of CGI to the names of the Java client stubs?
So that one gets:
Model.java
ModelSoapBindingStub.java
ModelService.java
ModelServiceLocator.java

Best,

Torsten
Balaji Loganathan
author and deputy
Bartender

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


Spritle Software Blogs
Anonymous
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: http://aspose.com/file-tools
 
subject: wsdl2java stubs naming problem