I wrote a webservice and the building Maven is all ok, but the deployment on wildfly 9 receives error:
Could not find definition for service {http://ws.sieciowyandroid.rogal.com/soap/Map}MapService.
all log server: here
wsdl is: here and schema: here
and my code:
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@WebService(name = "MapWebServiceEJB", targetNamespace = "http://ws.sieciowyandroid.rogal.com/soap/Map",
serviceName = "MapService", portName = "MapPort", wsdlLocation = "wsdl/api.wsdl")
public class MapWebService implements MapPort {
@Override
public GetThumbnailResp getThumbnail(@WebParam(partName = "in0", name = "GetThumbnailReq", targetNamespace = "http://ws.sieciowyandroid.rogal.com/soap/GetThumbnail") GetThumbnailReq in0) {
GetThumbnailResp response = new GetThumbnailResp();
try {
response.setResult("czesc "+ in0.getName());
} catch (Exception e) {
response.setResult("ERROR");
}
return response;
}
}
I did not notice a fault that could cause this exception.
I will be grateful for your help