• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wsdl2java stubs naming problem

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess tht option is not available in wsdl2java utility. :roll:
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just create an ant task and change the package names afterwards..
 
reply
    Bookmark Topic Watch Topic
  • New Topic