473,396 Members | 1,975 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,396 software developers and data experts.

Java Web Service needs custom security token

I am consuming Axis web service and one of the requirements is to
provide custom security token in a SOAP header like that:
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>username </wsse:Username>
<wsse:Passwordpassword </wsse:Password>
</wsse:UsernameToken>
<AccessIDToken<ID>someIDhere </ID</AccessIDToken>
</wsse:Security>

Is it possible in Net? I found some hints about creating custom
SecurityTokenManager and custom Policy classes, but it looks like
overkill for me. Also I probably can create SOAP envelope manually and
send it via System.Net.HttpWebRequest, but I'd like to use power of
proxy class.

I use WSE3 and a proxy class, generated by WseWSDL3.exe utility.

Thanks,
godd

Nov 8 '07 #1
1 4345
godd,

I don't know how you would do this using WSE3. Do you have the option
of using WCF? It's actually quite easy:

http://msdn2.microsoft.com/en-us/library/ms730079.aspx
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"godd" <go******@gmail.comwrote in message
news:11*********************@v23g2000prn.googlegro ups.com...
>I am consuming Axis web service and one of the requirements is to
provide custom security token in a SOAP header like that:
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>username </wsse:Username>
<wsse:Passwordpassword </wsse:Password>
</wsse:UsernameToken>
<AccessIDToken<ID>someIDhere </ID</AccessIDToken>
</wsse:Security>

Is it possible in Net? I found some hints about creating custom
SecurityTokenManager and custom Policy classes, but it looks like
overkill for me. Also I probably can create SOAP envelope manually and
send it via System.Net.HttpWebRequest, but I'd like to use power of
proxy class.

I use WSE3 and a proxy class, generated by WseWSDL3.exe utility.

Thanks,
godd
Nov 10 '07 #2

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

Similar topics

3
by: Chris | last post by:
Hello all, Here is my problem. I have a windows service (C#) that is supposed to move files from/to the local drive to/from a UNC share (\\domainserver\share). The service is running on a Win3k...
2
by: Amil | last post by:
Don't answer this unless you know what you are talking about. I want to use ServiceController in my code to start and stop a Windows Service. I do not want to use <impersonate> in my config...
5
by: Buddy Ackerman | last post by:
My app is a .NET forms app that runs in the taskbar and periodically polls a web service. I have a client that wants the app to integrate with their Active Directory. They do not want the user to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
18
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
0
by: =?Utf-8?B?Q2hhaXRhbnlh?= | last post by:
I have created a WSE 3.0 security enabled web service using a custom username token manager. Everything is working properly when I consume this web service with a WSE enabled client application. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
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
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,...
0
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...

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.