出错位置:
- public GetUserInfoService() {
- super(WSDL_LOCATION, SERVICE);
- }
- /**
- *
- * @return
- * returns GetUserInfo
- */
- @WebEndpoint(name = "GetUserInfoPort")
- public GetUserInfo getGetUserInfoPort() {
- return super.getPort(GetUserInfoPort, GetUserInfo.class);
- }
- /**
- *
- * @param features
- * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
- * @return
- * returns GetUserInfo
- */
- @WebEndpoint(name = "GetUserInfoPort")
- public GetUserInfo getGetUserInfoPort(WebServiceFeature... features) {
- return super.getPort(GetUserInfoPort, GetUserInfo.class, features);
- }
这几处的super地方报错
错误原因:由于jax-ws2.2规约与java6冲突 故需要降低jax-ws规约版本
解决方法:在生成的时候服务路径前面加上 -frontend jaxws21
把生成的文件夹重新copy到项目中就OK了。