I can only advice that you use a GUI - SOAP Client to verify that your
params are okay.
After that porting the params into your PHP implementation should be
no problem.

You can also copy those functions from the Moodle Plugin.


Sebastian

On 8 Apr., 10:30, Inazo <alexandre.j...@bsmt.fr> wrote:
> Hello,
>
> I try to integrate SOAP like it explain on 
> :http://code.google.com/p/openmeetings/wiki/DirectLoginSoapGeneralFlow
>
> I have succesfull getSession(), loginUser, and getRooms.
>
> Good i have the informations, loginUser return "1" and getRooms my 6
> rooms.
>
> But when i wan't to have Hash I Have this exeception :
>
> "Fatal error: Uncaught SoapFault exception: [soapenv:Server] unknown
> in /var/www/SOAP/index.php:35 Stack trace: #0 [internal function]:
> SoapClient->__call('setUserObjectAn...', Array) #1 /var/www/SOAP/
> index.php(35): SoapClient->setUserObjectAndGenerateRoomHash(Array) #2
> {main} thrown in /var/www/SOAP/index.php on line 35"
>
> Last information : I used SVN version for test.
>
> My PHP Code :
>
> $Url = '127.0.0.1:8080';
>
> $SoapUsers = new SoapClient('http://'.$Url.'/services/UserService?
> wsdl');
>
> $Res = array();
>
> $Res         = $SoapUsers->getSession();
> $idSession = $Res->return->session_id;
>
> $Res = $SoapUsers->loginUser(array('SID' => $idSession,'username' =>
> 'alex','userpass' => 'sandrine'));
>
>         $SoapRomm = new SoapClient('http://'.$Url.'/services/RoomService?
> wsdl');
>
>         $Res = $SoapRomm->getRooms(array('SID' => $idSession, 'start' =>
> 1,'max' => 10, 'orderby' => 'rooms_id', 'asc' => 0));
>
>         $Res = $SoapUsers->setUserObjectAndGenerateRoomHash(array('SID' =>
> $idSession,'username' => 'admin','firstname' =>'AlexSOAP','lastname'
> => 'JSOAP',
>                 'profilePictureUrl' => '',
>                 'email' => 'mym...@ndd.fr ',
>                 'externalUserId' => 0,
>                 'externalUserType' => '',
>                 'room_id' => 6,
>                 'becomeModeratorAsInt' => 0,
>                 'showAudioVideoTestAsIn' =>'1'));
>
> Someone have any idea ?
>
> Thanks for help.
>
> Best regards,
>
> Alexandre | Inazo

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to openmeetings-u...@googlegroups.com.
To unsubscribe from this group, send email to 
openmeetings-user+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en.

Reply via email to