Using a Web Service

  • Thread starter Thread starter Brian Conway
  • Start date Start date
B

Brian Conway

I can't find any information on how to use a web service. What I am looking
to do is have someone put in a 8 character word into textbox1.text and then
have a button next to it to populate the information on the form from a
webservice that contains the information. So far the only thing I found was
that I needed to put the using statement at the top and this
LDAP.AuthenticationServices LDAPInfo = new LDAP.AuthenticationServices();

Statement on the page load event. But from there I am not sure how I get
the webservice to take the information from textbox1.text, search for that
name, get the results and then assigned the returned results back to various
other textboxes on the form.
 
Hi Brian
Before that you need to add a web reference to the web service that you
are using . this will create a proxy class of the web service into your
project. This will enable you to use the functions provided by the web
service.
This article is about consuming webservices in compact framework
but it is basically the same steps applies

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/netcfwebservices.asp

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top