If you want to use MethodGateway you're not using
SOAP methods, so your email title is wrong.
That methods are described here
http://code.google.com/p/openmeetings/wiki/MethodGateway, i did some
tests and all methods work fine....
You have to use the SID obtained from getSession to Login,
setUserObject and enter a Room. What's your problem with this HTTP
methods?
Miguel.
El 23/03/2010 17:57, Bicho4191 escribió:
thanks miguel
I may not explain well what I want to do
I'm trying to make the whole process trough url ie without using code
I'm trying to generate only one room and access it trough url
thx 4 the help
On 23 mar, 09:44, Miguel Carro Pellicer <[email protected]>
wrote:
HI!
One example of setUserObjectAndGenerateRoomHash in ColdFusion:<cfset setUserObjectAndGenerateRoomHashParams = StructNew()>
<cfset setUserObjectAndGenerateRoomHashParams.SID="#str_SessionSID#">
<cfset setUserObjectAndGenerateRoomHashParams.username="#str_UserName#">
<cfset setUserObjectAndGenerateRoomHashParams.firstname="#str_Firstname#">
<cfset setUserObjectAndGenerateRoomHashParams.lastname="#str_Lastname#">
<cfset setUserObjectAndGenerateRoomHashParams.profilePictureUrl="">
<cfset setUserObjectAndGenerateRoomHashParams.email="#str_Email#">
<cfset setUserObjectAndGenerateRoomHashParams.externalUserId=#session.int_UserId#>
<cfset setUserObjectAndGenerateRoomHashParams.externalUserType="#session.int_UserId#">
<cfset setUserObjectAndGenerateRoomHashParams.room_id =#int_RoomId#>
<cfset setUserObjectAndGenerateRoomHashParams.becomeModeratorAsInt=#int_IsModerator#>
<cfset setUserObjectAndGenerateRoomHashParams.showAudioVideoTestAsInt=1>
<cfinvoke
method="setUserObjectAndGenerateRoomHash"
returnVariable="str_RoomSessionHash"
webservice="#str_UserServiceURL#"
argumentCollection="#setUserObjectAndGenerateRoomHashParams#"
Another example in java:public String setUserObjectAndGenerateRoomHash(String sid, String username,String firstname,
String lastname, String profilePictureUrl, String email, int externalUserId,
String externalUserType, int roomId,
int becomeModeratorAsInt,int showAudioVideoTestAsInt) throws AxisFault{
ServiceClient serviceClient = createGenericClient(this.openMeetingsURL+userServiceURL);
OMFactory factory = OMAbstractFactory.getOMFactory();
OMNamespace namespace = factory.createOMNamespace(NAMESPACE, "setUserObjectAndGenerateRoomHash");
OMElement method = factory.createOMElement("setUserObjectAndGenerateRoomHash", namespace);
OMElement sid_E = factory.createOMElement("SID", namespace);
OMElement username_E = factory.createOMElement("username", namespace);
OMElement firstname_E = factory.createOMElement("firstname", namespace);
OMElement lastname_E = factory.createOMElement("lastname", namespace);
OMElement profilePictureUrl_E = factory.createOMElement("profilePictureUrl", namespace);
OMElement email_E = factory.createOMElement("email", namespace);
OMElement externalUserId_E = factory.createOMElement("externalUserId", namespace);
OMElement externalUserType_E = factory.createOMElement("externalUserType", namespace);
OMElement roomId_E = factory.createOMElement("roomId", namespace);
OMElement becomeModeratorAsInt_E = factory.createOMElement("becomeModeratorAsInt", namespace);
OMElement showAudioVideoTestAsInt_E = factory.createOMElement("showAudioVideoTestAsInt", namespace);
sid_E.addChild(factory.createOMText(sid_E, sid));
username_E.addChild(factory.createOMText(username_E,username));
firstname_E.addChild(factory.createOMText(firstname_E,firstname));
lastname_E.addChild(factory.createOMText(lastname_E, lastname));
profilePictureUrl_E.addChild(factory.createOMText(profilePictureUrl_E, profilePictureUrl));
email_E.addChild(factory.createOMText(email_E, email));
externalUserId_E.addChild(factory.createOMText(externalUserId_E, String.valueOf(externalUserId)));
externalUserType_E.addChild(factory.createOMText(externalUserType_E, externalUserType));
roomId_E.addChild(factory.createOMText(roomId_E, String.valueOf(roomId)));
becomeModeratorAsInt_E.addChild(factory.createOMText(becomeModeratorAsInt_E, String.valueOf(becomeModeratorAsInt)));
showAudioVideoTestAsInt_E.addChild(factory.createOMText(showAudioVideoTestAsInt_E, String.valueOf(showAudioVideoTestAsInt)));
method.addChild(sid_E);
method.addChild(username_E);
method.addChild(firstname_E);
method.addChild(lastname_E);
method.addChild(profilePictureUrl_E);
method.addChild(email_E);
method.addChild(externalUserId_E);
method.addChild(externalUserType_E);
method.addChild(roomId_E);
method.addChild(becomeModeratorAsInt_E);
method.addChild(showAudioVideoTestAsInt_E);
OMElement result = serviceClient.sendReceive(method);
return result.getFirstElement().getText();
}
Both examples work perfect. What kind of error appears?
Hope this helps, Miguel.
El 23/03/2010 16:27, Bicho4191 escribió:hi folks hi all I'm trying to use the soap gateway to create rooms and create links to them but I've only managed to use the getSession method and loginUser, I failed to successfully use the method setUserObject I like to see some example that someone has implemented thanks to all greetings--
...
leer más »
image002.jpg
3 KVerDescargar
--
Miguel Carro
Pellicer
[email protected]
+34 - 96 393 74 33
ext. 32
www.samoo.es
Este
correo y sus archivos
asociados son privados y confidenciales y va dirigido
exclusivamente a su destinatario. Si recibe este correo sin ser el
destinatario del mismo, le rogamos proceda a su eliminación y lo ponga
en
conocimiento del emisor. La difusión por cualquier medio del contenido
de
este correo podría ser sancionada conforme a lo previsto en las leyes
españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter
Personal. No se autoriza la utilización con fines comerciales o
para su incorporación a ficheros automatizados de las direcciones del
emisor o
del destinatario.”
This mail and its
attached files are confidential and are only and exclusively intended
to their
addressee. In case you may receive this mail not being its addressee,
we beg
you to let us know the error by reply and to proceed to destroy it. The
circulation by any mean of this mail could be penalised in accordance
with the
Spanish legislation. Is not allowed the use of both, the transmitter
and the
addressee’s, address with a commercial aim, or in order to be
incorporated to
automated data process or to any kind of files.
P Antes
de imprimir
este correo electrónico piense bien si es necesario hacerlo. El
medioambiente
es cosa de todos.
--
You received this message because you are subscribed to the Google Groups "OpenMeetings User" 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-user?hl=en.
|