Hi 1º All fields in invitations and room table are ok. Any other option to check the problem. 2º So there is any way to fix this ? 3º You test my code in order to understand my problem ?
Good week André Bolinhas On 8 January 2012 09:07, [email protected] <[email protected]>wrote: > Hi > Am 08.01.2012 01:55 schrieb "andre bolinhas" <[email protected]>: > > > > > Hi, > > > > 1º "Can you check which fields in openmeetings contain that text?" > > Where I can find that text? If I create the appointment/room directly in > calendar the text message is ok, no Error formatSubjec and Error > formatMessage in body. This erros only appear when I create the > appointmment/room through soap/rest > > > > You can simply look at the tables in the database. > > > 2º "no, it contains the name and descr of the appointment, not of the > room." > > So why when I create a appointment/room through soap/rest the name of > event in calendar is appointmentName instead test and the description > is appointmentName instead Test Soap? > > Yes I think so > > > > > Best regards > > > > On 7 January 2012 21:01, [email protected] <[email protected]> > wrote: > >> > >> Hi, > >> > >> Am 06.01.2012 11:40 schrieb "andre bolinhas" <[email protected] > >: > >> > > >> > Hi > >> > > >> > >> > >> > 1º This test is stored in Openmeetings. > >> => Can you check which fields in openmeetings contain that text? > >> > >> > > >> > 2º I expect to see this: > >> > appointmentName = name of room and appointmentDescription = comment > of the room. > >> > eg: > >> > 'name' => 'test', > >> > 'comment' => 'Test SOAP', > >> => no, it contains the name and descr of the appointment, not of the > room. > >> > >> > > >> > 3º > >> > What soap call do you use to create the conference room and > appointment? > >> > To create room and appointment I use > "addRoomWithModerationAndExternalTypeAndStartEnd" to invite external users > I use "addMeetingMemberRemindToRoom" > >> > > >> > There is no soap call that adds any members to the appointment > automatically, it also makes hardly sense as the creating user is likely to > be a external user and not an Internal user from OpenMeetings if the > appointment is created via soap. > >> > So how can I add a internal user as moderator of the meeting ? > >> > > >> > The goal of my code is create an appointment room as the same way it > was created in calendar inside openmeeting, this is the right way ? > >> > > >> Yes it should be however to make an user a moderator of the room you > don't need that, you can use the simple methods setuserobject et cetera ... > >> > >> > This is my code: > >> > <?php > >> > require_once('lib/nusoap.php'); > >> > > >> > $client_userService = new nusoap_client(" > http://hostname:5080/openmeetings/services/UserService?wsdl", "wsdl"); > >> > //$client_userService->setUseCurl(true); > >> > $err = $client_userService->getError(); > >> > if ($err) { > >> > echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; > >> > echo '<h2>Debug</h2><pre>' . > >> > htmlspecialchars($client->getDebug(), > >> > ENT_QUOTES) . '</pre>'; > >> > exit(); > >> > } > >> > $resultSesssion = $client_userService->call('getSession'); > >> > if ($client_userService->fault) > >> > { > >> > echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; > >> > print_r($result); > >> > echo '</pre>'; > >> > } > >> > else > >> > { > >> > $err = $client_userService->getError(); > >> > if ($err) { > >> > echo '<h2>Error2</h2><pre>' . $err . '</pre>'; > >> > } > >> > else > >> > { > >> > //echo '<h2>Result</h2><pre>'; > >> > print_r($result); > >> > echo '</pre>'; > >> > $client_userService->session_id = > $resultSesssion["return"]["session_id"]; > >> > echo '<h2>Result</h2><pre>'; > >> > print_r($resultSesssion); > >> > echo '</pre>'; > >> > $params = array( > >> > 'SID' => $client_userService->session_id, > >> > 'username' => 'user', > >> > 'userpass' => 'pass' > >> > ); > >> > //$params = array(); > >> > $autologin = $client_userService->call('loginUser',$params); > >> > echo '<h2>Params</h2><pre>'; > >> > print_r($autologin); > >> > echo '</pre>'; > >> > if ($client_userService->fault) > >> > { > >> > echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; > >> > print_r($autologin); > >> > echo '</pre>'; > >> > } > >> > else > >> > { > >> > $err = $client_userService->getError(); > >> > if ($err) { > >> > echo '<h2>Error</h2><pre>' . $err . '</pre>'; > >> > } > >> > else > >> > { > >> > echo '<h2>result</h2><pre>'; > >> > print_r($autologin); > >> > echo '</pre>'; > >> > } > >> > } > >> > } > >> > } > >> > $client_roomService = new nusoap_client(" > http://hostname:5080/openmeetings/services/RoomService?wsdl", true); > >> > $err = $client_roomService->getError(); > >> > if ($err) { > >> > echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; > >> > echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), > ENT_QUOTES) . '</pre>'; > >> > exit(); > >> > } > >> > $params = array( > >> > 'SID' => $client_userService->session_id, > >> > 'name' => 'test', > >> > 'roomtypes_id' => 1, > >> > 'comment' => 'Test SOAP', > >> > 'numberOfPartizipants' => 50, > >> > 'ispublic' => true, > >> > 'appointment' => true, > >> > 'isDemoRoom' => false, > >> > 'demoTime' => '', > >> > 'isModeratedRoom' => true, > >> > 'externalRoomType' => '', > >> > 'validFromDate' => '05-01-2012', > >> > 'validFromTime' => '16:00', > >> > 'validToDate' => '05-01-2012', > >> > 'validToTime' => '17:00', > >> > 'isPasswordProtected' => false, > >> > 'password' => '', > >> > 'reminderTypeId' => 2, > >> > 'redirectURL' => '' > >> > ); > >> > $addroom = > $client_roomService->call('addRoomWithModerationAndExternalTypeAndStartEnd',$params); > >> > if ($client_roomService->fault) { > >> > echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; print_r($addroom); echo '</pre>'; > >> > } else { > >> > $err = $client_roomService->getError(); > >> > if ($err) { > >> > echo '<h2>Error</h2><pre>' . $err . '</pre>'; > >> > } else { > >> > echo '<h2>Result</h2><pre>'; print_r($addroom["return"]); echo > '</pre>'; > >> > //return $addroom["return"]; > >> > > >> > } > >> > } > >> > $params = array ( > >> > 'SID' => $client_userService->session_id, > >> > 'room_id' => $addroom["return"], > >> > 'firstname' => 'Andre', > >> > 'lastname' => 'Pedro', > >> > 'email' => 'andre[at]mail.com', > >> > 'baseUrl' => 'http://hostname:5080/openmeetings/', > >> > 'language_id' => 1 > >> > ); > >> > $sent_invite = > $client_roomService->call('addMeetingMemberRemindToRoom',$params); > >> > if ($client_roomService->fault) { > >> > echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; print_r($sent_invite); echo '</pre>'; > >> > } else { > >> > $err = $client_roomService->getError(); > >> > if ($err) { > >> > echo '<h2>Error</h2><pre>' . $err . '</pre>'; > >> > } else { > >> > echo '<h2>Result</h2><pre>'; print_r($sent_invite["return"]); echo > '</pre>'; > >> > //return $addroom["return"]; > >> > > >> > } > >> > } > >> > > >> > ?> > >> > > >> > > >> > Best regards > >> > > >> > On 6 January 2012 04:30, [email protected] <[email protected]> > wrote: > >> >> > >> >> Hi, > >> >> > >> >> Error no 1: I actually cannot say if the text that you show in your > screenshot is stored in Openmeetings or produced by your integration code. > >> >> > >> >> Error no 2: > >> >> I don't know what you have submited as name and descr. The > screenshot shows it okay, what would you expect to see? > >> >> > >> >> Error no 3: > >> >> What soap call do you use to create the conference room and > appointment? It might be possible that you need to add all meeting members > including the creating one. There is no soap call that adds any members to > the appointment automatically, it also makes hardly sense as the creating > user is likely to be a external user and not an Internal user from > OpenMeetings if the appointment is created via soap. > >> >> > >> >> Sebastian > >> >> > >> >> Am 06.01.2012 00:56 schrieb "andre bolinhas" < > [email protected]>: > >> >> > >> >>> Hi Sebastian, > >> >>> > >> >>> I Have the following issues when I try add a room trought SOAP/REST > API. > >> >>> > >> >>> The room is successfully created, the appointment is successfully > added in calendar and the invitation is sent, but I have this issues: > >> >>> > >> >>> 1º In invitations email sent to external users i get a Error > formatSubjec and Error formatMessage in body > >> >>> > https://lh5.googleusercontent.com/-jiHt7zpsoXY/TwXb6yMsmJI/AAAAAAAAABE/OxeivtWYp90/s800/invitation_body.png > >> >>> > >> >>> 2º The name and description of appointment are wrong: > >> >>> > https://lh4.googleusercontent.com/-UsNWylXKpjY/TwXeHHieXEI/AAAAAAAAABQ/_K2BFI7sfGQ/s800/appointment01.png > >> >>> > >> >>> 3º The attendess added to my room/appointment is only the external > user of my addMeetingMemberRemindToRoom fucntion, should not automatically > add me (user that create the room and appointment) as owner/moderator? > >> >>> > https://lh5.googleusercontent.com/-CYytChoXFiM/TwXgfv8pnkI/AAAAAAAAABc/rKJGaYQ991g/s800/appointment02.png > >> >>> > >> >>> This is my code: > >> >>> <?php > >> >>> require_once('lib/nusoap.php'); > >> >>> > >> >>> $client_userService = new nusoap_client(" > http://hostname:5080/openmeetings/services/UserService?wsdl", "wsdl"); > >> >>> //$client_userService->setUseCurl(true); > >> >>> $err = $client_userService->getError(); > >> >>> if ($err) { > >> >>> echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; > >> >>> echo '<h2>Debug</h2><pre>' . > >> >>> htmlspecialchars($client->getDebug(), > >> >>> ENT_QUOTES) . '</pre>'; > >> >>> exit(); > >> >>> } > >> >>> $resultSesssion = $client_userService->call('getSession'); > >> >>> if ($client_userService->fault) > >> >>> { > >> >>> echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; > >> >>> print_r($result); > >> >>> echo '</pre>'; > >> >>> } > >> >>> else > >> >>> { > >> >>> $err = $client_userService->getError(); > >> >>> if ($err) { > >> >>> echo '<h2>Error2</h2><pre>' . $err . '</pre>'; > >> >>> } > >> >>> else > >> >>> { > >> >>> //echo '<h2>Result</h2><pre>'; > >> >>> print_r($result); > >> >>> echo '</pre>'; > >> >>> $client_userService->session_id = > $resultSesssion["return"]["session_id"]; > >> >>> echo '<h2>Result</h2><pre>'; > >> >>> print_r($resultSesssion); > >> >>> echo '</pre>'; > >> >>> $params = array( > >> >>> 'SID' => $client_userService->session_id, > >> >>> 'username' => 'user', > >> >>> 'userpass' => 'pass' > >> >>> ); > >> >>> //$params = array(); > >> >>> $autologin = $client_userService->call('loginUser',$params); > >> >>> echo '<h2>Params</h2><pre>'; > >> >>> print_r($autologin); > >> >>> echo '</pre>'; > >> >>> if ($client_userService->fault) > >> >>> { > >> >>> echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; > >> >>> print_r($autologin); > >> >>> echo '</pre>'; > >> >>> } > >> >>> else > >> >>> { > >> >>> $err = $client_userService->getError(); > >> >>> if ($err) { > >> >>> echo '<h2>Error</h2><pre>' . $err . '</pre>'; > >> >>> } > >> >>> else > >> >>> { > >> >>> echo '<h2>result</h2><pre>'; > >> >>> print_r($autologin); > >> >>> echo '</pre>'; > >> >>> } > >> >>> } > >> >>> } > >> >>> } > >> >>> $client_roomService = new nusoap_client(" > http://hostname:5080/openmeetings/services/RoomService?wsdl", true); > >> >>> $err = $client_roomService->getError(); > >> >>> if ($err) { > >> >>> echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; > >> >>> echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), > ENT_QUOTES) . '</pre>'; > >> >>> exit(); > >> >>> } > >> >>> $params = array( > >> >>> 'SID' => $client_userService->session_id, > >> >>> 'name' => 'test', > >> >>> 'roomtypes_id' => 1, > >> >>> 'comment' => 'Test SOAP', > >> >>> 'numberOfPartizipants' => 50, > >> >>> 'ispublic' => true, > >> >>> 'appointment' => true, > >> >>> 'isDemoRoom' => false, > >> >>> 'demoTime' => '', > >> >>> 'isModeratedRoom' => true, > >> >>> 'externalRoomType' => '', > >> >>> 'validFromDate' => '05-01-2012', > >> >>> 'validFromTime' => '16:00', > >> >>> 'validToDate' => '05-01-2012', > >> >>> 'validToTime' => '17:00', > >> >>> 'isPasswordProtected' => false, > >> >>> 'password' => '', > >> >>> 'reminderTypeId' => 2, > >> >>> 'redirectURL' => '' > >> >>> ); > >> >>> $addroom = > $client_roomService->call('addRoomWithModerationAndExternalTypeAndStartEnd',$params); > >> >>> if ($client_roomService->fault) { > >> >>> echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; print_r($addroom); echo '</pre>'; > >> >>> } else { > >> >>> $err = $client_roomService->getError(); > >> >>> if ($err) { > >> >>> echo '<h2>Error</h2><pre>' . $err . '</pre>'; > >> >>> } else { > >> >>> echo '<h2>Result</h2><pre>'; print_r($addroom["return"]); echo > '</pre>'; > >> >>> //return $addroom["return"]; > >> >>> > >> >>> } > >> >>> } > >> >>> $params = array ( > >> >>> 'SID' => $client_userService->session_id, > >> >>> 'room_id' => $addroom["return"], > >> >>> 'firstname' => 'Andre', > >> >>> 'lastname' => 'Pedro', > >> >>> 'email' => 'andre[at]mail.com', > >> >>> 'baseUrl' => 'http://hostname:5080/openmeetings/', > >> >>> 'language_id' => 1 > >> >>> ); > >> >>> $sent_invite = > $client_roomService->call('addMeetingMemberRemindToRoom',$params); > >> >>> if ($client_roomService->fault) { > >> >>> echo '<h2>Fault (Expect - The request contains an invalid SOAP > body)</h2><pre>'; print_r($sent_invite); echo '</pre>'; > >> >>> } else { > >> >>> $err = $client_roomService->getError(); > >> >>> if ($err) { > >> >>> echo '<h2>Error</h2><pre>' . $err . '</pre>'; > >> >>> } else { > >> >>> echo '<h2>Result</h2><pre>'; print_r($sent_invite["return"]); echo > '</pre>'; > >> >>> //return $addroom["return"]; > >> >>> > >> >>> } > >> >>> } > >> >>> > >> >>> ?> > >> >>> > >> >>> -- > >> >>> Os meus cumprimentos > >> >>> > >> >>> André Bolinhas > >> >>> > >> >>> -- > >> >>> Os meus cumprimentos > >> >>> > >> >>> André Bolinhas > >> > > >> > > >> > > >> > > >> > -- > >> > Os meus cumprimentos > >> > > >> > André Bolinhas > > > > > > > > > > -- > > Os meus cumprimentos > > > > André Bolinhas > -- Os meus cumprimentos André Bolinhas
