A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to create UsernameToken in Java WS client to compatble with .Net (.asmx) web service
Joined: Jun 17, 2009
Apr 08, 2010 22:46:46
I need to create a web service client in
to communicate with .Net web service.
I have provided C# proxy client and sample client code and this is how User Token set in C#.
HostComm hostCallService; hostCallService = new HostComm(); string accessUser = "UserName"; string accessPassword = "Password"; UsernameToken token = new UsernameToken( accessUser , accessPassword , PasswordOption.SendPlainText); hostCallService.RequestSoapContext.Security.Tokens.Add( token ); hostCallService.RequestSoapContext.Security.Elements.Add( new MessageSignature( token ) );
SO I have generated stub using AXIS2. and my problem is how to set this User Token to security header the way which is compatible with .Net User Token?
Joined: Nov 27, 2005
Apr 14, 2010 15:21:32
UsernameToken Authentication with Rampart
Hope this helps.
I agree. Here's the link:
subject: How to create UsernameToken in Java WS client to compatble with .Net (.asmx) web service
How do I read WSS Username Token after validation?
Sample Questions for 288 - Need answers
Implementing Access Rights on Axis2 Web Service?
web service client needs to pass a Windows security token for authentication
WSE security authentication problem.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015