gpt4 book ai didi

grails - WSClient插件Soap 1.2错误

转载 作者:行者123 更新时间:2023-12-02 14:55:49 35 4
gpt4 key购买 nike

环境:Grails-1.3.4,Ubuntu 9.10,Intellij 9.0.3,JVM 1.6

尝试与SOAP 1.2服务器进行交互时,我正在使用WSClient获取以下堆栈跟踪。我能够使wsclient example application工作。将URL更改为其他服务器会在初始化期间引发异常。有任何想法吗?

我确实在建议添加的文档中看到了对SOAP 1.2的引用

proxy.setPreferredSoapVersion(SoapVersion.SOAP_1_2)  

我做到了,但无济于事。

谢谢,
史蒂夫

2010-10-19 10:53:42,787 [http-8080-1] ERROR errors.GrailsExceptionResolver - Only document-style SOAP 1.1 http are supported for auto-selection of endpoint; none were found. java.lang.UnsupportedOperationException: Only document-style SOAP 1.1 http are supported for auto-selection of endpoint; none were found. at org.apache.cxf.endpoint.ClientImpl.findEndpoint(ClientImpl.java:212) at org.apache.cxf.endpoint.ClientImpl.(ClientImpl.java:151) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:253) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:196) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:175) at groovyx.net.ws.AbstractCXFWSClient.createClient(AbstractCXFWSClient.java:198) at groovyx.net.ws.WSClient.initialize(WSClient.java:107) at groovyx.net.ws.IWSClient$initialize.call(Unknown Source)

最佳答案

我建议从groovy下载WSClient的源代码并进行调试。

如果您使用grails安装程序安装了ws-client,则很可能是此代码

http://svn.codehaus.org/gmod/groovyws/branches/0.5.1/

关于grails - WSClient插件Soap 1.2错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3971709/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com