Revision: 3942
Author: [email protected]
Date: Sun Jul 3 07:43:57 2011
Log: Edited wiki page RestMethods through web user interface.
http://code.google.com/p/openmeetings/source/detail?r=3942
Modified:
/wiki/RestMethods.wiki
=======================================
--- /wiki/RestMethods.wiki Sun Jul 3 07:41:58 2011
+++ /wiki/RestMethods.wiki Sun Jul 3 07:43:57 2011
@@ -9,7 +9,7 @@
For example for the method getSession in the !UserService, you would use
this URL via Rest:<br/>
http://demo.openmeetings.de/openmeetings/services/UserService/getSession
-Returns:
+Result:
{{{
<ns:getSessionResponse>
<ns:return type="org.openmeetings.app.hibernate.beans.basic.Sessiondata">
@@ -27,7 +27,25 @@
To login a user the call to auth would be:<br/>
http://demo.openmeetings.de/openmeetings/services/UserService/loginUser?SID=2b84d98ced30a584041505de8b2f1932&username=hans&userpass=test
+
+Result:
+{{{
+<ns:loginUserResponse>
+ <ns:return>-10</ns:return>
+</ns:loginUserResponse>
+}}}
=> It does return -10, which is the error id cause we will not write down
a SOAP login to our public server in this wiki.
However the correct way to check this error would be to invoke the call to
get the localized error message. So we invoke the method to get the error
via REST:<br/>
http://demo.openmeetings.de/openmeetings/services/UserService/getErrorByCode?SID=2b84d98ced30a584041505de8b2f1932&errorid=-10&language_id=1
+
+Result:
+{{{
+<ns:getErrorByCodeResponse>
+<ns:return type="org.openmeetings.app.data.beans.basic.ErrorResult">
+ <ax218:errmessage>Username not found</ax218:errmessage>
+ <ax218:errorId>-10</ax218:errorId>
+ <ax218:errortype>Error</ax218:errortype>
+</ns:return>
+</ns:getErrorByCodeResponse>
+}}}
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.