@Action("http://localhost:8080/CityService/GetTwoCitiesAndDistance") public GetTwoCitiesAndDistanceResponse getTwoCitiesAndDistance( GetTwoCitiesAndDistanceRequest citiesAndDistanceRequest) { GetTwoCitiesAndDistanceResponse response = objectFactory.createGetTwoCitiesAndDistanceResponse(); String responseText = cityService.getTwoCitiesAndDistance(citiesAndDistanceRequest.getParam()); response.setResponse(responseText); return response; }
@Action("http://localhost:8080/CityService/GetDistanceBetweenTwoCities") public GetDistanceBetweenTwoCitiesResponse getDistanceBetweenTwoCities( GetDistanceBetweenTwoCitiesRequest betweenTwoCities) { GetDistanceBetweenTwoCitiesResponse response = objectFactory.createGetDistanceBetweenTwoCitiesResponse(); Integer responseInt = cityService.getDistanceBetweenTwoCities( betweenTwoCities.getCity1(), betweenTwoCities.getCity2()); response.setResponse(responseInt); return response; }