Coldfusion getHttpRequestData breaks my SOAP calls
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
精彩评论