2014-02-21 45 views
0

我試圖做一個WS但是當我打開它在控制檯上出現以下消息:WS SOAP空操作

WARN [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://webService.algunDominio.app/}WSLicenciaServService has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: No such operation: DOMnull (HTTP GET PATH_INFO: /BSAnull) 

包含WS的類是:

@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, 
use=SOAPBinding.Use.LITERAL, 
parameterStyle=SOAPBinding.ParameterStyle.BARE) 
@WebService(name="WSLicenciaServ") 



public class WSLicenciaServ { 

    @WebMethod(operationName="saludo") 
    public String saludo(String name) throws Exception{ 
     return "saludo "+name; 
    } 
} 
+0

這是Java嗎?如果是這樣,那麼你應該使用[tag:java]標籤。 –

回答

0

第一所有的Web服務應該實現一個服務接口你的類不建議,也需要指定它爲 `@WebService(endpointInterface =「xyz」,serviceName =「abc」) 請參閱this