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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top