Hello, experts!
I am using jbossws on JBossAS 4.2.2.GA and I managed to run it under Java 6 (I moved jaxb-api.jar, jboss-jaxrpc.jar, jboss-jaxws.jar and jboss-saaj.jar files to $JBOSS_HOME/lib/endorsed dir as it was mentioned in http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS#Using_JBossWS_with_JDK_6.
And it works fine!
Now I have an standalone java client which consumes my web service using pretty standard way:
String wsdlURL = http://localhost:8080/HelloWebService/services/Hello?wsdl"; String namespace = "http://Hello.com"; String serviceName = "HelloWebService"; QName serviceQN = new QName(namespace, serviceName); ServiceFactory serviceFactory = ServiceFactory.newInstance(); /* The "new URL(wsdlURL)" parameter is optional */ Service service = serviceFactory.createService(new URL(wsdlURL), serviceQN);
Actually I found the solution copying these jars to java.endorsed.dir directory. I am wondering is there any other alternatives?