Hi,
I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has
led to dead ends, references to changes that only work on the old previous beta versions and
I admit I am rather confused and frustrated.
That being said, I'd like some direction in how exactly I'm supposed to accomplish this.
Thanks very much,
JK 5 2900
Hi Steven and Tiago,
Sorry for the late response, I've been away for a bit and this got put on the backburner.
Thanks to both of you, I've managed to get https working (almost). I think perhaps I'm still
doing something wrong?
After adding httpsGetEnabled="true, it works beautifully, however, it spits out https://machinename/filename.svc?wsdl which won't work from the public internet.
So to change this, among the other things I've attempted, I tried using httpsGetUrl and was
presented with this:
A registration already exists for URI 'https://machinename/file.svc'.
I've tried other things (baseAddress, etc.) and none of it seems to change it...
Thanks,
JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:if**************@TK2MSFTNGHUB02.phx.gbl...
Hi Jonathan,
Have you got any progress on this or does the suggestion in my last reply
help some?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Fri, 4 Apr 2008 12:58:48 -0400
Thank you Steven. Yes I am going to use the IIS method and I do have it
already setup for
that. I'm also familiar with how to setup a secure site in IIS.
Additionally, I've also
configured the older ASMX webservices over https via IIS before.
However, with this WCF webservice, if I hit the .svc file via IE using the https://server/service.svc link it spits back a http link reference to the
WSDL.
Even if I rewrite the URL as https://server/services.svc?WSDL, it just
sends me to the
initial page with the http wsdl link.
Surely that can't be right?
I'm assuming there's some point of endpoint configuration I need to do.
That's the part I'm
missing/confused about.
-JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:2S**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Jonathan,
From your description, you're going to expose your WCF service via both
SSL
>and non-SSL channel, correct?
Are you going to use SSL over Http(the most common and convenient approach)? For non-SSL, I think it is quite straightforward, and what you need to do is adding a new service endponit that use https/ssl based address. If hosting in IIS is possible, I recommend you host the
https/ssl
>one in IIS since that can make the SSL/HTTPS configuration much more convenient. Here are some reference about configuring SSL/HTTPS in IIS:
#On IIS 6.0, how do I configure my website to use SSL? http://www.petri.co.il/configure_ssl...e_with_iis.htm
#Configuring SSL on a Web Server or Web Site (IIS 6.0) http://www.microsoft.com/technet/pro.../Library/IIS/5
>6bdf977-14f8-4867-9c51-34c346d48b04.mspx?mfr=true
Sure, https/ssl can be used out of IIS based on the new http.sys component in windows and WCF can also uitlize it. However, it will require much more configuration which is complex. Here are some reference mentioned about configurating HTTPS in self-hosted context:
#Configuring HTTP and HTTPS http://msdn2.microsoft.com/en-us/library/ms733768.aspx
#WCF example: Using of self-hosted service with SSL http://developers.de/blogs/damir_dob...08/01/897.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================= = Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================= = This posting is provided "AS IS" with no warranties, and confers no
rights.
>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> Subject: WCF webservice over SSL and without Date: Thu, 3 Apr 2008 23:12:13 -0400
Hi,
I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I admit I am rather confused and frustrated.
That being said, I'd like some direction in how exactly I'm supposed to accomplish this.
Thanks very much, JK
Thanks for your followup JK,
So the problem seems due to the the public internet can not directly get
into your server machien via the servername. is there a public accessible
DNS address for the server so that external network can visit it?
Based on my research, for IIS hosted WCF environment, it will be hard to
customize the metadata exchange endpoints. I think you can consider the
following mean to expose the WCF service's metadata:
1. You can host the same service on another public accessible server and it
is only used to expose the metadata for the client to download. also, for
that service, you do not need to use HTTPS/SSL
2. WCF provide a svcutil.exe that can help download the metadata of a
service to local files. You can use it to download the metadata to local
files and republish them via a public accessible server. BTW, you need to
open the wsdl document and change some urls in it since the default values
are still pointing to the original server address(the machinename for your
case):
#ServiceModel Metadata Utility Tool (Svcutil.exe) http://msdn2.microsoft.com/en-us/library/aa347733.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Thu, 24 Apr 2008 20:39:14 -0400
Hi Steven and Tiago,
Sorry for the late response, I've been away for a bit and this got put on
the backburner.
Thanks to both of you, I've managed to get https working (almost). I think
perhaps I'm still
doing something wrong?
After adding httpsGetEnabled="true, it works beautifully, however, it spits
out https://machinename/filename.svc?wsdl which won't work from the public
internet.
So to change this, among the other things I've attempted, I tried using
httpsGetUrl and was
presented with this:
A registration already exists for URI 'https://machinename/file.svc'.
I've tried other things (baseAddress, etc.) and none of it seems to change
it...
Thanks,
JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:if**************@TK2MSFTNGHUB02.phx.gbl...
Hi Jonathan,
Have you got any progress on this or does the suggestion in my last reply
help some?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
This posting is provided "AS IS" with no warranties, and confers no
rights.
>
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Fri, 4 Apr 2008 12:58:48 -0400
Thank you Steven. Yes I am going to use the IIS method and I do have it
already setup for
that. I'm also familiar with how to setup a secure site in IIS.
Additionally, I've also
configured the older ASMX webservices over https via IIS before.
However, with this WCF webservice, if I hit the .svc file via IE using the https://server/service.svc link it spits back a http link reference to the
WSDL.
Even if I rewrite the URL as https://server/services.svc?WSDL, it just
sends me to the
initial page with the http wsdl link.
Surely that can't be right?
I'm assuming there's some point of endpoint configuration I need to do.
That's the part I'm
missing/confused about.
-JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:2S**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Jonathan,
From your description, you're going to expose your WCF service via both
SSL
>and non-SSL channel, correct?
Are you going to use SSL over Http(the most common and convenient approach)? For non-SSL, I think it is quite straightforward, and what you need to do is adding a new service endponit that use https/ssl based address. If hosting in IIS is possible, I recommend you host the
https/ssl
>one in IIS since that can make the SSL/HTTPS configuration much more convenient. Here are some reference about configuring SSL/HTTPS in IIS:
#On IIS 6.0, how do I configure my website to use SSL? http://www.petri.co.il/configure_ssl...e_with_iis.htm
#Configuring SSL on a Web Server or Web Site (IIS 6.0) http://www.microsoft.com/technet/pro.../Library/IIS/5
>6bdf977-14f8-4867-9c51-34c346d48b04.mspx?mfr=true
Sure, https/ssl can be used out of IIS based on the new http.sys
component
>in windows and WCF can also uitlize it. However, it will require much
more
>configuration which is complex. Here are some reference mentioned about configurating HTTPS in self-hosted context:
#Configuring HTTP and HTTPS http://msdn2.microsoft.com/en-us/library/ms733768.aspx
#WCF example: Using of self-hosted service with SSL http://developers.de/blogs/damir_dob...08/01/897.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================= = Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each
follow
>up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================= = This posting is provided "AS IS" with no warranties, and confers no
rights.
>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> Subject: WCF webservice over SSL and without Date: Thu, 3 Apr 2008 23:12:13 -0400
Hi,
I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old
previous
>beta versions and I admit I am rather confused and frustrated.
That being said, I'd like some direction in how exactly I'm supposed to accomplish this.
Thanks very much, JK
Thanks, but I know how to do all that. Http works fine (because I set a host header with the
correct public host name), this is just https that's the problem...
I simply want to customize the machinename in https://machinename/file.svc?wsdl output on
https when going to the service.
-JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:5Q**************@TK2MSFTNGHUB02.phx.gbl...
Thanks for your followup JK,
So the problem seems due to the the public internet can not directly get
into your server machien via the servername. is there a public accessible
DNS address for the server so that external network can visit it?
Based on my research, for IIS hosted WCF environment, it will be hard to
customize the metadata exchange endpoints. I think you can consider the
following mean to expose the WCF service's metadata:
1. You can host the same service on another public accessible server and it
is only used to expose the metadata for the client to download. also, for
that service, you do not need to use HTTPS/SSL
2. WCF provide a svcutil.exe that can help download the metadata of a
service to local files. You can use it to download the metadata to local
files and republish them via a public accessible server. BTW, you need to
open the wsdl document and change some urls in it since the default values
are still pointing to the original server address(the machinename for your
case):
#ServiceModel Metadata Utility Tool (Svcutil.exe) http://msdn2.microsoft.com/en-us/library/aa347733.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Thu, 24 Apr 2008 20:39:14 -0400
Hi Steven and Tiago,
Sorry for the late response, I've been away for a bit and this got put on
the backburner.
Thanks to both of you, I've managed to get https working (almost). I think
perhaps I'm still
doing something wrong?
After adding httpsGetEnabled="true, it works beautifully, however, it spits
out https://machinename/filename.svc?wsdl which won't work from the public
internet.
So to change this, among the other things I've attempted, I tried using
httpsGetUrl and was
presented with this:
A registration already exists for URI 'https://machinename/file.svc'.
I've tried other things (baseAddress, etc.) and none of it seems to change
it...
Thanks,
JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:if**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Jonathan,
Have you got any progress on this or does the suggestion in my last reply help some?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================= = Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.
This posting is provided "AS IS" with no warranties, and confers no
rights.
>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> References: <O5**************@TK2MSFTNGP05.phx.gbl> <2S**************@TK2MSFTNGHUB02.phx.gbl> Subject: Re: WCF webservice over SSL and without Date: Fri, 4 Apr 2008 12:58:48 -0400
Thank you Steven. Yes I am going to use the IIS method and I do have it already setup for that. I'm also familiar with how to setup a secure site in IIS. Additionally, I've also configured the older ASMX webservices over https via IIS before.
However, with this WCF webservice, if I hit the .svc file via IE using the https://server/service.svc link it spits back a http link reference to the WSDL. Even if I rewrite the URL as https://server/services.svc?WSDL, it just sends me to the initial page with the http wsdl link.
Surely that can't be right?
I'm assuming there's some point of endpoint configuration I need to do. That's the part I'm missing/confused about. -JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message news:2S**************@TK2MSFTNGHUB02.phx.gbl...
>>Hi Jonathan,
From your description, you're going to expose your WCF service via both
SSL
>>and non-SSL channel, correct?
Are you going to use SSL over Http(the most common and convenient approach)? For non-SSL, I think it is quite straightforward, and what you need to do is adding a new service endponit that use https/ssl based address. If hosting in IIS is possible, I recommend you host the
https/ssl
>>one in IIS since that can make the SSL/HTTPS configuration much more convenient. Here are some reference about configuring SSL/HTTPS in IIS:
#On IIS 6.0, how do I configure my website to use SSL? http://www.petri.co.il/configure_ssl...e_with_iis.htm
#Configuring SSL on a Web Server or Web Site (IIS 6.0) http://www.microsoft.com/technet/pro.../Library/IIS/5
>>6bdf977-14f8-4867-9c51-34c346d48b04.mspx?mfr=true
Sure, https/ssl can be used out of IIS based on the new http.sys
component
>>in windows and WCF can also uitlize it. However, it will require much
more
>>configuration which is complex. Here are some reference mentioned about configurating HTTPS in self-hosted context:
#Configuring HTTP and HTTPS http://msdn2.microsoft.com/en-us/library/ms733768.aspx
#WCF example: Using of self-hosted service with SSL http://developers.de/blogs/damir_dob...08/01/897.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you.
Please
>>feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================ == Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>>ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>>where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each
follow
>>up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================ == This posting is provided "AS IS" with no warranties, and confers no
rights.
>>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> Subject: WCF webservice over SSL and without Date: Thu, 3 Apr 2008 23:12:13 -0400
Hi,
I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old
previous
>>beta versions and I admit I am rather confused and frustrated.
That being said, I'd like some direction in how exactly I'm supposed to accomplish this.
Thanks very much, JK
Thanks for your reply Jonathan,
I'll perform some further research to see whether there is still any other
means helpful. I'll update you if I get any new results.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
<#c**************@TK2MSFTNGP05.phx.gbl>
<5Q**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Fri, 25 Apr 2008 12:08:53 -0400
Thanks, but I know how to do all that. Http works fine (because I set a
host header with the
correct public host name), this is just https that's the problem...
I simply want to customize the machinename in https://machinename/file.svc?wsdl output on
https when going to the service.
-JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:5Q**************@TK2MSFTNGHUB02.phx.gbl...
Thanks for your followup JK,
So the problem seems due to the the public internet can not directly get
into your server machien via the servername. is there a public accessible
DNS address for the server so that external network can visit it?
Based on my research, for IIS hosted WCF environment, it will be hard to
customize the metadata exchange endpoints. I think you can consider the
following mean to expose the WCF service's metadata:
1. You can host the same service on another public accessible server and
it
is only used to expose the metadata for the client to download. also, for
that service, you do not need to use HTTPS/SSL
2. WCF provide a svcutil.exe that can help download the metadata of a
service to local files. You can use it to download the metadata to local
files and republish them via a public accessible server. BTW, you need to
open the wsdl document and change some urls in it since the default values
are still pointing to the original server address(the machinename for your
case):
#ServiceModel Metadata Utility Tool (Svcutil.exe) http://msdn2.microsoft.com/en-us/library/aa347733.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Thu, 24 Apr 2008 20:39:14 -0400
Hi Steven and Tiago,
Sorry for the late response, I've been away for a bit and this got put on
the backburner.
Thanks to both of you, I've managed to get https working (almost). I
think
perhaps I'm still
doing something wrong?
After adding httpsGetEnabled="true, it works beautifully, however, it
spits
out https://machinename/filename.svc?wsdl which won't work from the public
internet.
So to change this, among the other things I've attempted, I tried using
httpsGetUrl and was
presented with this:
A registration already exists for URI 'https://machinename/file.svc'.
I've tried other things (baseAddress, etc.) and none of it seems to change
it...
Thanks,
JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:if**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Jonathan,
Have you got any progress on this or does the suggestion in my last reply help some?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================= = Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.
This posting is provided "AS IS" with no warranties, and confers no
rights.
>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> References: <O5**************@TK2MSFTNGP05.phx.gbl> <2S**************@TK2MSFTNGHUB02.phx.gbl> Subject: Re: WCF webservice over SSL and without Date: Fri, 4 Apr 2008 12:58:48 -0400
Thank you Steven. Yes I am going to use the IIS method and I do have it already setup for that. I'm also familiar with how to setup a secure site in IIS. Additionally, I've also configured the older ASMX webservices over https via IIS before.
However, with this WCF webservice, if I hit the .svc file via IE using
the
>https://server/service.svc link it spits back a http link reference to
the
>WSDL. Even if I rewrite the URL as https://server/services.svc?WSDL, it just sends me to the initial page with the http wsdl link.
Surely that can't be right?
I'm assuming there's some point of endpoint configuration I need to do. That's the part I'm missing/confused about. -JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message news:2S**************@TK2MSFTNGHUB02.phx.gbl...
>>Hi Jonathan,
From your description, you're going to expose your WCF service via both
SSL
>>and non-SSL channel, correct?
Are you going to use SSL over Http(the most common and convenient approach)? For non-SSL, I think it is quite straightforward, and what
you
>>need to do is adding a new service endponit that use https/ssl based address. If hosting in IIS is possible, I recommend you host the
https/ssl
>>one in IIS since that can make the SSL/HTTPS configuration much more convenient. Here are some reference about configuring SSL/HTTPS in IIS:
#On IIS 6.0, how do I configure my website to use SSL? http://www.petri.co.il/configure_ssl...e_with_iis.htm
#Configuring SSL on a Web Server or Web Site (IIS 6.0) http://www.microsoft.com/technet/pro.../Library/IIS/5
>>6bdf977-14f8-4867-9c51-34c346d48b04.mspx?mfr=true
Sure, https/ssl can be used out of IIS based on the new http.sys
component
>>in windows and WCF can also uitlize it. However, it will require much
more
>>configuration which is complex. Here are some reference mentioned about configurating HTTPS in self-hosted context:
#Configuring HTTP and HTTPS http://msdn2.microsoft.com/en-us/library/ms733768.aspx
#WCF example: Using of self-hosted service with SSL http://developers.de/blogs/damir_dob...08/01/897.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
and
>>suggestions about how we can improve the support we provide to you.
Please
>>feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================ == Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>>ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>>where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each
follow
>>up response may take approximately 2 business days as the support professional working with you may need further investigation to reach
the
>>most efficient resolution. The offering is not appropriate for
situations
>>that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are
best
>>handled working with a dedicated Microsoft Support Engineer by
contacting
>>Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================ == This posting is provided "AS IS" with no warranties, and confers no
rights.
>>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> Subject: WCF webservice over SSL and without Date: Thu, 3 Apr 2008 23:12:13 -0400
Hi,
I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old
previous
>>beta versions and I admit I am rather confused and frustrated.
That being said, I'd like some direction in how exactly I'm supposed to accomplish this.
Thanks very much, JK
Hi Jonathan,
Here are some further information I've got. The url address display on the
service description does be changable. We can change it by customizing the
servicehost's base address. For IIS hosted scenario, we need to register a
ServiceHostFactory for the service like below:
=======apply the service factory type in @ServiceHost
directive================
<%@ ServiceHost Language="C#" Debug="true" Service="Service"
Factory="WCFExtensionLib.MyServiceHostFactory"
CodeBehind="~/App_Code/Service.cs" %>
===========create the custom servicehost factory class===============
namespace WCFExtensionLib
{
public class MyServiceHostFactory :ServiceHostFactory
{
protected override System.ServiceModel.ServiceHost
CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
Uri[] addrs = new Uri[2];
addrs[0] = new Uri("http://138129m/WCFSVC/service.svc");
addrs[1] = new Uri("https://138129m/WCFSVC/service.svc");
return base.CreateServiceHost(serviceType, addrs);
}
}
}
=======================
BTW, the address you supplied should match the service.svc(svc file)'s
real virtual path so that the client consumer can reach the svc file via
that path, otherwise, it will not work.
Hope this also helps some.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
X-Tomcat-ID: 90102308
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
<#c**************@TK2MSFTNGP05.phx.gbl>
<5Q**************@TK2MSFTNGHUB02.phx.gbl>
<eu**************@TK2MSFTNGP02.phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_0001_B95C5D5C"
Content-Transfer-Encoding: 7bit
From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Mon, 28 Apr 2008 10:15:32 GMT
Subject: Re: WCF webservice over SSL and without
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Message-ID: <NU**************@TK2MSFTNGHUB02.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
Lines: 633
Path: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.webservices:3487
NNTP-Posting-Host: TOMCATIMPORT3 10.201.220.210
Thanks for your reply Jonathan,
I'll perform some further research to see whether there is still any other
means helpful. I'll update you if I get any new results.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
<#c**************@TK2MSFTNGP05.phx.gbl>
<5Q**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Fri, 25 Apr 2008 12:08:53 -0400
Thanks, but I know how to do all that. Http works fine (because I set a
host header with the
correct public host name), this is just https that's the problem...
I simply want to customize the machinename in https://machinename/file.svc?wsdl output on
https when going to the service.
-JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:5Q**************@TK2MSFTNGHUB02.phx.gbl...
Thanks for your followup JK,
So the problem seems due to the the public internet can not directly get
into your server machien via the servername. is there a public accessible
DNS address for the server so that external network can visit it?
Based on my research, for IIS hosted WCF environment, it will be hard to
customize the metadata exchange endpoints. I think you can consider the
following mean to expose the WCF service's metadata:
1. You can host the same service on another public accessible server and
it
is only used to expose the metadata for the client to download. also, for
that service, you do not need to use HTTPS/SSL
2. WCF provide a svcutil.exe that can help download the metadata of a
service to local files. You can use it to download the metadata to local
files and republish them via a public accessible server. BTW, you need to
open the wsdl document and change some urls in it since the default values
are still pointing to the original server address(the machinename for your
case):
#ServiceModel Metadata Utility Tool (Svcutil.exe) http://msdn2.microsoft.com/en-us/library/aa347733.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam>
From: "Jonathan Kay" <jo*********@newsgroup.nospam>
References: <O5**************@TK2MSFTNGP05.phx.gbl>
<2S**************@TK2MSFTNGHUB02.phx.gbl>
<ex**************@TK2MSFTNGP05.phx.gbl>
<if**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: WCF webservice over SSL and without
Date: Thu, 24 Apr 2008 20:39:14 -0400
Hi Steven and Tiago,
Sorry for the late response, I've been away for a bit and this got put on
the backburner.
Thanks to both of you, I've managed to get https working (almost). I
think
perhaps I'm still
doing something wrong?
After adding httpsGetEnabled="true, it works beautifully, however, it
spits
out https://machinename/filename.svc?wsdl which won't work from the public
internet.
So to change this, among the other things I've attempted, I tried using
httpsGetUrl and was
presented with this:
A registration already exists for URI 'https://machinename/file.svc'.
I've tried other things (baseAddress, etc.) and none of it seems to change
it...
Thanks,
JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:if**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Jonathan,
Have you got any progress on this or does the suggestion in my last reply help some?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================= = Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.
This posting is provided "AS IS" with no warranties, and confers no
rights.
>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> References: <O5**************@TK2MSFTNGP05.phx.gbl> <2S**************@TK2MSFTNGHUB02.phx.gbl> Subject: Re: WCF webservice over SSL and without Date: Fri, 4 Apr 2008 12:58:48 -0400
Thank you Steven. Yes I am going to use the IIS method and I do have it already setup for that. I'm also familiar with how to setup a secure site in IIS. Additionally, I've also configured the older ASMX webservices over https via IIS before.
However, with this WCF webservice, if I hit the .svc file via IE using
the
>https://server/service.svc link it spits back a http link reference to
the
>WSDL. Even if I rewrite the URL as https://server/services.svc?WSDL, it just sends me to the initial page with the http wsdl link.
Surely that can't be right?
I'm assuming there's some point of endpoint configuration I need to do. That's the part I'm missing/confused about. -JK
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message news:2S**************@TK2MSFTNGHUB02.phx.gbl...
>>Hi Jonathan,
From your description, you're going to expose your WCF service via both
SSL
>>and non-SSL channel, correct?
Are you going to use SSL over Http(the most common and convenient approach)? For non-SSL, I think it is quite straightforward, and what
you
>>need to do is adding a new service endponit that use https/ssl based address. If hosting in IIS is possible, I recommend you host the
https/ssl
>>one in IIS since that can make the SSL/HTTPS configuration much more convenient. Here are some reference about configuring SSL/HTTPS in IIS:
#On IIS 6.0, how do I configure my website to use SSL? http://www.petri.co.il/configure_ssl...e_with_iis.htm
#Configuring SSL on a Web Server or Web Site (IIS 6.0) http://www.microsoft.com/technet/pro.../Library/IIS/5
>>6bdf977-14f8-4867-9c51-34c346d48b04.mspx?mfr=true
Sure, https/ssl can be used out of IIS based on the new http.sys
component
>>in windows and WCF can also uitlize it. However, it will require much
more
>>configuration which is complex. Here are some reference mentioned about configurating HTTPS in self-hosted context:
#Configuring HTTP and HTTPS http://msdn2.microsoft.com/en-us/library/ms733768.aspx
#WCF example: Using of self-hosted service with SSL http://developers.de/blogs/damir_dob...08/01/897.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
and
>>suggestions about how we can improve the support we provide to you.
Please
>>feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com.
================================================ == Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
>>ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>>where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each
follow
>>up response may take approximately 2 business days as the support professional working with you may need further investigation to reach
the
>>most efficient resolution. The offering is not appropriate for
situations
>>that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are
best
>>handled working with a dedicated Microsoft Support Engineer by
contacting
>>Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================ == This posting is provided "AS IS" with no warranties, and confers no
rights.
>>> -------------------- Reply-To: "Jonathan Kay" <jo*********@newsgroup.nospam> From: "Jonathan Kay" <jo*********@newsgroup.nospam> Subject: WCF webservice over SSL and without Date: Thu, 3 Apr 2008 23:12:13 -0400
Hi,
I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old
previous
>>beta versions and I admit I am rather confused and frustrated.
That being said, I'd like some direction in how exactly I'm supposed to accomplish this.
Thanks very much, JK This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Pete Hearn |
last post by:
Hello All,
New to the whole C#/Webservice/ADO.NET thing, so apologies in advance if
this is a daft question!
I have a webservice which returns a dataset - no problem there and all very...
|
by: stephan querengaesser |
last post by:
hi ng,
i try to invoke a webservice-method with an filter-object, that
contains value types. if i donīt want to filter the return value of
the method, i have to pass a new instance of the...
|
by: Topper |
last post by:
Hello!
How to create WebService without IIS and ASP.NET?
For example, create WebService for smart device client without ASP.NET/IIS
techology.
Without ASP.NET and IIS - is a key question!!
...
|
by: Topper |
last post by:
Hello.
I have simple web folders structure:
-ROOT
- BIN
WebService.dll
WebService.asmx
I need to use my WebService.dll not in bin folder - for example, in ROOT.
How do i this?
How can i do...
|
by: Suresh |
last post by:
Hi all,
I have a webservice that's running on a specific port (8003) in webserver
behind a firewall.
The service accesses a CC authorization service on the internet. We use a
proxy to get out to...
|
by: batista |
last post by:
Hi,
I'm using webservice.htc to call a non-secure(without https) webservice
method from a webpage.
Now, if the webpage is not under https then everything works fine.
But, when enable ssl in...
|
by: =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?= |
last post by:
In my ASP.Net 2.0 website I defined base page type in web config as follows:
<pages MaintainScrollPositionOnPostback="true" pageBaseType="base_Page" />
It all works fine for the pages.
Now I am...
|
by: sirmoreno |
last post by:
Hi,
In my web site I have some long tasks that I want to call without delaying the page rendering - without making the thread that handels the page request wait for the long task to end.
I...
|
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= |
last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0.
This problem can be shown when trying to access a WebService using SSL and
through a proxy server after using the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |