Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 18th, 2007, 04:11 AM
Registered User
Join Date: Nov 2006
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 ?


Old January 29th, 2007, 07:20 AM
Registered User
Join Date: Jan 2007
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..


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

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