A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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 JAVA 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
Sample Questions for 288 - Need answers
How do I read WSS Username Token after validation?
web service client needs to pass a Windows security token for authentication
WSE security authentication problem.
Implementing Access Rights on Axis2 Web Service?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014