Hi all,
I've installed a webservice on a remote server, and I can use it without
problems from other PCs on the internet if I use the url with the explicit
IP address (es. http://123.123.123.123/myapp/service.asmx).
Then I've tried to configure a domain in webhost4life hosting site, in order
to redirect to that IP address.
Now, when I open the webservice url in the browser, with the IP address or
with the dns name, I get the page with the description of the supported
functions.
If, now, I call the webservice from my application using the dns name
instead of the IP, I get an error saying that the object has been moved.
So, I've tryed to set to TRUE the property AllowAutoRedirect, and now I can
call the Discover method without problems, but when I call one of the
webservice methods I get the exception
Client found response content type of 'text/html; charset=utf-8', but
expected 'text/xml'.
The request failed with the error message:
--
<html>
<head><link rel="alternate" type="text/xml"
href="/PW_WS/Service.asmx?disco" />
<style type="text/css">
BODY { color: #000000; background-color: white; font-family: Verdana;
margin-left: 0px; margin-top: 0px; }
etc.....
------------
and is reported all the HTML of the page that describe the webservice.
Why I get this? Have I to configure something in IIS, in my application or
other?!?