• 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

Generating a web service client

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can try Spring Web Services too.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic