The problem I'm running into first off is that the WSDL contains the
server's name instead of the web site's name. The WSDL elements and
attributes listed below contain "http://<server_internal_name>/..."
instead of "http://<web_site_name>/...":
* xsd:import schemaLocation
* soap12:address location/@location
* wsa10:Address
The second manifestation of the problem is that when I create a client
app in VS 2008 and then add a service reference to this service (using
the Add Service Reference option in the Solution Explorer), the
endpoint address also contains the server's name instead of the web
site name. One other thing that I notice is that when I try to add the
reference to the web service, the MetadataSource address in the svcmap
file refers to the "/mex" address instead of pointing to the wsdl
(which looks like "...?wsdl").
I have tried to fix this by adding <baseaddresses>/<add
baseaddress="..." /></baseaddresses> entries into the web.config for
the web service. Also added <identity><dns value="..." /></identity>
entries in an attempt to fix this. I'm hoping that all is wrong is
that I'm missing some configuration values.
Can somebody tell me what I'm doing wrong? Thanks!
Tiago Halm
<kier...@yahoo.com> wrote in message
news:c8010220-6b19-4d32...@d21g2000prf.googlegroups.com...
<serviceMetadata httpsGetEnabled="true" httpsGetUrl="" />
On Mar 13, 3:09 pm, "Tiago Halm" <th...@nospam.hotmail.com> wrote:
> If hosting in IIS, just set the hostheader of the website to the public
> hostname. The generated WSDL/XSDs will contain the hostname with which it
> was accessed.
>
> Tiago Halm
>
> <kiern...@yahoo.com> wrote in message
Since you have a server certificate in IIS, you cannot set the host
header name via the UI, so IIRC you need to use adsutil.vbs for that.
Its useful to read this blog and view the webcast on setting Host
Headers with SSL in IIS 6.0.
http://agramont.net/blogs/conrad/archive/2006/06/26/21.aspx
Tiago Halm
To list all the sites in IIS
C:\Inetpub\AdminScripts>adsutil.vbs enum /p w3svc
[/w3svc/1]
[/w3svc/922169312] <-the site that you want to secure using a
hostheader
[/w3svc/AppPools]
[/w3svc/Filters]
[/w3svc/Info]
C:\Inetpub\AdminScripts>adsutil.vbs get /w3svc/922169312/
serverbindings
serverbindings : (LIST) (1 Items)
":80:host.header.com"
C:\Inetpub\AdminScripts>adsutil.vbs get /w3svc/922169312/
securebindings
securebindings : (LIST) (1 Items)
":443:"
C:\Inetpub\AdminScripts>adsutil.vbs set /w3svc/922169312/
securebindings ":443:host.header.com"
securebindings : (LIST) ":443:host.header.com"
Again many thanks just the right solution
Andy