473,473 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

secure web service

I'm building a Java Web Services exposed on the internet which I want to
restrain the use to only a few authorized programs, that is .NET Windows
Service (like IIS, Apache, etc..) I also intend to write.

I had a hard time finding clear and simple on how to use security with web
services.
Let's imagine I get it right (I'm not sure) I runned a 'secure' Hello web
services on Sun's app server.

Now I try to connect to it with a .NET client.
It's unclear to me how to connect with the right certificate.

I try something like that:

MyHelloService ds = new MyHelloService();
ds.Url = https://IHOOK-LLOYD.5dservices.com.a...-jaxrpc/hello;
ds.Timeout = 10000;
ds.ClientCertificates.Add(GetCert());
textRemote.Text = ds.sayHello(textUser.Text);

and the get cert return a new X509Certificate(buf)
where buf is the content of client.cer generate by java's keytool tool.

it doenst't work..... :(

on the other hand I found a sample on MSDN with plenty of interop and plenty
of line just to authenticate, I can't belive it's so complex!

any tips, links, others?


Nov 21 '05 #1
1 1786
I found that!
http://msdn.microsoft.com/webservice...interopsun.asp

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm building a Java Web Services exposed on the internet which I want to
restrain the use to only a few authorized programs, that is .NET Windows
Service (like IIS, Apache, etc..) I also intend to write.

I had a hard time finding clear and simple on how to use security with web
services.
Let's imagine I get it right (I'm not sure) I runned a 'secure' Hello web
services on Sun's app server.

Now I try to connect to it with a .NET client.
It's unclear to me how to connect with the right certificate.

I try something like that:

MyHelloService ds = new MyHelloService();
ds.Url = https://IHOOK-LLOYD.5dservices.com.a...-jaxrpc/hello;
ds.Timeout = 10000;
ds.ClientCertificates.Add(GetCert());
textRemote.Text = ds.sayHello(textUser.Text);

and the get cert return a new X509Certificate(buf)
where buf is the content of client.cer generate by java's keytool tool.

it doenst't work..... :(

on the other hand I found a sample on MSDN with plenty of interop and
plenty of line just to authenticate, I can't belive it's so complex!

any tips, links, others?

Nov 21 '05 #2

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

Similar topics

3
by: Matt Sollars | last post by:
I've struggled with this problem, and it's lack of examples, for a couple of months now. On several different web applications that we have written, we need to communicate with a credit card...
4
by: ad | last post by:
I want to set integrated Secure in my connect string to SQL Server I set the connect string as: workstation id=xxx;packet size=4096;integrated security=SSPI;initial catalog=vvv;persist...
1
by: Mark Richards | last post by:
Hi, I am interfacing with another company using web services (they are a java shop). We've been doing this for over 2 years, but a couple months age we started getting this error randomly. It...
3
by: Kevin Richards | last post by:
I have a .NET web service that needs to be called from any platform. I need to make the Login method of the web service secure. It doesnt matter about the remaining methods, just the password...
1
by: mron0210 | last post by:
Hi, I have created a web service using Visual Studio .Net (Visual Studio Tools for Office : Excel project) and secured it using WSE 2.0. I have added a hyperlink in the Excel sheet which...
4
by: jack | last post by:
Hi all I have have a web service in c$ which was a pretty easy task, but the task seemd to be difficult when came to security.. i have had a vb6 application which sends xml file and gets a request...
0
by: amitvps | last post by:
Secure Socket Layer is very important and useful for any web application but it brings some problems too with itself. Handling navigation between secure and non-secure pages is one of the cumbersome...
0
by: =?Utf-8?B?RmlsaXBwbyBCZXR0aW5hZ2xpbw==?= | last post by:
I have developed a web service under ASP.NET2. this web service call another web service which need a SSL connection. Therefore I pass, to be able to connect, I pass credential and certificate ...
6
by: =?Utf-8?B?Q3JhaWc=?= | last post by:
If I have an application that I send out to users, and the application interacts with the database (behind the scenes, no direct sql creation by the users)....do webservices make the app more...
0
by: hepsubah | last post by:
I'm trying to capture a client cert in my ASP.NET application, and use that cert as the client cert for a call to secure web service. I've used the following code, but am getting a 403 error on...
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
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.