2
web services example help
Question asked by digital.iway - 5/27/2016 at 2:15 PM
Unanswered
   I am starting to work with the web services API.  I am new to these types of calls and I see the documentation, but it would be helpful if there were a few examples showing calls and result displays a few different ways.

I am writing a very simple call that will display user information and it is not returning the result (instead it just returns SmarterMailUsers.wsSmarterMailUserAdmin.UserInfoResult).  I was hoping someone could provide an example or provide a snippet on a way to do this correctly?

//call the service
         wsSmarterMailUserAdmin.svcUserAdminSoapClient myUserService = new wsSmarterMailUserAdmin.svcUserAdminSoapClient();
        
        //write the result to a label
        lblResult.Text = myUserService.GetUser("usernamehere", "passwordhere", "emailaddresshere").ToString();
 

Reply to Thread