Reputation: 17795
I've been doing java web services for a couple of years here and there and I've always heard about the ease of use of C#.Net Soap-WS clients. I just tried it out and I have to say, I am a bit jealous - having had to fight through generated code with both Axis and CXF (try using Axis in OSGi or with NTLM authentication...or just look at the horrible generated code, or try using dynamic URL's in CXF).
Is there a java analog to the simplicity of .Net (soap) web service clients? Ideally, you would add the URL to your project, just like you add a service reference in Visual Studio and the behind the scenes code would be setup for you. Is this possible? If not, why not - what is C#.Net doing differently?
Upvotes: 4
Views: 1337
Reputation: 5432
I've had good luck with the Spring Framework . Its not quite as easy as C#'s toolset, but when you get down to it, its all just reading a WSDL and generating client adapters. Visual studio lets you do that with the push of a button where with Spring, you can use Ant/Maven to generate your proxies/adapters. Most IDE's will do this for you too (see Randolpho's answer, I know IntelliJ Idea does).
Edit: I believe SoapUI will do this as well, although I haven't used it so I can't tell you how well that works
Upvotes: 2
Reputation: 56448
Eclipse will create a Java web service client very similar to a Service Reference.
http://www.eclipse.org/webtools/jst/components/ws/M3/tutorials/WebServiceClient.html
Upvotes: 0