开发者

Coldfusion getHttpRequestData breaks my SOAP calls

开发者 https://www.devze.com 2023-03-23 05:34 出处:网络
I\'m running Coldfusion 9.I have some web services that are called via SOAP calls.We have a load balancer that forwards the clients IP address in the header of each request.We need to get that IP addr

I'm running Coldfusion 9. I have some web services that are called via SOAP calls. We have a load balancer that forwards the clients IP address in the header of each request. We need to get that IP address but if we use the function getHttpRequestData to get the header when making a SOAP call, it returns "org.xml.sax.SAXParseException: Premature end of file." If I comment out that function, it returns correctly, but with our load balancer's IP address. My question is: hasn't this been fixed yet? I've heard that this problem existed in CF8. Is there any other way to get the request headers if this 开发者_开发技巧bug can't be fixed?


Instead of using getHttpRequestData function, I used getPageContext().getRequest().getHeader("X-Forwarded-For") to retrieve my X-Forwarded-For header and this doesn't break the SOAP request

0

精彩评论

暂无评论...
验证码 换一张
取 消