473,662 Members | 2,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ClientCertifica tes and SoapWebRequest

Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a
client certificate to access a webservice. normally HttpWebRequest exposes a
ClientCertifica tes property, so that I can load a client certificate and add
to this property and everything will just work. but I'm using SoapWebRequest
since I'm accessing a webservice, and SoapWebRequest does not expose a
ClientCertifica tes property that I could use.

how can I use a client certificate to access a webservice using
SoapWebRequest?

thanks,
-Jason
Nov 23 '05 #1
5 4050
Hi Jason,

Welcome again!
AS for the SoapWebRequest component you mentioned, it seems a old component
in the WSE 1.0 and currently we are not recommended to use it since we have
new components and models in the wse2.0 and the comming WSE 3.0.

Also, as for client side certificate, it is mainly used for transport level
security over HTTP like SSL/TLS. For WSE, it is mainly used for Message
Level security (do message securing at the SOAP message level rather than
the transport layer like HTTP). So for such scenario that you'd like to use
SSL/TLS that required client certificate, you can use the .NET's buildin
webservide proxy which derived from SoapHttpClientP rotocol or the WSE2.0's
default proxy which derived from
WebServciesClie ntProtocol

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: <ja********@new sgroups.nospam>
Subject: ClientCertifica tes and SoapWebRequest
Date: Tue, 11 Oct 2005 23:32:06 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <OW************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 0
9.phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12346
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a
client certificate to access a webservice. normally HttpWebRequest exposes a
ClientCertifica tes property, so that I can load a client certificate and add
to this property and everything will just work. but I'm using SoapWebRequest
since I'm accessing a webservice, and SoapWebRequest does not expose a
ClientCertifica tes property that I could use.

how can I use a client certificate to access a webservice using
SoapWebRequest?

thanks,
-Jason

Nov 23 '05 #2
hehe Steven,
thanks thanks. I'm back bothering you again. :) actually I just found
out a way to reference HttpWebRequest from SoapWebRequest by following
HttpWebRequest r = (HttpWebRequest )soapReq.Reques t;

reason that I had to do this is because I'm changing some existing code and
add client certificate support to that code. and that code uses
SoapWebRequest. in fact WSE2.0 sp3 still offer SoapWebRequest, it's located
under Microsoft.Web.S ervices2.SoapWe bRequest, is it something going away in
WSE3.0 ?

judging from the naming, is it true that SoapHttpClientP rotocol can be only
used for webservices running on http protocol and SoapWebRequest can be use
in all possible protocols?

thanks,

-Jason
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:qz******** ******@TK2MSFTN GXA02.phx.gbl.. .
Hi Jason,

Welcome again!
AS for the SoapWebRequest component you mentioned, it seems a old component in the WSE 1.0 and currently we are not recommended to use it since we have new components and models in the wse2.0 and the comming WSE 3.0.

Also, as for client side certificate, it is mainly used for transport level security over HTTP like SSL/TLS. For WSE, it is mainly used for Message
Level security (do message securing at the SOAP message level rather than
the transport layer like HTTP). So for such scenario that you'd like to use SSL/TLS that required client certificate, you can use the .NET's buildin
webservide proxy which derived from SoapHttpClientP rotocol or the WSE2.0's
default proxy which derived from
WebServciesClie ntProtocol

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: <ja********@new sgroups.nospam>
Subject: ClientCertifica tes and SoapWebRequest
Date: Tue, 11 Oct 2005 23:32:06 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <OW************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 0 9.phx.gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12346
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a
client certificate to access a webservice. normally HttpWebRequest exposes a ClientCertifica tes property, so that I can load a client certificate and add to this property and everything will just work. but I'm using SoapWebRequest since I'm accessing a webservice, and SoapWebRequest does not expose a
ClientCertifica tes property that I could use.

how can I use a client certificate to access a webservice using
SoapWebRequest?

thanks,
-Jason

Nov 23 '05 #3
Thanks for your response Jason,

En, yes the SoapWebRequest has adopted the WebRequest model of the .net
framework network utility library like the HttpWebRequest. However, I think
the WSE team has changed the WSE design after WSE1. So in the sequential
version SoapWebRequest is not used almost. In WSE2, for general proxy for
asp.net webservcie we use the WebserviceClien tProtocol derived class. And
for other simple webservice call, we have SoapClient/SoapService,
SoapSender/SoapReceiver.

