tags:

views:

39

answers:

1

Hello Everyone,

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

A: 

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?

Max
Here is the deal...
Big A
I developed Coldfusion Web Service (nothing but Coldfusion Component) that client can use to access data. Client is making web service request using SOAP. I have my entire web service components in a \webservice direction where I have application.cfm file. In application.cfm file, I have One include file (block.cfm). The purpose of this to make sure someone is not hacking the site. Within this file, I have code to extract client's REAL IP address using GetHttpRequestData().headers. This is where, I have error. Follow, this link for more information…http://www.petefreitag.com/item/733.cfm
Big A
If you comment out the line that gets the IP address, does it then work fine? Would cgi.remote_addr give you the same information?
Max
Yes, I comment out line that gets the IP address works fine.
Big A
No, We do need to get Real IP address of a client. Reason, we are using load balancer.
Big A
Gotcha. Found another post about it here: http://www.bennadel.com/blog/1602-GetHTTPRequestData-Breaks-The-SOAP-Request-Response-Cycle-In-ColdFusion.htm . Amazing that they haven't addressed this anywhere.
Max
Yes, you are right. I have check adobe and some other web site. No luck.
Big A
any other suggestion about getting real IP address of client without using GetHttpRequestData().headers
Big A