I have been working on this for awhile. What I am trying to do is to retrieve the telephonenumber, mail and physicalDeliveryOfficeName from active directory I have debugged it and it seems to work but when I connect to the data source in Infopath,
there is no value. Also, the data source has a group field called "choice." I have no idea what that is. I am using a contact select to fill out and the value of the AccountId will populate another field. I use this field to choose
the LoginName on the query and then run the query on the data source. This should pupulate the email, phone, and location fields on the main data source. Here is a sample of my code:
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
Public Class GetADProperty
View Complete Post