In addition, SoapWebRequest dosn't means it can utilize webservice through
many other protocol other than HTTP. The current availabe SoapWebRequest
also only provide HTTP support. So we'll recommend that you avoid using it
in new projects.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: <ja********@new sgroups.nospam>
References: <OW************ **@TK2MSFTNGP09 .phx.gbl>
<qz************ **@TK2MSFTNGXA0 2.phx.gbl>
Subject: Re: ClientCertifica tes and SoapWebRequest
Date: Wed, 12 Oct 2005 12:01:14 -0400
Lines: 92
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <uM************ *@TK2MSFTNGP12. phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 1
2.phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12356
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

hehe Steven,
thanks thanks. I'm back bothering you again. :) actually I just found
out a way to reference HttpWebRequest from SoapWebRequest by following
HttpWebRequest r = (HttpWebRequest )soapReq.Reques t;

reason that I had to do this is because I'm changing some existing code and
add client certificate support to that code. and that code uses
SoapWebRequest. in fact WSE2.0 sp3 still offer SoapWebRequest, it's located
under Microsoft.Web.S ervices2.SoapWe bRequest, is it something going away in
WSE3.0 ?

judging from the naming, is it true that SoapHttpClientP rotocol can be only
used for webservices running on http protocol and SoapWebRequest can be use
in all possible protocols?

thanks,

-Jason
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:qz******** ******@TK2MSFTN GXA02.phx.gbl.. .
Hi Jason,

Welcome again!
AS for the SoapWebRequest component you mentioned, it seems a old component in the WSE 1.0 and currently we are not recommended to use it since we have new components and models in the wse2.0 and the comming WSE 3.0.

Also, as for client side certificate, it is mainly used for transport level security over HTTP like SSL/TLS. For WSE, it is mainly used for Message
Level security (do message securing at the SOAP message level rather than
the transport layer like HTTP). So for such scenario that you'd like to use SSL/TLS that required client certificate, you can use the .NET's buildin
webservide proxy which derived from SoapHttpClientP rotocol or the WSE2.0's
default proxy which derived from
WebServciesClie ntProtocol

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: <ja********@new sgroups.nospam>
Subject: ClientCertifica tes and SoapWebRequest
Date: Tue, 11 Oct 2005 23:32:06 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <OW************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 0 9.phx.gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12346
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a
client certificate to access a webservice. normally HttpWebRequest exposes a ClientCertifica tes property, so that I can load a client certificate and add to this property and everything will just work. but I'm using SoapWebRequest since I'm accessing a webservice, and SoapWebRequest does not expose a
ClientCertifica tes property that I could use.

how can I use a client certificate to access a webservice using
SoapWebRequest?

thanks,
-Jason


Nov 23 '05 #4
I see. thanks steven.

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:jn******** ******@TK2MSFTN GXA01.phx.gbl.. .
Thanks for your response Jason,

En, yes the SoapWebRequest has adopted the WebRequest model of the .net
framework network utility library like the HttpWebRequest. However, I think the WSE team has changed the WSE design after WSE1. So in the sequential
version SoapWebRequest is not used almost. In WSE2, for general proxy for
asp.net webservcie we use the WebserviceClien tProtocol derived class. And
for other simple webservice call, we have SoapClient/SoapService,
SoapSender/SoapReceiver.

In addition, SoapWebRequest dosn't means it can utilize webservice through
many other protocol other than HTTP. The current availabe SoapWebRequest
also only provide HTTP support. So we'll recommend that you avoid using it
in new projects.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: <ja********@new sgroups.nospam>
References: <OW************ **@TK2MSFTNGP09 .phx.gbl>
<qz************ **@TK2MSFTNGXA0 2.phx.gbl>
Subject: Re: ClientCertifica tes and SoapWebRequest
Date: Wed, 12 Oct 2005 12:01:14 -0400
Lines: 92
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <uM************ *@TK2MSFTNGP12. phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 1 2.phx.gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12356
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

hehe Steven,
thanks thanks. I'm back bothering you again. :) actually I just found
out a way to reference HttpWebRequest from SoapWebRequest by following
HttpWebRequest r = (HttpWebRequest )soapReq.Reques t;

reason that I had to do this is because I'm changing some existing code and add client certificate support to that code. and that code uses
SoapWebRequest. in fact WSE2.0 sp3 still offer SoapWebRequest, it's located under Microsoft.Web.S ervices2.SoapWe bRequest, is it something going away in WSE3.0 ?

