Ciao a tutti, sto realizzando un semplice web service di echo facendo uso del framework cxf. Ho deployato il servizio e tutto è andato a buon fine, adesso sto realizzando un client, di cui vi posto il codice (generato da un tool fornito con le librerie cxf)

codice:
package client;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.soap.SOAPBinding;

/**
 * This class was generated by Apache CXF 2.2.2
 * Mon Jul 20 09:48:01 CEST 2009
 * Generated source version: 2.2.2
 * 
 */
public class EchoClient {

    public static void main(String[] args) throws Exception {
        QName serviceName = new QName("http://service/", "EchoService");
        QName portName = new QName("http://service/", "EchoPort");

        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,
                        "http://localhost:9090/EchoPort"); 
        service.Echo client = service.getPort(portName,  service.Echo.class);
        
        String response = client.getEcho("Pippo");
        System.out.println(response);
    }

}
e a runtime ottengo il seguente errore

codice:
Exception in thread "main" java.lang.NullPointerException
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPortModel(Unknown Source)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
	at javax.xml.ws.Service.getPort(Unknown Source)
	at client.EchoClient.main(EchoClient.java:28)
sapreste dirmi perchè succede? Grazie