Я получаю эту ошибку для данного класса конечных точек:Spring WS конечная точка отображается дважды
Cannot map endpoint [public org.iaws.data.model.Theaters iaws.ws.soap.resources.TheaterEndpoint.getTheaters(java.lang.String,java.lang.String) throws java.sql.SQLException] on registration key [{http://iaws/ws/contractfirst/example}data]: there's already endpoint [public org.iaws.data.model.Theaters iaws.ws.soap.resources.TheaterEndpoint.getTheaters(java.lang.String,java.lang.String) throws java.sql.SQLException] mapped
Почему конечная точка отображается дважды?
@Endpoint
public class TheaterEndpoint {
private final static String NAMESPACE = "http://soap/ws/contractfirst/example";
@PayloadRoot(namespace = NAMESPACE, localPart = "data")
@Namespace(prefix="dt", uri = NAMESPACE)
@ResponsePayload
public Theaters getTheaters(
@XPathParam("/dt:data/dt:movieId") final String movieId,
@XPathParam("/dt:data/dt:location") final String location)
throws SQLException {
TheaterSearch data = new TheaterSearch(movieId, location);
if (data.getMovieId() == null && data.getLocation() == null) {
throw new IllegalArgumentException();
} else {
if (data.getMovieId() == null) {
return db.getTheaters(data.getLocation());
} else {
if (data.getLocation() == null) {
return db.getTheatersForMovie(data.getMovieId());
} else {
Theaters theaters = db.getTheatersForMovie(
data.getMovieId(), data.getLocation());
return theaters;
}
}
}
}
}