473,597 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WCF webservice over SSL and without

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
Apr 4 '08 #1
5 2925
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.comw rote in message
news:if******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:2S******** ******@TK2MSFTN GHUB02.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.ms px?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
configuratio n which is complex. Here are some reference mentioned about
configuratin g 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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.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.
Unfortunatel y 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

Jun 27 '08 #2
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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:if******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:2S******** ******@TK2MSFTN GHUB02.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.ms px?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
>configuratio n which is complex. Here are some reference mentioned about
configuratin g 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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.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.
Unfortunatel y 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


Jun 27 '08 #3
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.comw rote in message
news:5Q******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:if******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S*********** ***@TK2MSFTNGHU B02.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.comw rote in message
news:2S******* *******@TK2MSFT NGHUB02.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

#Configurin g 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.ms px?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
>>configurati on which is complex. Here are some reference mentioned about
configurati ng HTTPS in self-hosted context:

#Configurin g 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****@microsof t.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
professiona l 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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.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.
Unfortunate ly 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


Jun 27 '08 #4
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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.phx.gbl>
<#c************ **@TK2MSFTNGP05 .phx.gbl>
<5Q************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:5Q******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:if******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S*********** ***@TK2MSFTNGHU B02.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.comw rote in message
news:2S******* *******@TK2MSFT NGHUB02.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

#Configurin g 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.ms px?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
>>configurati on which is complex. Here are some reference mentioned about
configurati ng HTTPS in self-hosted context:

#Configurin g 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****@microsof t.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
professiona l 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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.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.
Unfortunate ly 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



Jun 27 '08 #5
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
ServiceHostFact ory for the service like below:

=======apply the service factory type in @ServiceHost
directive====== ==========
<%@ ServiceHost Language="C#" Debug="true" Service="Servic e"
Factory="WCFExt ensionLib.MySer viceHostFactory "
CodeBehind="~/App_Code/Service.cs" %>

===========crea te the custom servicehost factory class========== =====

namespace WCFExtensionLib
{
public class MyServiceHostFa ctory :ServiceHostFac tory
{
protected override System.ServiceM odel.ServiceHos t
CreateServiceHo st(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.CreateServ iceHost(service Type, 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****@microsof t.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************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.phx.gbl>
<#c************ **@TK2MSFTNGP05 .phx.gbl>
<5Q************ **@TK2MSFTNGHUB 02.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.publi c.dotnet.framew ork.webservices
Message-ID: <NU************ **@TK2MSFTNGHUB 02.phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 633
Path: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.phx.gbl>
<#c************ **@TK2MSFTNGP05 .phx.gbl>
<5Q************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:5Q******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S************ **@TK2MSFTNGHUB 02.phx.gbl>
<ex************ **@TK2MSFTNGP05 .phx.gbl>
<if************ **@TK2MSFTNGHUB 02.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.comw rote in message
news:if******** ******@TK2MSFTN GHUB02.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****@microsof t.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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.nospam>
References: <O5************ **@TK2MSFTNGP05 .phx.gbl>
<2S*********** ***@TK2MSFTNGHU B02.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.comw rote in message
news:2S******* *******@TK2MSFT NGHUB02.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

#Configurin g 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.ms px?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
>>configurati on which is complex. Here are some reference mentioned about
configurati ng HTTPS in self-hosted context:

#Configurin g 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****@microsof t.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
professiona l 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*********@ne wsgroup.nospam>
From: "Jonathan Kay" <jo*********@ne wsgroup.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.
Unfortunate ly 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



Jun 27 '08 #6

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

Similar topics

5
10950
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 standard. However, I want to pass an arraylist of objects to the method which returns the dataset (the arraylist contains QBE parameter objects) but the compiler chokes saying it wants an object array instead.
7
5387
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 filter-object without setting any properties. but the value type-properties can´t be null and the filter is set to 0 (int) or false (bool). therefore i did implement the propertySpecified-pattern like this:
5
5387
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!! May somebody knows where can i get information or examples for current subject....
8
4178
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 this without .config file only with some configuration
1
10455
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 the internet. We have a domain name registered for this webservice. So my WSDL gives me the following: http://ourdomain.com:8003/ProcessCC.asmx
1
2227
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 that page the webservice method does'nt work. So how shud i solve this.
2
2182
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 adding webservices to the site - I use the same business objects and authentication/authorization. The code behind the webservice is trivial:
0
1377
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 found two solutions but I can't figure out which one is better? 1. Asynchronous OneWay WebService: - Declare a OneWay method for the long task inside an asmx file in my website and WebReference it.
2
3474
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 HttpWebRequest object. Under normal circumstances I am able to use the webservice without any problems. But after using an HttpWebRequest object to make a call to a website all subsequent attempts to use the WebService will fail with a 401...
0
7965
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7885
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8271
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8031
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5426
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2399
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1231
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.