473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Using certificates in client consuming a web service

Frinavale
9,735 Expert Mod 8TB
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 "TrustedPeople" 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.ClientCredentials.ClientCertificate 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:Security> 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 1093

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

Similar topics

2
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...
1
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...
0
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...
0
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...
0
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...
5
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...
2
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...
1
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. ...
1
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:...
2
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 '...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.