WSClient 插件 Soap 1.2 错误
环境:Grails-1.3.4、Ubuntu 9.10、Intellij 9.0.3、JVM 1.6
我在尝试与 SOAP 1.2 服务器交互时使用 WSClient 获取以下堆栈跟踪。我能够使 wsclient 示例应用程序正常工作。将 URL 更改为其他服务器会在初始化期间引发异常。有什么想法吗?
我确实在文档中看到了对 SOAP 1.2 的引用,建议添加
proxy.setPreferredSoapVersion(SoapVersion.SOAP_1_2)
我所做的,但无济于事。
谢谢,
史蒂夫
2010-10-19 10:53:42,787 [http-8080-1] ERROR 错误。GrailsExceptionResolver - 仅支持文档样式 SOAP 1.1 http 自动选择端点;没有找到。 java.lang.UnsupportedOperationException:仅支持文档样式 SOAP 1.1 http 自动选择端点;没有找到。 在 org.apache.cxf.endpoint.ClientImpl.findEndpoint(ClientImpl.java:212) 在 org.apache.cxf.endpoint.ClientImpl.(ClientImpl.java:151) 在 org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:253) 在 org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:196) 在 org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:175) 在groovyx.net.ws.AbstractCXFWSClient.createClient(AbstractCXFWSClient.java:198) 在 groovyx.net.ws.WSClient.initialize(WSClient.java:107) 在 groovyx.net.ws.IWSClient$initialize.call(来源未知)
Environment: Grails-1.3.4, Ubuntu 9.10, Intellij 9.0.3, JVM 1.6
I'm getting the below stack trace using WSClient while trying to interact with a SOAP 1.2 server. I was able to get the wsclient example application working. Changing the URL to the other server throws the exception during initialization. Any ideas?
I did see a reference to SOAP 1.2 in the documentation that suggested adding
proxy.setPreferredSoapVersion(SoapVersion.SOAP_1_2)
Which I did, but to no avail.
Thanks,
Steve
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议从 groovy 下载 WSClient 的源代码并进行调试。
如果您使用 grails 安装程序安装了 ws-client,则很可能是以下代码
http: //svn.codehaus.org/gmod/groovyws/branches/0.5.1/
I would suggest downloading the source for WSClient from groovy, and debugging it.
if you installed ws-client using grails installer it will most likely be this code
http://svn.codehaus.org/gmod/groovyws/branches/0.5.1/