/**
*
* @author pc1
*/
@WebService()
public class WSFileSender {
@WebMethod( operationName = "getfile" )
public @XmlMimeType( "application/octet-stream" ) DataHandler getfile( @WebParam( name = "path" ) String path ) {
DataHandler datahandler = null;
try {
datahandler = new DataHandler( new URL( path ) );
}
catch ( MalformedURLException e ) {
System.out.println( "Bad" );
}
return datahandler;
}
}
Quand je lance la génération du web-service j'ai une warning disant que "The service class "WSFileSender" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly."
Que puis je faire pour que le type Datahandler soit reconnu lors de la génération de mon webservice?