cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
586
Views
0
Helpful
3
Replies

Manage SX20 via API

Hi all,

 

I'm trying to manage an SX20 via API for an application development.

 

In "codec-sx20-api-reference-guide-tc72.pdf" Page21, how to POST xml file to a codec is mentioned.

But it doesn't work.

Is my procedure incorrect?

 

URL =>   http://<ip-address of SX20>/putxml

Request =>

POST /putxml HTTP/1.1
Content-Type: text/xml
Connection: close
<Configuration>
    <SystemUnit>
        <Name>newName</Name>
    </SystemUnit>
</Configuration>

 

Reponse => " (417) Expectation Failed"

 

Best Regards,

Kotaro

3 Replies 3

thobonho2
Level 1
Level 1

Hi Kotaro, make sure first that XMLAPI is enabled in the endpoint's configuration

Thank you thobonho2,

 

I enabled XMLAPI  but result is same.

Is there any configuration I should check?

 

Regards,

Kotaro

 

I forgot to mention it, but you must reboot the endpoint in order to get the service started actually.

 

Also, to discard any problem with the application you're developing, try using HTTP GET method instead. Just copy and paste this url in your browser:

 http://<ip>/formputxml?xmldoc=<Configuration><SystemUnit><Name>newName</Name></SystemUnit></Configuration>

If you get this working, you know the codec's API is enabled and running fine, and you can focus on your application.