2016-12-13 57 views
1

我寫了一個互聯網服務和建築Maven是一切ok找到web服務的定義,但wildfly 9部署接收錯誤:無法在wildfly 9

Could not find definition for service {http://ws.sieciowyandroid.rogal.com/soap/Map}MapService. 

所有日誌服務器:here

WSDL是:here 和架構:here

和我的代碼:

@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; 
    } 
} 

我沒有注意到可能導致此異常的故障。

我將是你的幫助

回答