473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Re: Having trouble successfully deploying WCF service to public website

can you show me in more detail? I have same problem where on the page
it's https://service.premilance.com/Company.svc, but the svcutil tells
me to get it from https://pserver1/Company.svc?wsdl which 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...@nospam.hotmail.comwrote:
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.comwrote in message

news:c8**********************************@d21g2000 prf.googlegroups.com...
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="..." /></baseaddressesentries 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!
Jun 27 '08 #1
3 2760
On May 1, 7:12*am, kkao77 <kka...@gmail.comwrote:
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...@nospam.hotmail.comwrote:
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.comwrote in message
news:c8**********************************@d21g2000 prf.googlegroups.com...
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="..." /></baseaddressesentries 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/arc.../06/26/21.aspx

Tiago Halm
Jun 27 '08 #2
Thanks for this post this fixes the problem for me. And here is the
detail in a nice easy to find place.

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:testddi.doverport.co.uk"

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
On May 6, 6:13*pm, tiago.h...@gmail.com wrote:
On May 1, 7:12*am, kkao77 <kka...@gmail.comwrote:
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?wsdlwhichis
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...@nospam.hotmail.comwrote:
If hosting in IIS, just set the hostheader of the website to the public
hostname. The generated WSDL/XSDs will contain the hostname with whichit
was accessed.
>Tiago Halm
<kiern...@yahoo.comwrote in message
>news:c8**********************************@d21g200 0prf.googlegroups.com....
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="..." /></baseaddressesentries 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/arc.../06/26/21.aspx

Tiago Halm
Jun 27 '08 #3
Thanks for this post this fixes the problem for me. And here is the
detail in a nice easy to find place.

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
On May 6, 6:13*pm, tiago.h...@gmail.com wrote:
On May 1, 7:12*am, kkao77 <kka...@gmail.comwrote:
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?wsdlwhichis
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...@nospam.hotmail.comwrote:
If hosting in IIS, just set the hostheader of the website to the public
hostname. The generated WSDL/XSDs will contain the hostname with whichit
was accessed.
>Tiago Halm
<kiern...@yahoo.comwrote in message
>news:c8**********************************@d21g200 0prf.googlegroups.com....
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="..." /></baseaddressesentries 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/arc.../06/26/21.aspx

Tiago Halm
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Erik Myllymaki | last post by:
I am trying to start and stop a service with python. This used to work on an NT box but not on this 2003 server machine. (note- using "net stop myService" and net start myService" from the command...
1
by: Glenn | last post by:
I have used this code successfully in a form application. I tried to add the same code in a service and have not been able to get the application to start. I have the service starting with a local...
1
by: dansan | last post by:
We have a webservice that we have been deploying using the deployment project in Visual Studio. Now we are trying to deploy this service to a server that has multiple sites. I have looked...
3
by: BravesCharm | last post by:
BravesCharm Dec 7, 10:57 am show options Newsgroups: microsoft.public.dotnet.distributed_apps From: "BravesCharm" <mastrauc...@gmail.com> Date: 7 Dec 2004 10:57:40 -0800 Local: Tues, Dec...
1
by: Duncan | last post by:
Guys a little please, I'm creating a windows application that uses a webservice and WSE1.0 to talk to a database, currently this works fine when using localhost, I now want to test the...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
8
by: Afshar | last post by:
Hi Group, Please help ending my Nightmare! There's a Windows Service written in VC++ and I have an ASP.NET project that uses this sevice as a COM library. It just works fine in VS Internal Web...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
5
by: Oriane | last post by:
Hi, I have a .Net Visual Studio solution with one asp.net Web application, which uses a Asp.Net Web service. Both are compiled in debug mode, and both are using the Studio development web server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.