You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by moodle dman <mo...@gmail.com> on 2020/03/15 19:24:34 UTC

SOAP API : create calendar event error

Hi Guys,
I am trying to create a calendar event from SOAP API and I get a strange
error:

SoapFault Object
(
    [message:protected] => Marshalling Error: class
org.apache.openmeetings.webservice.error.ServiceException nor any of
its super class is known to this context.
    [string:Exception:private] =>
    [code:protected] => 0

The object I am sending is a simple one like:
[args] => Array
                        (
                            [0] => save
                            [1] => Array
                                (
                                    [0] => save Object
                                        (
                                            [sid] => *********
                                            [appointment] => stdClass Object
                                                (
                                                    [title] => vvv
                                                    [location] => vvv
                                                    [start] =>
2020-03-15T19:10:00Z
                                                    [end] =>
2020-03-15T19:10:00Z
                                                    [deleted] => false
                                                    [passwordProtected] => false
                                                    [connectedEvent] => false
                                                    [reminderEmailSend] => false
                                                    [description] => vvv
                                                )

                                        )

                                )

                            [2] => Array
                                (
                                    [uri] =>
                                    [soapaction] =>
                                )

                        )


I have the same error when trying to do the API call with Wizdler
(screen-shots attached)

[image: Screenshot 2020-03-15 at 19.14.09.png]
[image: Screenshot 2020-03-15 at 19.14.20.png]
Any idea what I am doing wrong?
Thanks!

Re: SOAP API : create calendar event error

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello,

This method is covered with unit tests and the tests are green
https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestCalendarService.java#L144

Do you have any errors in openmeetings.log ?

On Mon, Mar 16, 2020, 02:24 moodle dman <mo...@gmail.com> wrote:

> Hi Guys,
> I am trying to create a calendar event from SOAP API and I get a strange
> error:
>
> SoapFault Object
> (
>     [message:protected] => Marshalling Error: class org.apache.openmeetings.webservice.error.ServiceException nor any of its super class is known to this context.
>     [string:Exception:private] =>
>     [code:protected] => 0
>
> The object I am sending is a simple one like:
> [args] => Array
>                         (
>                             [0] => save
>                             [1] => Array
>                                 (
>                                     [0] => save Object
>                                         (
>                                             [sid] => *********
>                                             [appointment] => stdClass Object
>                                                 (
>                                                     [title] => vvv
>                                                     [location] => vvv
>                                                     [start] => 2020-03-15T19:10:00Z
>                                                     [end] => 2020-03-15T19:10:00Z
>                                                     [deleted] => false
>                                                     [passwordProtected] => false
>                                                     [connectedEvent] => false
>                                                     [reminderEmailSend] => false
>                                                     [description] => vvv
>                                                 )
>
>                                         )
>
>                                 )
>
>                             [2] => Array
>                                 (
>                                     [uri] =>
>                                     [soapaction] =>
>                                 )
>
>                         )
>
>
> I have the same error when trying to do the API call with Wizdler (screen-shots attached)
>
> [image: Screenshot 2020-03-15 at 19.14.09.png]
> [image: Screenshot 2020-03-15 at 19.14.20.png]
> Any idea what I am doing wrong?
> Thanks!
>