import javax.jws.WebMethod时出错
困扰好久了。再次请教:
1.在java类文件中引用:import javax.jws.WebService;时
报错: The import javax.jws cannot be resolved
2.@WebService(serviceName = "ProgramInterface", targetNamespace = "http://WEBMEANS/WebServices/", endpointInterface = "com.service.ProgramInterfaceSoap");时
报错:WebService cannot be resolved to a type
环境:
我用的是jdk1.5.0_03,eclipse
1.在eclipse -->window -->preferences-->编译路径中已经加入了。jdk里的rt.jar
2.在工程 -->properties -->编译路径中已经加入了jre system library.