[jira] [Commented] (OPENMEETINGS-2353) unable to add User from SOAP API

2020-05-17 Thread Murali (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109580#comment-17109580
 ] 

Murali commented on OPENMEETINGS-2353:
--

Thanks for reply. 

I am trying to implement:
 # create user
 # login with this user
 # need to add him in  to the room

other than user creation remaining all working fine.  while create user only i 
am getting issue. we tried without id, type and with id, type.

we are using SOAP.

we are getting same error.

 

please help us.

 

Regards

Murali

> unable to add User from SOAP API
> 
>
> Key: OPENMEETINGS-2353
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2353
> Project: Openmeetings
>  Issue Type: Bug
>  Components: SOAP/REST API
>Affects Versions: 5.0.0-M4
>Reporter: Murali
>Assignee: Maxim Solodovnik
>Priority: Major
>
> Hi
> When i am trying to add a new user using SOAP, i am getting following error.
> local.ERROR: Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. {"exception":"[object] 
> (mongosoft\\soapclient\\Exception(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:66,
>  SoapFault(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:64)
>  
> Please help me.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OPENMEETINGS-2353) unable to add User from SOAP API

2020-05-16 Thread Maxim Solodovnik (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109300#comment-17109300
 ] 

Maxim Solodovnik commented on OPENMEETINGS-2353:


Hello [~murali.botta],

it seems redundant to specify {{id, type}} (since you are creating user {{id}} 
will be assigned automatically, as well as type
{{rights}} should be array, and most probably it MUST contains at least 
{{LOGIN, ROOM}}, not sure why it has {{SOAP}}

I guess you are trying to implement:
# create user
# login with this user
# somehow add it to the room

What you **really** need:
# generate room secure hash
# open it for user in separate window (iframe)

here is REST example: https://openmeetings.apache.org/RestAPISample.html
here is PHP API you can use 
https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php
 

> unable to add User from SOAP API
> 
>
> Key: OPENMEETINGS-2353
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2353
> Project: Openmeetings
>  Issue Type: Bug
>  Components: SOAP/REST API
>Affects Versions: 5.0.0-M4
>Reporter: Murali
>Assignee: Maxim Solodovnik
>Priority: Major
>
> Hi
> When i am trying to add a new user using SOAP, i am getting following error.
> local.ERROR: Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. {"exception":"[object] 
> (mongosoft\\soapclient\\Exception(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:66,
>  SoapFault(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:64)
>  
> Please help me.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OPENMEETINGS-2353) unable to add User from SOAP API

2020-05-16 Thread Murali (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109156#comment-17109156
 ] 

Murali commented on OPENMEETINGS-2353:
--

Here is the code i have tried.

$client = new OpenMeetingsSoap('admin','Admin@123');

$user =  [

       
'address'=>['additionalname'=>'additionalname','comment'=>'comment','fax'=>'2327337','country'=>'IT','street'=>'test','town'=>'test','zip'=>'2234234','mail'=>'[padma...@gmail.com|mailto:padma...@gmail.com]','phone'=>'2343434334'],

    'externalId'=>'1',

    'externalType'=>'School',

    'firstname'=>'padma',

  'id'=>"25",

   'languageId'=>"1",

   'lastname'=>'priya',

   'login'=>'padma123',

   'password'=>'Padma@123',

      'pictureUri'=>'picture',

      'rights'=>'SOAP',

      'timeZoneId'=>'Asia/Kolkata',

      'type'=>'EXTERNAL'

 ];

$client->addUser($user,'false');

public function addUser($user = null, $confirm= null)

{

       $client = new \mongosoft\soapclient\Client([

 'url' => 
'[http://216.158.233.60:5080/openmeetings/services/UserService?wsdl]',

  ]);

    return 
$client->add(['sid'=>$this->sid,'user'=>$user,'confirm'=>$confirm]);

  }

 

i am using 
[apache-openmeetings-5.0.0-M4|https://www.apache.org/dyn/closer.lua/openmeetings/5.0.0-M4/bin/apache-openmeetings-5.0.0-M4.zip]

i am trying to implement from laravel.

 

regards

Murali

> unable to add User from SOAP API
> 
>
> Key: OPENMEETINGS-2353
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2353
> Project: Openmeetings
>  Issue Type: Bug
>  Components: SOAP/REST API
>Affects Versions: 5.0.0-M4
>Reporter: Murali
>Assignee: Maxim Solodovnik
>Priority: Major
>
> Hi
> When i am trying to add a new user using SOAP, i am getting following error.
> local.ERROR: Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. {"exception":"[object] 
> (mongosoft\\soapclient\\Exception(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:66,
>  SoapFault(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:64)
>  
> Please help me.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OPENMEETINGS-2353) unable to add User from SOAP API

2020-05-13 Thread Maxim Solodovnik (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17106819#comment-17106819
 ] 

Maxim Solodovnik commented on OPENMEETINGS-2353:


Hello [~murali.botta],

I see no way to help: you provide zero details

please provide reproducible steps
Thanks

> unable to add User from SOAP API
> 
>
> Key: OPENMEETINGS-2353
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2353
> Project: Openmeetings
>  Issue Type: Bug
>  Components: SOAP/REST API
>Affects Versions: 5.0.0-M4
>Reporter: Murali
>Assignee: Maxim Solodovnik
>Priority: Major
>
> Hi
> When i am trying to add a new user using SOAP, i am getting following error.
> local.ERROR: Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. {"exception":"[object] 
> (mongosoft\\soapclient\\Exception(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:66,
>  SoapFault(code: 0): Marshalling Error: class 
> org.apache.openmeetings.webservice.error.ServiceException nor any of its 
> super class is known to this context. at 
> C:\\xampp\\htdocs\\school\\vendor\\mongosoft\\yii2-soap-client\\Client.php:64)
>  
> Please help me.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)