I have generated a CXF client (this is my first webservice client) that runs on Eclipse but I don't know how to run it from the command line.
The client was generated using the top-down approach: the java files where created using wsdl2java and WDSL files, then I modified them.
I want to execute it from the command line, but I don't know how to set the classpath or if there is something else to set up. In the properties of the Eclipse project there are some libraries that I don't know how to use from the command line: Apache CXF Library, EAR Libraries, Web App Libraries.
How can I execute an Apache CXF client from the command line? Is there a better way to execute it in the production environment? I have heard about maven, but I haven't used it.
I had similar issues trying to run CXF with embedded & configured jetty, eventually got it working: In eclipse: Export - runnable jar file - and select copy required libs in subfolder!
on cmd: java -jar yourunablejar.jar
my jar is then very small, but program_lib folder is big.. In CXF lib dir there is a WHICH_JARS file telling you which jars to include for what.
Ciao