欢迎使用普元产品知识库,本知识库包含普元应用开发平台EOSPlatform,流程平台BPS,企业服务总线ESB,微服务平台Microservice,运维管理平台Devops,数据集成平台DI
欢迎使用普元文档库
问题描述:服务提供方采用.net开发的WebService服务,在接入ESB后,使用soapui测试正常,采用WCF工具测试异常:
GZip 头中的幻数不正确。请确保正在传入 GZip 流。 Server stack trace: 在 System.Net.GZipWrapperStream.Read(Byte[] buffer, Int32 offset, Int32 size) 在 System.ServiceModel.Channels.HttpInput.WebResponseHttpInput..ctor(HttpWebResponse httpWebResponse, IHttpTransportFactorySettings settings, ChannelBinding channelBinding) 在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding) 在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) 在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) 在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) 在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: 在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 MyServiceSoap.GetAllSensorKind(GetAllSensorKindRequest request) 在 MyServiceSoapClient.MyServiceSoap.GetAllSensorKind(GetAllSensorKindRequest request)
解决方案:此问题可以通过补丁解决,请向普元售后(cservice@primeton.com)申请,对应补丁号为:ESB_6.6.0_20170328_P1。