Hi,

Any news about this issues ?

Best Regards

André Bolinhas

On 6 January 2012 10:39, andre bolinhas <[email protected]> wrote:

> Hi
>
> 1º This test is stored in Openmeetings.
>
> 2º I expect to see this:
> appointmentName = name of room and  appointmentDescription = comment of
> the room.
> eg:
> 'name' => 'test',
> 'comment' => 'Test SOAP',
>
> 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 ?
>
> 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

Reply via email to