2010-09-15 74 views
0

我是grails中的新手,並試圖爲我的web服務構建一個後端,這些應用程序只訪問提供的不直接訪問數據庫的web服務。Grails + WS客戶端拋出一個CXF異常

package backend 

import org.grails.plugins.wsclient.service.WebService 

class BackendController { 

    WebService webService 

    def index = { 
     def wsdlUrl = "http://localhost8080/BackendService/Backend?wsdl" 
     def proxy = webService.getClient(wsdlUrl) 

     def result = proxy.getAll() 
     render(text:result); 
    } 
} 

,並拋出這個錯誤

Error 500: Executing action [index] of controller [backend.BackendController] caused exception: org.apache.cxf.interceptor.Fault: None of the policy alternatives can be satisfied. 

如何解決這個錯誤?

+0

不是這裏的專家,但似乎通常的做法是查看wsdl的策略部分並追蹤哪些不被滿足。 – proflux 2010-09-15 17:19:04

回答

1

缺少冒號?在8080之前

相關問題