I use RAD 8.5 build in web-service feature to create web services and run in websohere 8.It's no need third-party web services framework ,no set up in web.xml . now I need integrate it with spring . I use load application context in my web services construction .I know it clumsy . who has the elegant solution to integrate spring with it . Thanks . My code is below .
import javax.jws.WebService;
@WebService(
name = "Test",
targetNamespace = "http:///www.test.com",
serviceName = "TestService",
portName = "TestPort"
)
public class TestWebservice {
ApplicationContext context = new ClassPathXmlApplicationContext(
"classpath*:**/applicationContext*.xml")
public String sayHi(String inputStr){
return "Hi " + context.getbean("Testbao").sayHi( inputStr) ;
}
}