Announcement Announcement Module
Collapse
No announcement yet.
Publishing a JAX-WS over the same port of the app Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Publishing a JAX-WS over the same port of the app

    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;
    }
    Code:
    @Component
    @WebService(serviceName = "ProblemService") 
    public class ProblemService{
    @Autowired
    private ProblemDAO problemDAO;
    
    @WebMethod
    public String getProblemByAbb(@WebParam(name = "abb")String name){
        return "Hola "+name;
    }
    }
    thanks in advanced
Working...
X