Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/06/2013, 04:18
Link_OOT
 
Fecha de Ingreso: noviembre-2008
Mensajes: 47
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Duda exportando proyecto JAXB

No se a lo que te refieres a que esté buscando el WSDL antes de crearse, el codigo es autogenerado por eclipse y las dos clases donde se hace referencia al WSDL es en:

ServicioWebImpl
Código:
@javax.jws.WebService(
                      serviceName = "ServicioWebService",
                      portName = "ServicioWebPort",
                      targetNamespace = "http://main.servicioweb.es/",
                      wsdlLocation = "http://146.255.98.117:8080/GestionServidorDefinitivo/services/ServicioWebPort?wsdl",
                      endpointInterface = "es.servicioweb.main.ServicioWeb")
                      
public class ServicioWebImpl implements ServicioWeb {
y en ServicioWebService
Código:
@WebServiceClient(name = "ServicioWebService", 
                  wsdlLocation = "http://146.255.98.117:8080/GestionServidorDefinitivo/services/ServicioWebPort?wsdl",
                  targetNamespace = "http://main.servicioweb.es/") 
public class ServicioWebService extends Service {

    public final static URL WSDL_LOCATION;

    public final static QName SERVICE = new QName("http://main.servicioweb.es/", "ServicioWebService");
    public final static QName ServicioWebPort = new QName("http://main.servicioweb.es/", "ServicioWebPort");
    static {
        URL url = null;
        try {
            url = new URL("http://146.255.98.117:8080/GestionServidorDefinitivo/services/ServicioWebPort?wsdl");
        } catch (MalformedURLException e) {
            java.util.logging.Logger.getLogger(ServicioWebService.class.getName())
                .log(java.util.logging.Level.INFO, 
                     "Can not initialize the default wsdl from {0}", "http://146.255.98.117:8080/GestionServidorDefinitivo/services/ServicioWebPort?wsdl");
        }
        WSDL_LOCATION = url;
    }
lo raro es que desde eclipse si va bien, es al exportarlo cuando tarda 10 minutos en hacer la 1º conexion.