Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 18th, 2007, 04:11 AM
Registered User
Join Date: Nov 2006
Location: Pune, maharashtra, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass credential from dot Net client to Java


I have a Web Service built in Java, and the dot Net client is accessing the same. For the Java WS I have request authentication handler, which accepts object of org.apache.axis.MessageContext class as parameter, which contains user name and password. From the Java client we can add user name and password in the service itself, which are also passed with the MessageContext. from the dot net client i am using following code to set the credential but it does not reach to the handler class.

MyWebService ser = new MyWebService();
NetworkCredential cred = new NetworkCredential("shishir", "jain");
ser.Credentials = cred;

Can someone help me to find the correct way to pass the credential to the Java WS ?


Reply With Quote
  #2 (permalink)  
Old January 29th, 2007, 07:20 AM
Registered User
Join Date: Jan 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

hi mohit,

this is shaffi from chennai , hope u r working with dotnetnuke.
can u please tell me how to write a handler to get the user credentials from a webservice(from another database)

thanks in advance..

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass data from Client to server script pushpa Classic ASP Basics 8 March 11th, 2007 04:30 AM
pass variable from jsp to java file ypsmag JSP Basics 0 November 1st, 2006 04:22 AM
pass variable in the same java file ypsmag Java Basics 0 November 1st, 2006 04:15 AM
Can I run VB .net 2005 with DOT NET 2003 APPLICATI kadesskade BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 August 8th, 2006 05:14 AM
Pass an array between client and server pigtail Javascript 3 April 14th, 2004 12:42 PM

All times are GMT -4. The time now is 09:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.