Create user through web service? / Missing Documentation?
Maybe I'm missing something, but the documentation for web services seems to be lacking...
I'm trying to go by: http://api.countersoft.com/ but there is missing information - there's no Schema for each of the object types, and no example code.
I need to create a user through the web service. The documentation doesn't specify what the minimum data is needed to create a user.
I'm trying to send a request, such as:
POST <server>/api/users.ashx/users/ HTTP/1.1
<UserEN xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UserName>USERNAME</UserName>
<Firstname>first</Firstname>
<Surname>last</Surname>
<Fullname>first last</Fullname>
<EmailAddress>email@domain.com</EmailAddress>
<Active>true</Active>
<Password>blahblah</Password>
</UserEN>
This is returning:
The server cannot service the request because the media type is unsupported.
I'm sure I'm not sending a proper request, but I can't seem to find the documentation needed to do this. Help?
mmatos
· 1 |
|
Thursday, September 17, 2009, 6:10:34 PM |