judging from the naming, is it true that SoapHttpClientP rotocol can be only used for webservices running on http protocol and SoapWebRequest can be use in all possible protocols?

thanks,

-Jason
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:qz******** ******@TK2MSFTN GXA02.phx.gbl.. .
Hi Jason,

Welcome again!
AS for the SoapWebRequest component you mentioned, it seems a old component
in the WSE 1.0 and currently we are not recommended to use it since we

have
new components and models in the wse2.0 and the comming WSE 3.0.

Also, as for client side certificate, it is mainly used for transport

level
security over HTTP like SSL/TLS. For WSE, it is mainly used for Message
Level security (do message securing at the SOAP message level rather than the transport layer like HTTP). So for such scenario that you'd like to

use
SSL/TLS that required client certificate, you can use the .NET's buildin
webservide proxy which derived from SoapHttpClientP rotocol or the WSE2.0's default proxy which derived from
WebServciesClie ntProtocol

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: <ja********@new sgroups.nospam>
Subject: ClientCertifica tes and SoapWebRequest
Date: Tue, 11 Oct 2005 23:32:06 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <OW************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:

TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 0
9.phx.gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12346
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a client certificate to access a webservice. normally HttpWebRequest

exposes a
ClientCertifica tes property, so that I can load a client certificate and

add
to this property and everything will just work. but I'm using

SoapWebRequest
since I'm accessing a webservice, and SoapWebRequest does not expose a
ClientCertifica tes property that I could use.

how can I use a client certificate to access a webservice using
SoapWebRequest?

thanks,
-Jason


Nov 23 '05 #5
You're welcome Jason,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: <ja********@new sgroups.nospam>
References: <OW************ **@TK2MSFTNGP09 .phx.gbl>
<qz************ **@TK2MSFTNGXA0 2.phx.gbl>
<uM************ *@TK2MSFTNGP12. phx.gbl>
<jn************ **@TK2MSFTNGXA0 1.phx.gbl>
Subject: Re: ClientCertifica tes and SoapWebRequest
Date: Thu, 13 Oct 2005 14:30:55 -0400
Lines: 159
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <OS************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
microsoft.publi c.dotnet.framew ork.webservices :8213
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I see. thanks steven.

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:jn******** ******@TK2MSFTN GXA01.phx.gbl.. .
Thanks for your response Jason,

En, yes the SoapWebRequest has adopted the WebRequest model of the .net
framework network utility library like the HttpWebRequest. However, I think the WSE team has changed the WSE design after WSE1. So in the sequential
version SoapWebRequest is not used almost. In WSE2, for general proxy for
asp.net webservcie we use the WebserviceClien tProtocol derived class. And
for other simple webservice call, we have SoapClient/SoapService,
SoapSender/SoapReceiver.

In addition, SoapWebRequest dosn't means it can utilize webservice through
many other protocol other than HTTP. The current availabe SoapWebRequest
also only provide HTTP support. So we'll recommend that you avoid using it
in new projects.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: <ja********@new sgroups.nospam>
References: <OW************ **@TK2MSFTNGP09 .phx.gbl>
<qz************ **@TK2MSFTNGXA0 2.phx.gbl>
Subject: Re: ClientCertifica tes and SoapWebRequest
Date: Wed, 12 Oct 2005 12:01:14 -0400
Lines: 92
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <uM************ *@TK2MSFTNGP12. phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 1 2.phx.gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12356
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

hehe Steven,
thanks thanks. I'm back bothering you again. :) actually I just found
out a way to reference HttpWebRequest from SoapWebRequest by following
HttpWebRequest r = (HttpWebRequest )soapReq.Reques t;

reason that I had to do this is because I'm changing some existing code and add client certificate support to that code. and that code uses
SoapWebRequest. in fact WSE2.0 sp3 still offer SoapWebRequest, it's located under Microsoft.Web.S ervices2.SoapWe bRequest, is it something going away in WSE3.0 ?

judging from the naming, is it true that SoapHttpClientP rotocol can be only used for webservices running on http protocol and SoapWebRequest can be use in all possible protocols?

thanks,

-Jason
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:qz******** ******@TK2MSFTN GXA02.phx.gbl.. .
Hi Jason,

Welcome again!
AS for the SoapWebRequest component you mentioned, it seems a old component
in the WSE 1.0 and currently we are not recommended to use it since we

have
new components and models in the wse2.0 and the comming WSE 3.0.

Also, as for client side certificate, it is mainly used for transport

