This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL2Java -- Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL2Java -- Axis" Watch "WSDL2Java -- Axis" New topic
Author

WSDL2Java -- Axis

Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
K, used Axis to turn WSDL into Java...worked like a charm...however, I'm unable to compile the source and in need of assistance.
WSDL2Java generates the interface of the service: "XMLInterface", a locator class "XMLInterfaceLocator" which implements the aforementioned interface and the stub, XMLInterfaceSOAPBindingStub which also implements the aforementioned interface. The problem here is that in the source generated by WSDL2Java, none of the interface methods are defined in the BindingStub, only in the Locator -- leaving me unable to compile.

[ January 20, 2003: Message edited by: Cory Wilkerson ]
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
Axis doesn't like service name = implementation class name...causes all sorts of issues.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Ayup. They need to be different. Glad you found that one on your own. That would have been a devil to debug remotely...
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
It was a hell of a job to debug locally as well.
I don't feel like there's really any good Axis documentation on the market -- thankful for that to some extent because you pick up a lot along the way -- but for some of the developers I work with -- they're gonna need docs. Any idea if there is any movement in the Axis community on this?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
There is. Actually, if you want a better set of examples and documentation, download the IBM Web Services Toolkit from Alphaworks. IBM includes more than what comes with the standard Axis download from Apache.
Kyle
 
Consider Paul's rocket mass heater.
 
subject: WSDL2Java -- Axis