2010-09-15 67 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之前

相关问题