great :)

On Wed, May 2, 2018 at 8:12 PM, Ramón Zárate Moedano <hor...@gmail.com> wrote:
> I just saw my error ...
>
> $response = $rest->call(
> $this->getRestUrl("group")
> , RestMethod::GET
> , $this->sessionId
> , null
> , null
> , "groupDTO " Instead of "List"
> );
>
> Thanks .... :)
>
>
> 2018-05-01 19:01 GMT-05:00 Ramón Zárate Moedano <hor...@gmail.com>:
>>
>> I updated my OM to latest release and is working just fine ....
>>
>> Now i am getting an error but is something with Rest call.
>>
>> I get an url like
>> http://ip:5080/openmeetings/services/group/?&sid=81ee666e-a7f8-4b97-9507-5ff2b8ea19aa.
>> If i use this on the browser i get something like
>>
>> {"groupDTO":[{"id":1,"name":"GroupName"}]}
>>
>> but using php api i get this error
>> (https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmRestService.php)
>>
>> Notice: Undefined index: List in om_gateway\OmRestService.php on line 104
>>
>> this is the code in line 104 return $wraperName ? $decoded[$wraperName] :
>> $decoded;
>>
>> I think is something regarding json array but i cannot figure it out what
>> is it ....
>>
>>
>>
>>
>>
>>
>> 2018-04-27 21:59 GMT-05:00 Maxim Solodovnik <solomax...@gmail.com>:
>>>
>>> Works for me on demo server (latest release)
>>> What version are you using?
>>>
>>> On Sat, Apr 28, 2018 at 5:12 AM, Ramón Zárate Moedano <hor...@gmail.com>
>>> wrote:
>>> > Im getting this msg
>>> >
>>> > No message body writer has been found for class
>>> > org.apache.openjpa.kernel.DelegatingResultList, ContentType:
>>> > application/json
>>> >
>>> >
>>> > when trying to use
>>> >
>>> > Class GroupWebService
>>> >
>>> > Method get
>>> >
>>> >
>>> > This is my url
>>> >
>>> >
>>> > http://ip:5080/openmeetings/services/group/?&sid=eed01b74-181a-4cd1-a8d0-fcfd3a220bb6
>>> >
>>> > and this is my rest call config
>>> >
>>> > $response = $rest->call(
>>> > $this->getRestUrl("group")
>>> > , RestMethod::GET
>>> > , $this->sessionId
>>> > , null
>>> > , null
>>> > , "List"
>>> > );
>>> > I tried changing List for  List<GroupDTO> and  GroupDTO  and the answer
>>> > was
>>> > the same.
>>> >
>>> >
>>> > am I doing something wrong????
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>
>>
>



-- 
WBR
Maxim aka solomax

Reply via email to