Spring WS I/O 错误:不是 GZIP 格式
我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论