tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/803-managing-accounts-with-web-servicesCascade CMS: Discussion 2013-08-19T21:26:33Ztag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-06-13T16:36:46Z2013-06-13T16:36:56ZManaging accounts with web services<div><p>Unless I'm missing something, there does not seem to be a way to
manage user accounts via web services. We would like to manage
account deletions in particular with web services. Are there any
plans to add this type of functionality?</p>
<p>Thanks</p></div>howie.hamlintag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-06-13T17:33:08Z2013-06-13T17:33:08ZManaging accounts with web services<div><p>Hi Howie,</p>
<p>This functionality already exists. Looking at the WSDL, you
should see the following complexTypes:<br></p>
<pre>
<code><complexType name="user">...</complexType>
<complexType name="group">...</complexType>
<complexType name="role">...</complexType></code>
</pre>
Those 3 types contain the required parameters you'll need in order
to manage Users in the system.
<p>Are you using PHP for your Web Services scripts? Java? Let us
know and perhaps someone can chime in with an example.</p>
<p>Thanks</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-06-13T17:55:56Z2013-06-13T17:55:56ZManaging accounts with web services<div><p>Wow, I completely missed that, sorry. We're using Java for
this.</p>
<p>Thanks</p></div>howie.hamlintag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-06-17T15:39:49Z2013-06-17T15:39:49ZManaging accounts with web services<div><p>Hi Howie,</p>
<p><a href=
"https://github.com/hannonhill/Cascade-Web-Services-Examples/blob/master/java/hannonhill-test-cases/TestUser.java">
Here are some Java examples</a> of manipulating user objects using
Web Services. You'll want to use the <code>client.delete</code>
method to remove user objects.</p>
<p>Let us know if you need any additional help.</p>
<p>Thanks,<br>
Bradley</p></div>Bradley Wagnertag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-07-09T15:17:50Z2013-07-09T15:17:50ZManaging accounts with web services<div><p>I have a lot of the code now set up but when I add the code that
you referenced (the code where client.delete lives) the compilation
fails on 4 imports and I'm not sure where I can get these.</p>
<p>import com.hannonhill.commons.junit.HHTestCase;<br>
import com.hannonhill.commons.util.ClassUtil;<br>
import com.hannonhill.commons.util.StringUtil;<br>
import com.hannonhill.commons.util.io.StreamReader;</p>
<p>Thanks,</p>
<p>Howie</p></div>howie.hamlintag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-07-09T16:15:26Z2013-07-09T16:15:26ZManaging accounts with web services<div><p>Never mind, I created some new code based on your other code and
it works great.</p>
<p>You can consider this issue closed.</p>
<p>Thanks,</p>
<p>Howie</p></div>howie.hamlintag:help-archives.hannonhill.com,2010-02-09:Comment/273078132013-07-09T16:17:55Z2013-07-09T16:17:55ZManaging accounts with web services<div><p>OK, thanks for the update, Howie! Glad you were able to get
things working.</p>
<p>Take care!</p></div>Tim