I have a asp .net web service running on my machine which I'm accessing from a client iphone application. The process runs fine when I run service methods using my IP address. I wanted to set the address to a domain and set the domain to redirect to the IP address. The redirection works fine when I just want to view the service, ie
http://domain.com/Service1.asmx
but when I try to call a web method on the service eg
http://domain.com/Service1.asmx?op=authenticate_user
I get the test form page at the client. This is because I've set
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
in web.config
My redirection apache .htacces has the following configuration:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?<domain>$
RewriteCond %{REQUEST_URI} !^http://<ip address>/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://<ip address>/$1
RewriteCond %{HTTP_HOST} ^(www.)?<domain>$
RewriteRule ^(/)?$ http://<ip address>/index.php [L]
So does anyone have any idea why I'm not able to remotely call the web service with redirection? Any help would be great.