0

我是 grails 的新手,正在尝试为我的 web 服务构建后端,应用程序只能访问 web 服务,而不能直接访问数据库。

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.

如何解决该错误?

4

1 回答 1

1

缺少结肠?8080之前

于 2011-01-04T09:36:43.857 回答