I'm tring to made a dinamic WS call using jax-ws.
But I can't create the dispatcher, the code is:
String namespace= "http://wsf.cdyne.com/WeatherWS/Weather.asmx";
try {
QName serviceName = new QName(namespace, "GetCityForecastByZIP");
Service s = Service.create(serviceName);
QName portName = new QName(namespace, "WeatherSoap12");
Dispatch<DOMSource> dispatch = s.createDispatch(portName,
DOMSource.class,
Service.Mode.PAYLOAD);
...
The error is javax.xml.ws.WebServiceException: {http://wsf.cdyne.com/WeatherWS/Weather.asmx}WeatherSoap12 is not a valid port. Valid ports are:
I have ckect the WSDL at http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL and I can't identify the reason of the error.
Any help?