Friday, September 9, 2011

javax.wsdl.WSDLException: no content-type: java.net.UnknownServiceException

Whe you read a WSDL from local disc, no error, but if you read a wsdl from a URL throw a exception that: 

Retrieving document at  WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://localhost:8080/mifichero.wsdl'
no content-type: java.net.UnknownServiceException: no content-type

This error is fixed if change the  plugin reference javax.wsdl_1.5 by 
 javax.wsdl_1.6.2.v200806030405