You are here: Discussion Register  |  Login
 
Discussion Forums
 
ForumForumGateway Web Ser...Gateway Web Ser...Other Web Servi...Other Web Servi...How do I suspend a user?How do I suspend a user?
Previous Previous
 
Next Next
New Post
 6/26/2009 11:20 PM
 
 Modified By Kevin Lenahan  on 6/27/2009 12:02:32 AM
A user can be suspended with the SuspendUser method in the User web service.   
Here is an example of how you could suspend a user:
 
/* Get a reference to the web service */
using (GatewaySample.net.clearstar.gateway.user.User gwUser = new GatewaySample.net.clearstar.gateway.user.User())
{
 
/* Suspend User */
XmlNode nodeUser = gwUser.SuspendUser("myUserName", "myPassword", myBOID, "myCustID”, iWebUserID);
 
}
 
Successful XML response would be:
 
<SuspendUser xmlns="">
<ErrorStatus>
<Code></Code>
<Type></Type>
<Message></Message>
</ErrorStatus>
<User>
<iWebUserID></iWebUserID>
<bSuspended><bSuspended>
</User>
</SuspendUser>
 

Additional information is provided in the documentation and more example code is provided in the Gateway Sample application.

Previous Previous
 
Next Next
ForumForumGateway Web Ser...Gateway Web Ser...Other Web Servi...Other Web Servi...How do I suspend a user?How do I suspend a user?

 

Privacy Statement  |  Terms Of Use
Copyright 2009 by ClearStar.net