Hi iam new in sring-ws. Iam using tomcat7 to deploy my app wich is made with spring3. I already get my ws to work but now i need it to run on the same port of my app in tomcat, every time i setup the base address for the simpleJaxWsServiceExporter with the same port of the tomcat, both the application and the web service crash an i get a 404 error code.
here is my code for the ws so far
Code:@Bean public SimpleJaxWsServiceExporter simpleJaxWsServiceExporter() { SimpleJaxWsServiceExporter bean = new SimpleJaxWsServiceExporter(); bean.setBaseAddress("http://mydomain:port/"); return bean; }thanks in advancedCode:@Component @WebService(serviceName = "ProblemService") public class ProblemService{ @Autowired private ProblemDAO problemDAO; @WebMethod public String getProblemByAbb(@WebParam(name = "abb")String name){ return "Hola "+name; } }


Reply With Quote