我使用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以gzip格式解释Web Service响应一样。反正告诉春天它不是吗?
提前致谢。