I finally found the problem.
It was due to a class missing in my classpath property of wsgen task.
Some proper class that was returned by my webservice wasn't found in the classpath.
I think probably a ClassNotfoundException would have been more significant.
[Message sent by forum member 'tbls' (tbls)]
http://forums.java.net/jive/thread.jspa?messageID=232636