|
MethodGateway
A Simple alternative Gateway to the SOAP-Gateway
This is just a Servlet which take the most simple values of the SOAP-Gateway to handle a Direct-Login. You only need to pass the variables as Get-Values with the URL. You can de-serialize the XML to Objects again using XStram, but you need the openmeetings.jar in your classpath. Method getSessionhttp://localhost:5080/openmeetings/MethodGateway?service=userservice&method=getSession Response: <org.openmeetings.app.hibernate.beans.basic.Sessiondata> <id>3</id> <session__id>31807001b19c9d70b91c165a3cc1c3f0</session__id> <starttermin__time class="sql-timestamp">2008-09-18 17:37:27.0</starttermin__time> <refresh__time class="sql-timestamp">2008-09-18 17:37:27.0</refresh__time> </org.openmeetings.app.hibernate.beans.basic.Sessiondata> Method loginUserhttp://localhost:5080/openmeetings/MethodGateway?service=userservice&method=loginUser&SID=31807001b19c9d70b91c165a3cc1c3f0&username=admin&userpass=admin course the values of SID,username,userpass must be set to values username,userpass MUST be a valid OpenMeetings ADMINISTRATION account. This Function is used to mark the passed Session-Token as logedin. After this function you can use the SID to invoke addRoom or setUserObject Response in case of success: <long>1</long> Method setUserObjecthttp://localhost:5080/openmeetings/MethodGateway?service=userservice&method=setUserObject&SID=31807001b19c9d70b91c165a3cc1c3f0&username=guest&firstname=firstname&lastname=lastname&profilePictureUrl=&email=example@flocki.org course the values of SID,username,... must be set to values Method addRoomnote that the param service is now roomservice for the values see also SOAP Gateway Method addRoom |
Sign in to add a comment