代码
@Component
@WebService(serviceName = "HelloWorld",endpointInterface="cn.com.service.IHelloWorld")
public class HelloWorldImpl implements IHelloWorld {
@Autowired
private ServiceTest serviceTest;
@WebMethod
public String sayHello(String text,Integer i) {
System.err.println("进入webService服务端:"+text);
serviceTest.index(text);
//UtilString.analyzeXml(text,ListTestBean.class);
return "Hello" + text ;
}
}