Greetings everyone.
Kind of a noobish question, yet I ask because I couldn't figure out how to work this out.
Following I present you the classic pair SEI-SIB, that I'm deploying as an EJB:
GoodService.java
@WebService(targetNamespace = "http://gmnz.org/Sandbox/goodness")
public interface GoodService {
public String sayHello();
}
GoodServiceImpl.java
@Stateless
@Remote(GoodService.class)
@WebService(
endpointInterface = "org.gmnz.ws.sandbox.GoodService",
serviceName = "GoodService",
portName = "GoodServicePort",
targetNamespace = "http://gmnz.org/Sandbox/goodness")
public class GoodServiceImpl implements GoodService {
@Override
public String sayHello() {
return "meow!";
}
}
Upon deployment on AS 7.1.1, all behaves as expected:
BUT
as I outlined in the orange frame, I'm ok with the hostname (for now), I'm ok with the port and the context, yet how can I change the rest of the address url according to my own needs? (e.g. http://localhost:8090/WsCustomUri/GoodService , http://localhost:8090/WsCustomUri/services/GoodOne , ...)
The solution is to use the annotation org.jboss.ws.api.annotation.WebContext