cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1139
Views
0
Helpful
5
Replies

Cannot create a conference with optional input

kozooh147
Level 1
Level 1

Hi, I try to create a conference through API, sending a POST request to TP Conductor. Here's an XML I send:

<?xml version="1.0" encoding="UTF-8"?>

<methodCall>

    <methodName>factory.conferencecreate</methodName>

    <params>

        <param>

            <value>

                <struct>

                    <member>

                        <name>authenticationUser</name>

                        <value><string>user</string></value>

                    </member>

                    <member>

                        <name>authenticationPassword</name>

                        <value><string>password</string></value>

                    </member>

                    <member>

                        <name>conferenceAlias</name>

                        <value><string>meet@example.com</string></value>

                    </member>

                    <member>

                        <name>factoryMinDurationMinutes</name>

                        <value><integer>120</integer></value>

                    </member>

                    <member>

                        <name>encryption</name>

                        <value><string>required</string></value>

                    </member>

                </struct>

            </value>

        </param>

    </params>

</methodCall>

I got a following response:

<?xml version='1.0'?>

<methodResponse>

    <fault>

        <value><struct>

                <member>

                    <name>faultCode</name>

                    <value><int>8002</int></value>

                </member>

                <member>

                    <name>faultString</name>

                    <value><string>Can't deserialize input: list index out of range</string></value>

                </member>

            </struct></value>

    </fault>

</methodResponse>

Please notice that the request works well when I ommit optional parameters (i.e. factoryMinDurationMinutes and encryption).

It would be also great if you could share with me some guide how to construct all this xml stuff, it's a pity there's not a single example in the Product Programming Reference Guide...

Best wishes,

Jarek

1 Accepted Solution

Accepted Solutions

roy.jqliang
Level 1
Level 1

Hey,I have found out that we should use <int> instead of <integer>,and it work!! I can only say that the document is really  so misleading..

View solution in original post

5 Replies 5

roy.jqliang
Level 1
Level 1

Hi,did you find out the solution yet,I met this fault too

Hi, sorry to say but I didn't find any solution. We have to wait for a new version I'm afraid and keep our fingers crossed they'll resolve the issue.

Thank you for your reply, it 's so sorry that no  expert can solve our problems

roy.jqliang
Level 1
Level 1

Hey,I have found out that we should use <int> instead of <integer>,and it work!! I can only say that the document is really  so misleading..

Oh, that's the great news, I'm glad you solved the problem, thanks!