Neseek77 / openmeetings

Automatically exported from code.google.com/p/openmeetings
1 stars 0 forks source link

Problem with connecting to the user Dashboard via SOAP #1610

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello.

I am currently having a problem when trying to remote login to the user 
dashboard via the UserService.

I am using OM 1.9.1 r4707.

The code of my .NET client:

OpenMeetingsUserService.UserService userService = new 
OpenMeetingsUserService.UserService();
            OpenMeetingsUserService.Sessiondata sessionData = userService.getSession();
            long returnValue;
            bool some;
            userService.loginUser(sessionData.session_id, "username", "password", out returnValue, out some);
            String returnString = userService.setUserObjectMainLandingZone(sessionData.session_id, "username", "firstname", "lastname", "icon_people.jpg", "email@mail.com", 0, false, "");
            Response.Redirect("http://localhost:5080/openmeetings/?secureHash="+returnString);

The error on the server is:

ERROR 01-30 16:07:18.468 MainService.java 806109 680 
org.openmeetings.app.remote.MainService [NioProcessor-5] - [loginUserByRemote] 
com.thoughtworks.xstream.converters.ConversionException: Cannot construct 
org.openmeetings.app.persistence.beans.basic.RemoteSessionObject as it does not 
have a no-args constructor
---- Debugging information ----
message             : Cannot construct 
org.openmeetings.app.persistence.beans.basic.RemoteSessionObject as it does not 
have a no-args constructor
cause-exception     : 
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct 
org.openmeetings.app.persistence.beans.basic.RemoteSessionObject as it does not 
have a no-args constructor
class               : 
org.openmeetings.app.persistence.beans.basic.RemoteSessionObject
required-type       : 
org.openmeetings.app.persistence.beans.basic.RemoteSessionObject
-------------------------------

As far as I can tell, the hash generated by setUserObjectMainLandingZone is 
correct. 

Is the login url, that I use for the redirect, wrong? (Is there an other 
parameter to use instead of secureHash ?)

Thank you in advance,

Vlad.

Original issue reported on code.google.com by vlad.ale...@gmail.com on 30 Jan 2012 at 3:03

GoogleCodeExporter commented 9 years ago
OpenMeetings moves to Apache Foundation, update your bookmarks to the new 
project page:

http://incubator.apache.org/openmeetings/

New Issue tracker is located: https://issues.apache.org/jira/browse/OPENMEETINGS

New Mailing Lists located at: 
http://incubator.apache.org/openmeetings/mail-lists.html 

Original comment by seba.wag...@gmail.com on 30 Jan 2012 at 3:15