This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Generating a web service client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Generating a web service client" Watch "Generating a web service client" New topic
Author

Generating a web service client

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using Ant 1.8, Java 1.6 and Tomcat 6.0.26. Does anyone know how to generate a web service client JAR using a utility that fits what I'm using? Thanks, - Dave
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
Which web service stack (or library) are you planning on using? Axis2? Metro? Jersey? Something else? Each of these comes with tools that can be used to create WS client code.


Ping & DNS - my free Android networking tools app
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
I am open to suggestions on this. I have read a lot about Axis2, however, one requirement is that the WSDL definition is loaded from an external URL and a username and password are required. Thanks ,- Dave
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
OK, if you need a WSDL then we're talking about SOAP - that rules out Jersey (which implements REST).

The client code generation tools can load a WSDL either from an URL or from a file, so that's not a distinguishing characteristic.

And both Axis2 and Metro support WS-Security, which enables you to protect your SOAP service via username/password, so that, too, does not help choosing between the two.
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
It doesn't appear Axis2 supports client code generation for WSDLs that are password protected (https://issues.apache.org/jira/browse/AXIS2-4060). So this would seem to rule out that as an option, - Dave
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
I see - the WSDL is password-protected, not the web service. Well, if it's a one-time thing, then you can access the WSDL through the browser and save it as a file.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
You can try Spring Web Services too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating a web service client
 
Similar Threads
java.lang.NoClass DefFound Error: javax.xml.ws.Service
New to Web Service
Using UnManaged Web Services Client with WS-Policy
Alternate way to access web service
Identifying client details