thanks for the replies. I've created a new jira and attached a patch to provide an unformatted service listing which is then easily retrieved with something like wget and scripting of a generate all is much easier with it. The jira is CXF-2069. I hope it gets accepted :)
On Wed, Feb 25, 2009 at 10:27:15AM +0000, Ian Roberts wrote: > Tedman Leung wrote: > > As it is now, I just have a shell script which runs WSDLToJava in a loop > > for all my services but it means I have 2 lists, one in a shell script and > > another on the server (I'm using spring so it's listed in a spring > > config). It's no big deal but every once in a while some one forgets to > > update one or the other and the two lists are no longer in sync. it would > > be easier if it just looked at the service listing and ran it against all > > the services listed. > > More a workaround than a solution, but rather than maintaining the list > in your shell script by hand you can generate it dynamically from the > service list HTML page that CXF provides. If you have lwp-request (part > of the libwww Perl library, you might need some other modules too) then > in your shell script you can do something like: > > lwp-request -o links http://my.server:8080/app/services \ > | grep '^A\W' \ > | cut -f2 > > This will read the services list page from the server and output a list > of the links it contains (i.e. the WSDLs). > > Ian > > -- > Ian Roberts | Department of Computer Science > [email protected] | University of Sheffield, UK -- Ted Leung [email protected] It's time for a new bike when the bulb in your shift light burns out.
