credentials for .net calling java web services

W

wawa_piggy

Hi,



I have a Java web service which i need to call in an ASP.NET
application.

This Java web service requires authentication against LDAP server.

Apache Axis is used and it will retrieve the username and password from
the message context.



Is there any way i can set the username and password in the message
context in ASP.NET?
 
J

Jan Tielens

You can set the credentials for your webservice proxy class:

Dim ws As New MyServices.Service
ws.PreAuthenticate = True
ws.Credentials = New System.Net.NetworkCredentials("username","pw","domain")

or

ws.Credentials = System.Net.CredentialCache.DefaultCredentials
(currently logged on user)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top