I am using JBoss 4.0.5GA with JDK 5 and JBossWS 1.2.0GA. I am trying to work through some of the samples on @WebServiceRef and I noticed that the jboss-client.xml has:
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd">
<webservice-ref> <service-ref-name>TestEndpointService5</service-ref-name> <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override> </webservice-ref>
Ok, I think this is being addressed in:
So basically, the answer is that to write clients using @WebServiceRef is not possible in JBoss 4.0.5GA, therefore, the samples for webserviceref will only work with Jboss 4.2 and Jboss 5.