Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl2java stubs naming problem

 
Torsten Schindler
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess tht option is not available in wsdl2java utility. :roll:
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just create an ant task and change the package names afterwards..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic