1 2 package org.objectweb.rentacar.services.client; 3 4 import java.net.MalformedURLException ; 5 import java.net.URL ; 6 import javax.xml.namespace.QName ; 7 import javax.xml.ws.Service; 8 import javax.xml.ws.WebEndpoint; 9 import javax.xml.ws.WebServiceClient; 10 import org.objectweb.rentacar.services.client.AgencyReservationServiceImpl; 11 import org.objectweb.rentacar.services.client.AgencyReservationServiceImplService; 12 13 14 20 @WebServiceClient(name = "AgencyReservationServiceImplService", targetNamespace = "http://reservation.services.agency.rentacar.objectweb.org/", wsdlLocation = "/home/rbarraza/workspace-rentacar/apps/agency-reservation/src/resources/AgencyReservationServiceImplService.wsdl") 21 public class AgencyReservationServiceImplService 22 extends Service 23 { 24 25 private final static URL WSDL_LOCATION; 26 private final static QName AGENCYRESERVATIONSERVICEIMPLSERVICE = new QName ("http://reservation.services.agency.rentacar.objectweb.org/", "AgencyReservationServiceImplService"); 27 private final static QName AGENCYRESERVATIONSERVICEIMPLPORT = new QName ("http://reservation.services.agency.rentacar.objectweb.org/", "AgencyReservationServiceImplPort"); 28 29 static { 30 URL url = null; 31 try { 32 url = new URL ("file:/home/rbarraza/workspace-rentacar/apps/agency-reservation/src/resources/AgencyReservationServiceImplService.wsdl"); 33 } catch (MalformedURLException e) { 34 e.printStackTrace(); 35 } 36 WSDL_LOCATION = url; 37 } 38 39 public AgencyReservationServiceImplService(URL wsdlLocation, QName serviceName) { 40 super(wsdlLocation, serviceName); 41 } 42 43 public AgencyReservationServiceImplService() { 44 super(WSDL_LOCATION, AGENCYRESERVATIONSERVICEIMPLSERVICE); 45 } 46 47 52 @WebEndpoint(name = "AgencyReservationServiceImplPort") 53 public AgencyReservationServiceImpl getAgencyReservationServiceImplPort() { 54 return (AgencyReservationServiceImpl)super.getPort(AGENCYRESERVATIONSERVICEIMPLPORT, AgencyReservationServiceImpl.class); 55 } 56 57 } 58 | Popular Tags |