I'm getting the same problem. Are you sure JBoss 4.2 doesn't support WebServiceRef annotation? could you pls point me to a doc ref that says that? I've been looking all over for an "official" statement about this...
anyway, I worked around the problem as you did. However, make sure that the object you create with the 'new' statement is of the class that was auto-generated for you on the client side - not of the class that was used to implement the "real" service.
I found that WebServiceRef is not supported in Jboss 4.2 web container even on this forum. If you search that annotation you can find many topics related.
What do you mean by the class auto generated on the client side? When i create a web service client the only thing that is generate by the ide is a web service reference wsdl.
Had you found the solution or the reason of this problem???
After a bit of time I resolved my problem deleting all jboss-jaxws.jar of my JBoss