Re: Having trouble successfully deploying WCF service to public web site



On May 1, 7:12 am, kkao77 <kka...@xxxxxxxxx> wrote:
can you show me in more detail?  I have same problem where on the page
it'shttps://service.premilance.com/Company.svc, but the svcutil tells
me to get it fromhttps://pserver1/Company.svc?wsdlwhich is
incorrect.. I have no clue how to fix it and i'm struggling for two
days already :(

On Mar 13, 3:09 pm, "Tiago Halm" <th...@xxxxxxxxxxxxxxxxxx> 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...@xxxxxxxxx> wrote in message

news:c8010220-6b19-4d32-a3a9-891aa625cb08@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I'm fairly new to deploying WCF web services and am running into
problems deploying my WCF service to a public web site. I want this
web service to be accessible by clients outside my domain.

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!- Hide quoted text -

- Show quoted text -

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


.



Relevant Pages

  • Re: Having trouble successfully deploying WCF service to public web site
    ... The generated WSDL/XSDs will contain the hostname with which it ... web service to be accessible by clients outside my domain. ... The problem I'm running into first off is that the WSDL contains the ... app in VS 2008 and then add a service reference to this service (using ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Having trouble successfully deploying WCF service to public web site
    ... I have no clue how to fix it and i'm struggling for two ... problems deploying my WCF service to a public web site. ... app in VS 2008 and then add a service reference to this service (using ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: telnet mail.domain.com 25==>OK but mailx=>KO
    ... > the mailx command on the oraclep, ... Another syntax error and this time the server complains: ... Fix the hostname of your machine so it doesn't end in a dot. ...
    (comp.mail.sendmail)
  • Re: X apps initially slow to start
    ... fix your "time-out" problem. ... name isn't found relates to not having that hostname in the /etc/hosts ... Don't ask me why Linux can know the puter hostname when it boots, ... or some variation to one of multiple config files. ...
    (comp.os.linux.x)
  • Re: X apps initially slow to start
    ... fix your "time-out" problem. ... name isn't found relates to not having that hostname in the /etc/hosts ... Don't ask me why Linux can know the puter hostname when it boots, ... or some variation to one of multiple config files. ...
    (comp.os.linux.setup)