Spring WS I/O 错误:不是 GZIP 格式

发布于 2024-12-12 13:46:25 字数 1230 浏览 7 评论 0原文

我使用 Spring WS 来调用 Web 服务。目前,我在 SoapUI 上运行 Web 服务。另外,由于我必须发送和接收复杂的对象,所以我正在编组和解组请求和响应。

为了生成 WSDL 源,我使用 jaxws-maven-plugin。

当我调用 Web 服务时,我收到此错误:

14:38:21,503 - ERROR - Authentication.startAuthentication(141) | 000000001319805501206 - Error in authentication process -  org.springframework.ws.client.WebServiceIOption: I/O error: Not in GZIP format; nested exception is java.io.IOException: Not in GZIP format
14:38:21,505 - DEBUG - Authentication.startAuthentication(142) | 000000001319805501206 - Error StackTrace. org.springframework.ws.client.WebServiceIOException: I/O error: Not in GZIP format; nested exception is java.io.IOException: Not in GZIP format
    at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:432)
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:265)
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:253)
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:245)
    ...

就像 spring 正在解释该 Web 服务响应,它是 gzip 格式。有没有办法告诉spring它没有?

提前致谢。

Im using Spring WS to call a Web Service. For now, I am running the Web service on SoapUI. Also, due that I have to send and receive complex objects I'm marshalling and unmarshalling the request and response.

For generating WSDL sources I am using jaxws-maven-plugin.

When i call the Web service, i got this error:

14:38:21,503 - ERROR - Authentication.startAuthentication(141) | 000000001319805501206 - Error in authentication process -  org.springframework.ws.client.WebServiceIOption: I/O error: Not in GZIP format; nested exception is java.io.IOException: Not in GZIP format
14:38:21,505 - DEBUG - Authentication.startAuthentication(142) | 000000001319805501206 - Error StackTrace. org.springframework.ws.client.WebServiceIOException: I/O error: Not in GZIP format; nested exception is java.io.IOException: Not in GZIP format
    at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:432)
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:265)
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:253)
    at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:245)
    ...

It is like spring is interpreting that Web Service response it is in gzip format. Is there anyway to tell spring that it doesn't?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文