473,657 Members | 2,545 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using certificates in client consuming a web service

Frinavale
9,735 Recognized Expert Moderator Expert
I am currently developing a VB.NET application which consumes a Web Service (implemented in Java).

I am hosting the Web Service using Apache Tomcat on my development machine (localhost). The web service requires the use of certificates to verify who is calling it. I have created the certificates (one client and one server) using Java's keytool.exe tool. I have installed both certificates into the "TrustedPeo ple" store and I have place the certificates into the folder where the web application is expecting them to be (according to the instructions).

Even though I have dabbled in consuming web services I've never had to use certificates before. As far as I can tell, the only way that I can use this certificate with the proxy class is to use the proxyClient.Cli entCredentials. ClientCertifica te property.

So I have the following code:
Expand|Select|Wrap|Line Numbers
  1. proxyClient.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.CurrentUser, StoreName.TrustedPeople, X509FindType.FindByIssuerName, "theName")
However, whenever I attempt to call a method using I keep getting the following error message:
An error was discovered processing the <wsse:Securit y> header
Does anyone know how to get around this problem?
Am I missing something?

What do I have to do to get this to work?

Thanks,

-Frinny
Sep 16 '10 #1
0 1096

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1748
by: Ralph Jones | last post by:
Hi I just wrote my first web service and now I want to enable security for both server and client. That's why I decided to use X509- Certificates on both server and client, so that every data that is send/received between both is encrypted and signed to keep hackers away Now, the problem is, that I haven't found a way to 'add' a certificate to my web service object (in VB.NET). The class NetworkCredentials does not seem to support this (or am...
1
5865
by: Vasu | last post by:
Hi, I have a requirement to download a file from the web site using a client tool. Iam writing a C# program to download using WebRequest, HttpRequest, WebResponse and so on. The problem Iam having is to navigate thru multiple pages. I have to login
0
1116
by: Fabricio de Reuter Sperandio | last post by:
Hi everybody, I did an ASP.NET application to send a fax using the Extended Fax Service COM API. I am running Windows XP. The problem is: When I send Text files, it mens, the FaxDocument.Body property is set to a text file, the fax works fine, but when I try to send other type of file, like Word documents, it fails. I submit the form and have no ansewrs, no error code, it just doesn't return anymore.
0
1890
by: Subra Mallampalli | last post by:
Hi, I am trying to connect over HTTPS using a client certificate. I am able to connect fine when using IE. From my application, however, I get the following error: The underlying connection was closed: Could not establish secure channel for SSL/TLS. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at
0
4534
by: paulngpc | last post by:
> Hi folks > > This is a challenging and interesting topic. Need HELP on > this, would be good if some tips/techniques can be given > for the topic. > > Using VB.NET client to connect to JavaWebserver. Don't > know how to use the 2-way SSL to communicate and make the > SSL handshake process( at Transport level https://) > transparent. Any .NET classes to make all the 2-way SSL
5
4442
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client certificate, since it derives System.Web.Services.WebService class, and it's Context.Request.ClientCertificate is a single HttpClientCertificate object, is there a way to receive all the client certificates that is sent in the request? or does IIS...
2
13009
by: Josef Brunner | last post by:
Hi everybody, my VB.NET (Framework 2.0) client application has to do a HttpWebRequest (for reading web-pages and downloading files) on a web server. The server uses a self-signed certifiacte and the client application should also use a self-signed certificate (of course, signed by the same self-made CA) so we would have an authentication of both directions: the server to the client and the other way round. Is there a way to...
1
2119
by: Colin | last post by:
I created a walkthrough for "How to call a Web service by using a client certificate for authentication in an ASP.NET Web application"using makecert, certutil, WinHttpCertCfg.exe X509Certificate. You can find it here: http://igottools.com/Lists/Posts/Post.aspx?ID=11 Hope it helps you guys making client authentication via webservices to work. Kind regards,
1
2101
by: vyasanjali | last post by:
Hi I am trying to my site user to a other site api using SOAP client . But Every time its give uncatchable error. I am using nusoap class .But shows error that given below: Fatal error: Cannot redeclare class soapclient in "Fatal error: Cannot redeclare class soapclient in"
2
1426
by: brettokumar | last post by:
hi i my pro im using orcale client server while i m using update query i run properly. but instead of query im using storeprocedure i can not execute it display error like 'invalid sql statement ' if im execute that procedure in my pl/sql it run properly my code is like public string exeQry(string qry) {
0
8392
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
8305
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
8732
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
8503
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
8605
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
5632
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();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1953
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1611
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.