How to change web service URL in JBoss 5.1

Posted by bosnic on Stack Overflow See other posts from Stack Overflow or by bosnic
Published on 2010-04-23T14:46:19Z Indexed on 2010/06/02 9:44 UTC
Read the original article Hit count: 194

Filed under:
|
|

Environment: Windows 2003 JBoss 5.1

Code:

@WebService
@Stateless
@SOAPBinding(style = Style.RPC)
public class MyWebService {
public String sayHello() {
return "Hello";
}
}

wsdl is deployed in: http://localhost:8080/ear-project-ejb-project/MyWebService?wsdl

I would like to define another path for this webservice, something like:

http://localhost:8080/MyApplication/MyWebService?wsdl

How to configure that in JBoss 5.1? Is there some kind of configuration that will work in any JEE server?

Thanks

© Stack Overflow or respective owner

Related posts about jboss

Related posts about webservice