level
security over HTTP like SSL/TLS. For WSE, it is mainly used for Message
Level security (do message securing at the SOAP message level rather than the transport layer like HTTP). So for such scenario that you'd like to

use
SSL/TLS that required client certificate, you can use the .NET's buildin
webservide proxy which derived from SoapHttpClientP rotocol or the WSE2.0's default proxy which derived from
WebServciesClie ntProtocol

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: <ja********@new sgroups.nospam>
Subject: ClientCertifica tes and SoapWebRequest
Date: Tue, 11 Oct 2005 23:32:06 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.326
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
Message-ID: <OW************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: a7cebc03.cst.li ghtpath.net 167.206.188.3
Path:

TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 0
9.phx.gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :12346
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a client certificate to access a webservice. normally HttpWebRequest

exposes a
ClientCertifica tes property, so that I can load a client certificate and

add
to this property and everything will just work. but I'm using

SoapWebRequest
since I'm accessing a webservice, and SoapWebRequest does not expose a
ClientCertifica tes property that I could use.

how can I use a client certificate to access a webservice using
SoapWebRequest?

thanks,
-Jason



Nov 23 '05 #6

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

Similar topics

0
1155
by: Chandy | last post by:
Hi, I am trying to detect in code whether a user has authenticated against my server using a client certificate. I am using the following: Dim conCert As HttpClientCertificate conCert = HttpContext.Current.Request.ClientCertificate dim isPresent as boolean = conCert.IsPresent dim isValid as boolean = conCert.IsValid
0
997
by: TC | last post by:
Hey All, Below is a sample of the code that I was handed in VB using the SOAP SDK --I did not write this -- don't shoot the messenger ;-) Private Const ENC = "http://schemas.xmlsoap.org/soap/encoding/" Private Const XSI = "http://www.w3.org/1999/XMLSchema-instance" Private Const XSD = "http://www.w3.org/1999/XMLSchema"
1
2165
by: Sidharth | last post by:
Hello all, We use reporting services via our website to display some reports to our users. We had some problems with this in that we get occasional web connection closed error. We were able to limit the number of times this error came up by modifying the references.cs file and overriding the GetWebRequest() method and setting the KeepAlive setting of the webrequest to false. This helped to decrease the number of times error appeared but...
2
9177
by: David G | last post by:
My company has a Webservice that is currently running in production. It is secured using SSL and clients are authenticated using X509 certificates. I am able to consume the Webservice methods in a Framework 2.0 c# Forms based application where I instantiate the X509 Certificate by pointing to the certificate file and passing the password: //==================== X509Certificate cert = new X509Certificate(this.tbCertFilePath.Text,...
2
2657
by: b.fokke | last post by:
I'd like to connect to a webservice using TLS/SSL. I have two separate client certificates: 1. A certificate for digital verification 2. A certificate for encryption. When I use the first one (i.e. add it to the ClientCertificates collection of the web request), I can establish a connection but I get a WebException: "Underlying connection closed: Could not establish trust relationship". When I use the second one I can't even establish a...
5
4452
by: jitsu | last post by:
Hi all, I have a problem. I need to connect to Web Server, send a xml string (query) to it and receive another xml string (result). I have the location of the Web Server like: https://extranet....com:8443, then user name and password, then I have the certifiace (I have already installed it to my computer) and I know the xml query string like:
0
1425
by: calebmeii | last post by:
Hi, Anyone's help is really appreciated! VS05 with .net 2.0, on Windows XP/2003 IIS 5/6, on ASP, When post a HttpWebRequest with client ceritificate X509Certificate cert = X509Certificate.CreateFromCertFile(certFile);
1
5528
by: Marco Shaw [MVP] | last post by:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.clientcertificates.aspx I'm having a hard time to find/understand how this property works. It only supports get, but how does one go about defining this property in the first place? Is it via another method where we have to have already loading on the system? Will it automagically populate when I set these: <object>.UseDefaultCredentials = true;
7
4007
by: chickendavis | last post by:
Hi folks, I have what seems like a fairly straight forward question which im sure has a simple answer as well..but i can't seem to find it. I'm using the Microsoft .NET WSE2 library in order to call web services. When it fails to connect or server returns 500 error, etc.. i can see the message in teh exception but i can't seem to find a way to get at the actual '500' code or '200' or whatever code has occured. Here is a snippet from my code:...
0
8435
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
8345
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
8768
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
8547
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
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
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
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.