当使用java6发布WebService时,如果不指定@SOAPBinding(style = SOAPBinding.Style.RPC)遇到如下错误:
com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class com.test.service.jaxws.add is not found. Have you run APT to generate them?
SOAPBinding的style默认为SOAPBinding.Style.DOCUMENT,估计是JDK1.6早起版本对这个类型的支持有bug,所以报错。网上资料说只要将JDK升级到1.6u17就可以了,我升级到1.6u30(jdk-6u30-windows-i586.exe),问题解决!