What is the best way to generate a client code for a CXF service?

advertisements

I'd like to generate a client for my CXF service so I tried the Axis 2 code generator but it doesn't quite generate straightforward-to-use code. I expected something like client.getEmployeeByName("John Doe") but I have to create request classes and set the parameters on them.

What is the best way to generate client code for a CXF service?


What about just using the CXF wsdl2java command to generate the code?