Webservices

0 respostas
vfpribeiro

Olá malta,

Eu estou a trabalhar com netbeans 7.0 estou a usar JAX-WS para importar um web service.

Mas dá-me um erro:

@WebServiceClient(name = “ConsultaUtente”, targetNamespace = <a href="http://xmlnssns.min-saude.pt/ConsultaUtente">http://xmlnssns.min-saude.pt/ConsultaUtente</a>”, wsdlLocation = <a href="https://wsgw.min-saude.pt/gateway/services/ConsultaUtente?wsdl">https://wsgw.min-saude.pt/gateway/services/ConsultaUtente?wsdl</a>”)

public class ConsultaUtente_Service

extends Service

{
private final static URL CONSULTAUTENTE_WSDL_LOCATION;
private final static WebServiceException CONSULTAUTENTE_EXCEPTION;
private final static QName CONSULTAUTENTE_QNAME = new QName("http://xmlnssns.min-saude.pt/ConsultaUtente", "ConsultaUtente");

static {
    CONSULTAUTENTE_WSDL_LOCATION = pt.min_saude.xmlnssns.consultautente.ConsultaUtente_Service.class.getResource("https://wsgw.min-saude.pt/gateway/services/ConsultaUtente?wsdl");
    WebServiceException e = null;
    if (CONSULTAUTENTE_WSDL_LOCATION == null) {
        e = new WebServiceException("Cannot find 'https://wsgw.min-saude.pt/gateway/services/ConsultaUtente?wsdl' wsdl. Place the resource correctly in the classpath.");
    }
    CONSULTAUTENTE_EXCEPTION = e;
}

e o erro é “Cannot find ‘https://wsgw.min-saude.pt/gateway/services/ConsultaUtente?wsdl’ wsdl. Place the resource correctly in the classpath.”

Este ficheiro foi generado quando eu importei um web service, que deverá estar bem feito.

Será necessário fazer algo mais? Falta-me um plugin? Não faço a minima ideia…

Por favor, preciso urgentemente de ajuda…

Obrigado

VR

Criado 3 de agosto de 2011
Respostas 0
Participantes 1