Skip to content

Instantly share code, notes, and snippets.

@vaskaloidis
Created December 17, 2013 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaskaloidis/8000418 to your computer and use it in GitHub Desktop.
Save vaskaloidis/8000418 to your computer and use it in GitHub Desktop.
package edu.hartford.cs375.geocode.web;
import javax.ejb.EJB;
import javax.jws.WebService;
import edu.hartford.cs375.geocode.ejb.GeoCoordinates;
import edu.hartford.cs375.geocode.ejb.Geocoder;
@WebService(
name="GeoCodeService",
serviceName="GeoCodeService",
targetNamespace="http://cs375.hartford.edu/geocode/1.0.1",
endpointInterface="edu.hartford.cs375.geocode.web.GeoCodeWebService")
public class GeoCodeWebServiceImpl
implements GeoCodeWebService {
@EJB
private Geocoder geocoder;
public GeoCoordinates getGeoCoordinates(
String street, String city,
String state, String zip) {
return geocoder.getGeoCoordinates(street, city, state, zip);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment