JAX-WS multiple endpoints in sun-jaxws.xml

前端 未结 2 1420
太阳男子
太阳男子 2021-01-05 17:19

Just started using JAX-WS. I created 2 test web services in the one WAR file as follows....

package com.djs;

import javax.jws.WebService;

@WebService()
pub         


        
2条回答
  •  清酒与你
    2021-01-05 17:49

    Dave,

    I guess you are missing the servlet-mapping for the two end points you have.

    Add the following to your web.xml and try again. Let me know if this solve the problem.

    
        AddTwoInts
        com.sun.xml.ws.transport.http.servlet.WSServlet
    
    
        AddTwoInts
        /AddTwoInts
    
    
    
        SayHello
        com.sun.xml.ws.transport.http.servlet.WSServlet
    
    
        SayHello
        /SayHello
    
    

提交回复
热议问题