Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Create user through web service? / Missing Documentation?

api

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
mmatos
Replies (4)
helpful
0
not helpful

What language are you using to do this?

Did you set the content-type to text/xml?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Hi Saar,

Yes, I did. The issue isn't the request format, it's the request content. I don't know what all I need to send to successfully create a user.

Is there an example anywhere?

Thanks.


mmatos
· 1
mmatos
helpful
0
not helpful

You need to POST the user XML. Please post a sample of your code.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Not sure why your getting an error but I just found a Java example on countersoft's site that should be a little more helpful in detailing what the objects should look like:

http://www.countersoft.com/downloads/v354/CounterSoftGeminiAPI_Java.zip

(from the download page)


light2
· 1
light2