ColdFusion 8 中的 GetHttpRequestData() 和 SOAP Web 服务请求
目前,我们使用GetHttpRequestData().headers
来获取用户的真实IP地址。但是,我们面临以下问题。当我们尝试调用 SOAP Web 服务请求时,我们收到以下错误文件提前结束
。我已经在网上搜索过,发现ColdFusion 8.0
存在错误。
我不知道这个bug是否已经解决了。
有其他解决方案吗?
请帮我。
谢谢
Currently, we are using GetHttpRequestData().headers
to get real IP address of User. However, we are facing following issue. when we try to call SOAP web service request, we receive following error Premature end of file
. I already searched the web and found out that there is bug in ColdFusion 8.0
.
I don't know if this bug is resolved yet.
Is there any alternate solution?
Please help me.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SOAP 请求是否从客户端传入 ColdFusion,这就是您收到错误的地方,或者用户是否点击了 Coldfusion 页面,然后该页面向某些其他服务发出了 SOAP 请求并生成了错误?
Is the SOAP request coming in to ColdFusion from a client and that is where you are getting the error or is a user hitting a coldfusion page that is then making a soap request to some other service and that is generating the error?
我们遇到了完全相同的问题。我不知道您是否已经找到解决方案,但我找到的解决方法是使用 getPageContext().getRequest().getHeader("name of header here") 来检索我正在查找的请求标头。这不会破坏像 getHttpRequestData 这样的 SOAP 调用。
We had the exact same issue. I don't know if you've found a solution yet but the workaround I found is using getPageContext().getRequest().getHeader("name of header here") to retrieve the request header I'm looking for. This doesn't break to SOAP calls like getHttpRequestData.