Closed GoogleCodeExporter closed 8 years ago
I'll take a look at it
Original comment by solomax...@gmail.com
on 10 Dec 2011 at 4:55
Hello Rajesh,
According to
http://localhost:5080/openmeetings/services/UserService?wsdl
setUserObjectAndGenerateRoomHashByURL
has the following set of parameters:
<xs:element minOccurs="0" name="SID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="username" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="profilePictureUrl" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="email" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="externalUserId" type="xs:long"/>
<xs:element minOccurs="0" name="externalUserType" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="room_id" type="xs:long"/>
<xs:element minOccurs="0" name="becomeModeratorAsInt" type="xs:int"/>
<xs:element minOccurs="0" name="showAudioVideoTestAsInt" type="xs:int"/>
your call has too many parameters
could you please retest with the parameters listed above?
I have tested it using browser with the following URLs
1) http://localhost:5080/openmeetings/services/UserService/getSession
2)
http://localhost:5080/openmeetings/services/UserService/loginUser?SID=14c5752bcb
7aed98b6c14f15785323a3&username=USER&userpass=PASS
3)
http://localhost:5080/openmeetings/services/UserService/setUserObjectAndGenerate
RoomHashByURL?SID=14c5752bcb7aed98b6c14f15785323a3&username=rajesh&firstname=Raj
esh&lastname=Thakur&profilePictureUrl=xx&email=xx@gmail.com&externalUserId=99&ex
ternalUserType=APP&room_id=1&becomeModeratorAsInt=1&showAudioVideoTestAsInt=0
everything works as expected
Original comment by solomax...@gmail.com
on 10 Dec 2011 at 12:22
Thanks for taking a moment to llok at ths issue. However, I am able to call
setUserObjectAndGenerateRoomHashByURL correctly. It does return me secureHash
(step3). The ssue occurs when I use this secureHash in step4.
Also the parameters for setUserObjectAndGenerateRoomHashByURL generated by the
wsdl webreference are as below:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setUserObjectAndGenerateRoomHashByURL", RequestNamespace="http://services.axis.openmeetings.org", ResponseNamespace="http://services.axis.openmeetings.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("return", IsNullable=true)]
public string setUserObjectAndGenerateRoomHashByURL([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string SID, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string username, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string firstname, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string lastname, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string profilePictureUrl, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string email, long externalUserId, [System.Xml.Serialization.XmlIgnoreAttribute()] bool externalUserIdSpecified, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string externalUserType, long room_id, [System.Xml.Serialization.XmlIgnoreAttribute()] bool room_idSpecified, int becomeModeratorAsInt, [System.Xml.Serialization.XmlIgnoreAttribute()] bool becomeModeratorAsIntSpecified, int showAudioVideoTestAsInt, [System.Xml.Serialization.XmlIgnoreAttribute()] bool showAudioVideoTestAsIntSpecified) {
object[] results = this.Invoke("setUserObjectAndGenerateRoomHashByURL", new object[] {
SID,
username,
firstname,
lastname,
profilePictureUrl,
email,
externalUserId,
externalUserIdSpecified,
externalUserType,
room_id,
room_idSpecified,
becomeModeratorAsInt,
becomeModeratorAsIntSpecified,
showAudioVideoTestAsInt,
showAudioVideoTestAsIntSpecified});
return ((string)(results[0]));
}
Original comment by rajeshat...@gmail.com
on 10 Dec 2011 at 1:42
I'm not sure what version of OM are you using
setUserObjectAndGenerateRoomHashByURL in 1.9 has different signature than
provided by you.
I'll try to use your parameters, but could you please try my set of parameters
and tell me if it will help?
Original comment by solomax...@gmail.com
on 10 Dec 2011 at 3:47
[deleted comment]
just tried all your parameters and was able to successfully enter the room.
Maybe room_id specified by you does not match any room?
I can add no-args constructor to RemoteSessionObject, but it seem like
everything works as expected without it ....
Original comment by solomax...@gmail.com
on 10 Dec 2011 at 4:01
I am using I am using openmeetings_1_9_0_r4692.
Did you use Csharp calls? Is is still not working for me. Following is the
csharp code for your reference:
protected void Button2_Click(object sender, EventArgs e)
{
UserService omService = new UserService();
RoomClient.OMUserService.Sessiondata sData = omService.getSession();
TextBox1.Text = sData.session_id;
long retL;
bool retB;
omService.loginUser(sData.session_id, "rajesh", "rajesh", out retL, out retB);
TextBox2.Text = retL.ToString();
RoomService roomService = new RoomService();
long room_id;
string hash="";
string urlHash = "";
room_id = 2;
urlHash = omService.setUserObjectAndGenerateRoomHashByURL(sData.session_id, "rajesh", "Rajesh", "Thakur", "xx", "rajeshathakur@gmail.com",
99, true, "APP", room_id, true, 0, true, 1, true);
Response.Redirect("http://localhost:5080/openmeetings/?secureHash=" + urlHash + "&room_id=" + room_id + "&language=4");
}
Original comment by rajeshat...@gmail.com
on 10 Dec 2011 at 6:55
Did you get a chance to test the Csharp code??
Can you also please change the status from "Invalid" to "Open" - as I still
experience the same issue.
Appreciate if you can look into csharp code and recify the error.
Original comment by rajeshat...@gmail.com
on 12 Dec 2011 at 7:24
I haven't try c# code
could you please attach here archive with simple test project? (I never saw c#
library to work with OM, so it can speed up everything)
Original comment by solomax...@gmail.com
on 13 Dec 2011 at 2:58
I have sent you an email with attachment. The same is attached here. Attachment
consists of a simple project to invoke ad test SOAP Api.
Original comment by rajeshat...@gmail.com
on 13 Dec 2011 at 6:49
Attachments:
Hello Rajesh,
I did the following:
1) run 1.9 (on derby)
2) install
3) run you solution in MSVS2010
4) update Web Services references
5) Debug (F5 in MSVS)
6) on the page opened push the button
Result: I have entered the room, no issues, no errors in the log
please let me know if there is anything else I can do
Original comment by solomax...@gmail.com
on 14 Dec 2011 at 6:31
Can you send me the version of openmeetings you are running??
What is derby?? I am running it on Windows 7. Thats the only difference I see.
Original comment by rajeshat...@gmail.com
on 14 Dec 2011 at 7:52
http://openmeetings.googlecode.com/files/openmeetings_1_9_1_r4707.zip
Derby is DB used by OM (out of the box) no need to install or configure
tested it on Win7 Ent x64
MSVS2010 x64
java: Sun jdk1.6.0_27 (x64 if I'm not mistaken)
Original comment by solomax...@gmail.com
on 14 Dec 2011 at 7:56
I used 1_9__r4707...but still the same error.
I am using the userlevel=admin.
Do you create special user of userlevel = Web-Service
Original comment by rajeshat...@gmail.com
on 16 Dec 2011 at 3:50
no special users
I used the user specified while openmeetings install.
Original comment by solomax...@gmail.com
on 16 Dec 2011 at 4:03
Will it be possible for you to debug this issue on my machine using
webconference?
Original comment by rajeshat...@gmail.com
on 16 Dec 2011 at 4:09
ok
lets try it (the only issue I has no mic and cam right now)
Original comment by solomax...@gmail.com
on 16 Dec 2011 at 4:35
What is good time for you? I will send you my contact details to your gmail
account. Plz check your gmail and respond back.
Original comment by rajeshat...@gmail.com
on 16 Dec 2011 at 11:15
Hi,
I am still facing the same issue. I tested it against the latest nightly build
openmeetings_r4736.
Attached please find the debug-Info and csharp code.
-Rajesh
Original comment by rajeshat...@gmail.com
on 18 Dec 2011 at 5:04
Attachments:
Hello Rajesh,
sorry not answering, I haven't received any contacts from you.
could you please tell me which java are you using? (the output of "java
-version" should be OK)
Original comment by solomax...@gmail.com
on 18 Dec 2011 at 5:14
C:\Users\rajesh.thakur>java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Original comment by rajeshat...@gmail.com
on 18 Dec 2011 at 5:41
C:\>java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Original comment by rajeshat...@gmail.com
on 18 Dec 2011 at 5:41
you need to use JDK 1.6
please retest with JDK 1.6
Original comment by solomax...@gmail.com
on 18 Dec 2011 at 5:44
Original comment by solomax...@gmail.com
on 21 Dec 2011 at 10:17
Original issue reported on code.google.com by
rajeshat...@gmail.com
on 10 Dec 2011 at 1:43Attachments: