• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating a web service client

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42967
73
  • Mark post as helpful
  • send pies
  • 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.
 
kri shan
Ranch Hand
Posts: 1462
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try Spring Web Services too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic