You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8535 lines
367 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapMediaBindingProxy.cpp
  2. Generated by gSOAP 2.8.17r from onvif.h
  3. Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
  4. The generated code is released under one of the following licenses:
  5. GPL or Genivia's license for commercial use.
  6. This program is released under the GPL with the additional exemption that
  7. compiling, linking, and/or using OpenSSL is allowed.
  8. */
  9. #include "soapMediaBindingProxy.h"
  10. MediaBindingProxy::MediaBindingProxy()
  11. { MediaBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. MediaBindingProxy::MediaBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. MediaBindingProxy::MediaBindingProxy(const char *url)
  16. { MediaBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. MediaBindingProxy::MediaBindingProxy(soap_mode iomode)
  20. { MediaBindingProxy_init(iomode, iomode);
  21. }
  22. MediaBindingProxy::MediaBindingProxy(const char *url, soap_mode iomode)
  23. { MediaBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. MediaBindingProxy::MediaBindingProxy(soap_mode imode, soap_mode omode)
  27. { MediaBindingProxy_init(imode, omode);
  28. }
  29. MediaBindingProxy::~MediaBindingProxy()
  30. { }
  31. void MediaBindingProxy::MediaBindingProxy_init(soap_mode imode, soap_mode omode)
  32. { soap_imode(this, imode);
  33. soap_omode(this, omode);
  34. soap_endpoint = NULL;
  35. static const struct Namespace namespaces[] =
  36. {
  37. {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL},
  38. {"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL},
  39. {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
  40. {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
  41. {"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL},
  42. {"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL},
  43. {"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL},
  44. {"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL},
  45. {"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL},
  46. {"wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL},
  47. {"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL},
  48. {"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL},
  49. {"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL},
  50. {"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL},
  51. {"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL},
  52. {"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL},
  53. {"tt", "http://www.onvif.org/ver10/schema", NULL, NULL},
  54. {"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL},
  55. {"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL},
  56. {"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL},
  57. {"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL},
  58. {"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL},
  59. {"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL},
  60. {"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL},
  61. {"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL},
  62. {"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL},
  63. {"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL},
  64. {"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL},
  65. {"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL},
  66. {"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL},
  67. {"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL},
  68. {"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL},
  69. {"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL},
  70. {NULL, NULL, NULL, NULL}
  71. };
  72. soap_set_namespaces(this, namespaces);
  73. }
  74. void MediaBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void MediaBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. MediaBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void MediaBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void MediaBindingProxy::soap_header(struct _wsse__Security *wsse__Security, char *wsa__MessageID, struct wsa__Relationship *wsa__RelatesTo, struct wsa__EndpointReferenceType *wsa__From, struct wsa__EndpointReferenceType *wsa__ReplyTo, struct wsa__EndpointReferenceType *wsa__FaultTo, char *wsa__To, char *wsa__Action, struct wsdd__AppSequenceType *wsdd__AppSequence, char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance)
  88. { ::soap_header(this);
  89. this->header->wsse__Security = wsse__Security;
  90. this->header->wsa__MessageID = wsa__MessageID;
  91. this->header->wsa__RelatesTo = wsa__RelatesTo;
  92. this->header->wsa__From = wsa__From;
  93. this->header->wsa__ReplyTo = wsa__ReplyTo;
  94. this->header->wsa__FaultTo = wsa__FaultTo;
  95. this->header->wsa__To = wsa__To;
  96. this->header->wsa__Action = wsa__Action;
  97. this->header->wsdd__AppSequence = wsdd__AppSequence;
  98. this->header->wsa5__MessageID = wsa5__MessageID;
  99. this->header->wsa5__RelatesTo = wsa5__RelatesTo;
  100. this->header->wsa5__From = wsa5__From;
  101. this->header->wsa5__ReplyTo = wsa5__ReplyTo;
  102. this->header->wsa5__FaultTo = wsa5__FaultTo;
  103. this->header->wsa5__To = wsa5__To;
  104. this->header->wsa5__Action = wsa5__Action;
  105. this->header->chan__ChannelInstance = chan__ChannelInstance;
  106. }
  107. const SOAP_ENV__Header *MediaBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *MediaBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *MediaBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *MediaBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int MediaBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int MediaBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void MediaBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void MediaBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *MediaBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int MediaBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _trt__GetServiceCapabilities *trt__GetServiceCapabilities, _trt__GetServiceCapabilitiesResponse *trt__GetServiceCapabilitiesResponse)
  139. { struct soap *soap = this;
  140. struct __trt__GetServiceCapabilities soap_tmp___trt__GetServiceCapabilities;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetServiceCapabilities";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___trt__GetServiceCapabilities.trt__GetServiceCapabilities = trt__GetServiceCapabilities;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities);
  151. if (soap_begin_count(soap))
  152. return soap->error;
  153. if (soap->mode & SOAP_IO_LENGTH)
  154. { if (soap_envelope_begin_out(soap)
  155. || soap_putheader(soap)
  156. || soap_body_begin_out(soap)
  157. || soap_put___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities, "-trt:GetServiceCapabilities", NULL)
  158. || soap_body_end_out(soap)
  159. || soap_envelope_end_out(soap))
  160. return soap->error;
  161. }
  162. if (soap_end_count(soap))
  163. return soap->error;
  164. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  165. || soap_envelope_begin_out(soap)
  166. || soap_putheader(soap)
  167. || soap_body_begin_out(soap)
  168. || soap_put___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities, "-trt:GetServiceCapabilities", NULL)
  169. || soap_body_end_out(soap)
  170. || soap_envelope_end_out(soap)
  171. || soap_end_send(soap))
  172. return soap_closesock(soap);
  173. if (!trt__GetServiceCapabilitiesResponse)
  174. return soap_closesock(soap);
  175. trt__GetServiceCapabilitiesResponse->soap_default(soap);
  176. if (soap_begin_recv(soap)
  177. || soap_envelope_begin_in(soap)
  178. || soap_recv_header(soap)
  179. || soap_body_begin_in(soap))
  180. return soap_closesock(soap);
  181. trt__GetServiceCapabilitiesResponse->soap_get(soap, "trt:GetServiceCapabilitiesResponse", "");
  182. if (soap->error)
  183. return soap_recv_fault(soap, 0);
  184. if (soap_body_end_in(soap)
  185. || soap_envelope_end_in(soap)
  186. || soap_end_recv(soap))
  187. return soap_closesock(soap);
  188. return soap_closesock(soap);
  189. }
  190. int MediaBindingProxy::GetVideoSources(const char *endpoint, const char *soap_action, _trt__GetVideoSources *trt__GetVideoSources, _trt__GetVideoSourcesResponse *trt__GetVideoSourcesResponse)
  191. { struct soap *soap = this;
  192. struct __trt__GetVideoSources soap_tmp___trt__GetVideoSources;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSources/";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___trt__GetVideoSources.trt__GetVideoSources = trt__GetVideoSources;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources);
  203. if (soap_begin_count(soap))
  204. return soap->error;
  205. if (soap->mode & SOAP_IO_LENGTH)
  206. { if (soap_envelope_begin_out(soap)
  207. || soap_putheader(soap)
  208. || soap_body_begin_out(soap)
  209. || soap_put___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources, "-trt:GetVideoSources", NULL)
  210. || soap_body_end_out(soap)
  211. || soap_envelope_end_out(soap))
  212. return soap->error;
  213. }
  214. if (soap_end_count(soap))
  215. return soap->error;
  216. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  217. || soap_envelope_begin_out(soap)
  218. || soap_putheader(soap)
  219. || soap_body_begin_out(soap)
  220. || soap_put___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources, "-trt:GetVideoSources", NULL)
  221. || soap_body_end_out(soap)
  222. || soap_envelope_end_out(soap)
  223. || soap_end_send(soap))
  224. return soap_closesock(soap);
  225. if (!trt__GetVideoSourcesResponse)
  226. return soap_closesock(soap);
  227. trt__GetVideoSourcesResponse->soap_default(soap);
  228. if (soap_begin_recv(soap)
  229. || soap_envelope_begin_in(soap)
  230. || soap_recv_header(soap)
  231. || soap_body_begin_in(soap))
  232. return soap_closesock(soap);
  233. trt__GetVideoSourcesResponse->soap_get(soap, "trt:GetVideoSourcesResponse", "");
  234. if (soap->error)
  235. return soap_recv_fault(soap, 0);
  236. if (soap_body_end_in(soap)
  237. || soap_envelope_end_in(soap)
  238. || soap_end_recv(soap))
  239. return soap_closesock(soap);
  240. return soap_closesock(soap);
  241. }
  242. int MediaBindingProxy::GetAudioSources(const char *endpoint, const char *soap_action, _trt__GetAudioSources *trt__GetAudioSources, _trt__GetAudioSourcesResponse *trt__GetAudioSourcesResponse)
  243. { struct soap *soap = this;
  244. struct __trt__GetAudioSources soap_tmp___trt__GetAudioSources;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSources";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___trt__GetAudioSources.trt__GetAudioSources = trt__GetAudioSources;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources);
  255. if (soap_begin_count(soap))
  256. return soap->error;
  257. if (soap->mode & SOAP_IO_LENGTH)
  258. { if (soap_envelope_begin_out(soap)
  259. || soap_putheader(soap)
  260. || soap_body_begin_out(soap)
  261. || soap_put___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources, "-trt:GetAudioSources", NULL)
  262. || soap_body_end_out(soap)
  263. || soap_envelope_end_out(soap))
  264. return soap->error;
  265. }
  266. if (soap_end_count(soap))
  267. return soap->error;
  268. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  269. || soap_envelope_begin_out(soap)
  270. || soap_putheader(soap)
  271. || soap_body_begin_out(soap)
  272. || soap_put___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources, "-trt:GetAudioSources", NULL)
  273. || soap_body_end_out(soap)
  274. || soap_envelope_end_out(soap)
  275. || soap_end_send(soap))
  276. return soap_closesock(soap);
  277. if (!trt__GetAudioSourcesResponse)
  278. return soap_closesock(soap);
  279. trt__GetAudioSourcesResponse->soap_default(soap);
  280. if (soap_begin_recv(soap)
  281. || soap_envelope_begin_in(soap)
  282. || soap_recv_header(soap)
  283. || soap_body_begin_in(soap))
  284. return soap_closesock(soap);
  285. trt__GetAudioSourcesResponse->soap_get(soap, "trt:GetAudioSourcesResponse", "");
  286. if (soap->error)
  287. return soap_recv_fault(soap, 0);
  288. if (soap_body_end_in(soap)
  289. || soap_envelope_end_in(soap)
  290. || soap_end_recv(soap))
  291. return soap_closesock(soap);
  292. return soap_closesock(soap);
  293. }
  294. int MediaBindingProxy::GetAudioOutputs(const char *endpoint, const char *soap_action, _trt__GetAudioOutputs *trt__GetAudioOutputs, _trt__GetAudioOutputsResponse *trt__GetAudioOutputsResponse)
  295. { struct soap *soap = this;
  296. struct __trt__GetAudioOutputs soap_tmp___trt__GetAudioOutputs;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputs";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___trt__GetAudioOutputs.trt__GetAudioOutputs = trt__GetAudioOutputs;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs);
  307. if (soap_begin_count(soap))
  308. return soap->error;
  309. if (soap->mode & SOAP_IO_LENGTH)
  310. { if (soap_envelope_begin_out(soap)
  311. || soap_putheader(soap)
  312. || soap_body_begin_out(soap)
  313. || soap_put___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs, "-trt:GetAudioOutputs", NULL)
  314. || soap_body_end_out(soap)
  315. || soap_envelope_end_out(soap))
  316. return soap->error;
  317. }
  318. if (soap_end_count(soap))
  319. return soap->error;
  320. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  321. || soap_envelope_begin_out(soap)
  322. || soap_putheader(soap)
  323. || soap_body_begin_out(soap)
  324. || soap_put___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs, "-trt:GetAudioOutputs", NULL)
  325. || soap_body_end_out(soap)
  326. || soap_envelope_end_out(soap)
  327. || soap_end_send(soap))
  328. return soap_closesock(soap);
  329. if (!trt__GetAudioOutputsResponse)
  330. return soap_closesock(soap);
  331. trt__GetAudioOutputsResponse->soap_default(soap);
  332. if (soap_begin_recv(soap)
  333. || soap_envelope_begin_in(soap)
  334. || soap_recv_header(soap)
  335. || soap_body_begin_in(soap))
  336. return soap_closesock(soap);
  337. trt__GetAudioOutputsResponse->soap_get(soap, "trt:GetAudioOutputsResponse", "");
  338. if (soap->error)
  339. return soap_recv_fault(soap, 0);
  340. if (soap_body_end_in(soap)
  341. || soap_envelope_end_in(soap)
  342. || soap_end_recv(soap))
  343. return soap_closesock(soap);
  344. return soap_closesock(soap);
  345. }
  346. int MediaBindingProxy::CreateProfile(const char *endpoint, const char *soap_action, _trt__CreateProfile *trt__CreateProfile, _trt__CreateProfileResponse *trt__CreateProfileResponse)
  347. { struct soap *soap = this;
  348. struct __trt__CreateProfile soap_tmp___trt__CreateProfile;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateProfile";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___trt__CreateProfile.trt__CreateProfile = trt__CreateProfile;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile);
  359. if (soap_begin_count(soap))
  360. return soap->error;
  361. if (soap->mode & SOAP_IO_LENGTH)
  362. { if (soap_envelope_begin_out(soap)
  363. || soap_putheader(soap)
  364. || soap_body_begin_out(soap)
  365. || soap_put___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile, "-trt:CreateProfile", NULL)
  366. || soap_body_end_out(soap)
  367. || soap_envelope_end_out(soap))
  368. return soap->error;
  369. }
  370. if (soap_end_count(soap))
  371. return soap->error;
  372. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  373. || soap_envelope_begin_out(soap)
  374. || soap_putheader(soap)
  375. || soap_body_begin_out(soap)
  376. || soap_put___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile, "-trt:CreateProfile", NULL)
  377. || soap_body_end_out(soap)
  378. || soap_envelope_end_out(soap)
  379. || soap_end_send(soap))
  380. return soap_closesock(soap);
  381. if (!trt__CreateProfileResponse)
  382. return soap_closesock(soap);
  383. trt__CreateProfileResponse->soap_default(soap);
  384. if (soap_begin_recv(soap)
  385. || soap_envelope_begin_in(soap)
  386. || soap_recv_header(soap)
  387. || soap_body_begin_in(soap))
  388. return soap_closesock(soap);
  389. trt__CreateProfileResponse->soap_get(soap, "trt:CreateProfileResponse", "");
  390. if (soap->error)
  391. return soap_recv_fault(soap, 0);
  392. if (soap_body_end_in(soap)
  393. || soap_envelope_end_in(soap)
  394. || soap_end_recv(soap))
  395. return soap_closesock(soap);
  396. return soap_closesock(soap);
  397. }
  398. int MediaBindingProxy::GetProfile(const char *endpoint, const char *soap_action, _trt__GetProfile *trt__GetProfile, _trt__GetProfileResponse *trt__GetProfileResponse)
  399. { struct soap *soap = this;
  400. struct __trt__GetProfile soap_tmp___trt__GetProfile;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver10/media/wsdlGetProfile/";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___trt__GetProfile.trt__GetProfile = trt__GetProfile;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___trt__GetProfile(soap, &soap_tmp___trt__GetProfile);
  411. if (soap_begin_count(soap))
  412. return soap->error;
  413. if (soap->mode & SOAP_IO_LENGTH)
  414. { if (soap_envelope_begin_out(soap)
  415. || soap_putheader(soap)
  416. || soap_body_begin_out(soap)
  417. || soap_put___trt__GetProfile(soap, &soap_tmp___trt__GetProfile, "-trt:GetProfile", NULL)
  418. || soap_body_end_out(soap)
  419. || soap_envelope_end_out(soap))
  420. return soap->error;
  421. }
  422. if (soap_end_count(soap))
  423. return soap->error;
  424. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  425. || soap_envelope_begin_out(soap)
  426. || soap_putheader(soap)
  427. || soap_body_begin_out(soap)
  428. || soap_put___trt__GetProfile(soap, &soap_tmp___trt__GetProfile, "-trt:GetProfile", NULL)
  429. || soap_body_end_out(soap)
  430. || soap_envelope_end_out(soap)
  431. || soap_end_send(soap))
  432. return soap_closesock(soap);
  433. if (!trt__GetProfileResponse)
  434. return soap_closesock(soap);
  435. trt__GetProfileResponse->soap_default(soap);
  436. if (soap_begin_recv(soap)
  437. || soap_envelope_begin_in(soap)
  438. || soap_recv_header(soap)
  439. || soap_body_begin_in(soap))
  440. return soap_closesock(soap);
  441. trt__GetProfileResponse->soap_get(soap, "trt:GetProfileResponse", "");
  442. if (soap->error)
  443. return soap_recv_fault(soap, 0);
  444. if (soap_body_end_in(soap)
  445. || soap_envelope_end_in(soap)
  446. || soap_end_recv(soap))
  447. return soap_closesock(soap);
  448. return soap_closesock(soap);
  449. }
  450. int MediaBindingProxy::GetProfiles(const char *endpoint, const char *soap_action, _trt__GetProfiles *trt__GetProfiles, _trt__GetProfilesResponse *trt__GetProfilesResponse)
  451. { struct soap *soap = this;
  452. struct __trt__GetProfiles soap_tmp___trt__GetProfiles;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetProfiles";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___trt__GetProfiles.trt__GetProfiles = trt__GetProfiles;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles);
  463. if (soap_begin_count(soap))
  464. return soap->error;
  465. if (soap->mode & SOAP_IO_LENGTH)
  466. { if (soap_envelope_begin_out(soap)
  467. || soap_putheader(soap)
  468. || soap_body_begin_out(soap)
  469. || soap_put___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles, "-trt:GetProfiles", NULL)
  470. || soap_body_end_out(soap)
  471. || soap_envelope_end_out(soap))
  472. return soap->error;
  473. }
  474. if (soap_end_count(soap))
  475. return soap->error;
  476. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  477. || soap_envelope_begin_out(soap)
  478. || soap_putheader(soap)
  479. || soap_body_begin_out(soap)
  480. || soap_put___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles, "-trt:GetProfiles", NULL)
  481. || soap_body_end_out(soap)
  482. || soap_envelope_end_out(soap)
  483. || soap_end_send(soap))
  484. return soap_closesock(soap);
  485. if (!trt__GetProfilesResponse)
  486. return soap_closesock(soap);
  487. trt__GetProfilesResponse->soap_default(soap);
  488. if (soap_begin_recv(soap)
  489. || soap_envelope_begin_in(soap)
  490. || soap_recv_header(soap)
  491. || soap_body_begin_in(soap))
  492. return soap_closesock(soap);
  493. trt__GetProfilesResponse->soap_get(soap, "trt:GetProfilesResponse", "");
  494. if (soap->error)
  495. return soap_recv_fault(soap, 0);
  496. if (soap_body_end_in(soap)
  497. || soap_envelope_end_in(soap)
  498. || soap_end_recv(soap))
  499. return soap_closesock(soap);
  500. return soap_closesock(soap);
  501. }
  502. int MediaBindingProxy::AddVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__AddVideoEncoderConfiguration *trt__AddVideoEncoderConfiguration, _trt__AddVideoEncoderConfigurationResponse *trt__AddVideoEncoderConfigurationResponse)
  503. { struct soap *soap = this;
  504. struct __trt__AddVideoEncoderConfiguration soap_tmp___trt__AddVideoEncoderConfiguration;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoEncoderConfiguration";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___trt__AddVideoEncoderConfiguration.trt__AddVideoEncoderConfiguration = trt__AddVideoEncoderConfiguration;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration);
  515. if (soap_begin_count(soap))
  516. return soap->error;
  517. if (soap->mode & SOAP_IO_LENGTH)
  518. { if (soap_envelope_begin_out(soap)
  519. || soap_putheader(soap)
  520. || soap_body_begin_out(soap)
  521. || soap_put___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration, "-trt:AddVideoEncoderConfiguration", NULL)
  522. || soap_body_end_out(soap)
  523. || soap_envelope_end_out(soap))
  524. return soap->error;
  525. }
  526. if (soap_end_count(soap))
  527. return soap->error;
  528. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  529. || soap_envelope_begin_out(soap)
  530. || soap_putheader(soap)
  531. || soap_body_begin_out(soap)
  532. || soap_put___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration, "-trt:AddVideoEncoderConfiguration", NULL)
  533. || soap_body_end_out(soap)
  534. || soap_envelope_end_out(soap)
  535. || soap_end_send(soap))
  536. return soap_closesock(soap);
  537. if (!trt__AddVideoEncoderConfigurationResponse)
  538. return soap_closesock(soap);
  539. trt__AddVideoEncoderConfigurationResponse->soap_default(soap);
  540. if (soap_begin_recv(soap)
  541. || soap_envelope_begin_in(soap)
  542. || soap_recv_header(soap)
  543. || soap_body_begin_in(soap))
  544. return soap_closesock(soap);
  545. trt__AddVideoEncoderConfigurationResponse->soap_get(soap, "trt:AddVideoEncoderConfigurationResponse", "");
  546. if (soap->error)
  547. return soap_recv_fault(soap, 0);
  548. if (soap_body_end_in(soap)
  549. || soap_envelope_end_in(soap)
  550. || soap_end_recv(soap))
  551. return soap_closesock(soap);
  552. return soap_closesock(soap);
  553. }
  554. int MediaBindingProxy::AddVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__AddVideoSourceConfiguration *trt__AddVideoSourceConfiguration, _trt__AddVideoSourceConfigurationResponse *trt__AddVideoSourceConfigurationResponse)
  555. { struct soap *soap = this;
  556. struct __trt__AddVideoSourceConfiguration soap_tmp___trt__AddVideoSourceConfiguration;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoSourceConfiguration";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___trt__AddVideoSourceConfiguration.trt__AddVideoSourceConfiguration = trt__AddVideoSourceConfiguration;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration);
  567. if (soap_begin_count(soap))
  568. return soap->error;
  569. if (soap->mode & SOAP_IO_LENGTH)
  570. { if (soap_envelope_begin_out(soap)
  571. || soap_putheader(soap)
  572. || soap_body_begin_out(soap)
  573. || soap_put___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration, "-trt:AddVideoSourceConfiguration", NULL)
  574. || soap_body_end_out(soap)
  575. || soap_envelope_end_out(soap))
  576. return soap->error;
  577. }
  578. if (soap_end_count(soap))
  579. return soap->error;
  580. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  581. || soap_envelope_begin_out(soap)
  582. || soap_putheader(soap)
  583. || soap_body_begin_out(soap)
  584. || soap_put___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration, "-trt:AddVideoSourceConfiguration", NULL)
  585. || soap_body_end_out(soap)
  586. || soap_envelope_end_out(soap)
  587. || soap_end_send(soap))
  588. return soap_closesock(soap);
  589. if (!trt__AddVideoSourceConfigurationResponse)
  590. return soap_closesock(soap);
  591. trt__AddVideoSourceConfigurationResponse->soap_default(soap);
  592. if (soap_begin_recv(soap)
  593. || soap_envelope_begin_in(soap)
  594. || soap_recv_header(soap)
  595. || soap_body_begin_in(soap))
  596. return soap_closesock(soap);
  597. trt__AddVideoSourceConfigurationResponse->soap_get(soap, "trt:AddVideoSourceConfigurationResponse", "");
  598. if (soap->error)
  599. return soap_recv_fault(soap, 0);
  600. if (soap_body_end_in(soap)
  601. || soap_envelope_end_in(soap)
  602. || soap_end_recv(soap))
  603. return soap_closesock(soap);
  604. return soap_closesock(soap);
  605. }
  606. int MediaBindingProxy::AddAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioEncoderConfiguration *trt__AddAudioEncoderConfiguration, _trt__AddAudioEncoderConfigurationResponse *trt__AddAudioEncoderConfigurationResponse)
  607. { struct soap *soap = this;
  608. struct __trt__AddAudioEncoderConfiguration soap_tmp___trt__AddAudioEncoderConfiguration;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioEncoderConfiguration";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___trt__AddAudioEncoderConfiguration.trt__AddAudioEncoderConfiguration = trt__AddAudioEncoderConfiguration;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration);
  619. if (soap_begin_count(soap))
  620. return soap->error;
  621. if (soap->mode & SOAP_IO_LENGTH)
  622. { if (soap_envelope_begin_out(soap)
  623. || soap_putheader(soap)
  624. || soap_body_begin_out(soap)
  625. || soap_put___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration, "-trt:AddAudioEncoderConfiguration", NULL)
  626. || soap_body_end_out(soap)
  627. || soap_envelope_end_out(soap))
  628. return soap->error;
  629. }
  630. if (soap_end_count(soap))
  631. return soap->error;
  632. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  633. || soap_envelope_begin_out(soap)
  634. || soap_putheader(soap)
  635. || soap_body_begin_out(soap)
  636. || soap_put___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration, "-trt:AddAudioEncoderConfiguration", NULL)
  637. || soap_body_end_out(soap)
  638. || soap_envelope_end_out(soap)
  639. || soap_end_send(soap))
  640. return soap_closesock(soap);
  641. if (!trt__AddAudioEncoderConfigurationResponse)
  642. return soap_closesock(soap);
  643. trt__AddAudioEncoderConfigurationResponse->soap_default(soap);
  644. if (soap_begin_recv(soap)
  645. || soap_envelope_begin_in(soap)
  646. || soap_recv_header(soap)
  647. || soap_body_begin_in(soap))
  648. return soap_closesock(soap);
  649. trt__AddAudioEncoderConfigurationResponse->soap_get(soap, "trt:AddAudioEncoderConfigurationResponse", "");
  650. if (soap->error)
  651. return soap_recv_fault(soap, 0);
  652. if (soap_body_end_in(soap)
  653. || soap_envelope_end_in(soap)
  654. || soap_end_recv(soap))
  655. return soap_closesock(soap);
  656. return soap_closesock(soap);
  657. }
  658. int MediaBindingProxy::AddAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioSourceConfiguration *trt__AddAudioSourceConfiguration, _trt__AddAudioSourceConfigurationResponse *trt__AddAudioSourceConfigurationResponse)
  659. { struct soap *soap = this;
  660. struct __trt__AddAudioSourceConfiguration soap_tmp___trt__AddAudioSourceConfiguration;
  661. if (endpoint)
  662. soap_endpoint = endpoint;
  663. if (soap_action == NULL)
  664. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioSourceConfiguration";
  665. soap_begin(soap);
  666. soap->encodingStyle = NULL;
  667. soap_tmp___trt__AddAudioSourceConfiguration.trt__AddAudioSourceConfiguration = trt__AddAudioSourceConfiguration;
  668. soap_set_version(soap, 2); /* SOAP1.2 */
  669. soap_serializeheader(soap);
  670. soap_serialize___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration);
  671. if (soap_begin_count(soap))
  672. return soap->error;
  673. if (soap->mode & SOAP_IO_LENGTH)
  674. { if (soap_envelope_begin_out(soap)
  675. || soap_putheader(soap)
  676. || soap_body_begin_out(soap)
  677. || soap_put___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration, "-trt:AddAudioSourceConfiguration", NULL)
  678. || soap_body_end_out(soap)
  679. || soap_envelope_end_out(soap))
  680. return soap->error;
  681. }
  682. if (soap_end_count(soap))
  683. return soap->error;
  684. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  685. || soap_envelope_begin_out(soap)
  686. || soap_putheader(soap)
  687. || soap_body_begin_out(soap)
  688. || soap_put___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration, "-trt:AddAudioSourceConfiguration", NULL)
  689. || soap_body_end_out(soap)
  690. || soap_envelope_end_out(soap)
  691. || soap_end_send(soap))
  692. return soap_closesock(soap);
  693. if (!trt__AddAudioSourceConfigurationResponse)
  694. return soap_closesock(soap);
  695. trt__AddAudioSourceConfigurationResponse->soap_default(soap);
  696. if (soap_begin_recv(soap)
  697. || soap_envelope_begin_in(soap)
  698. || soap_recv_header(soap)
  699. || soap_body_begin_in(soap))
  700. return soap_closesock(soap);
  701. trt__AddAudioSourceConfigurationResponse->soap_get(soap, "trt:AddAudioSourceConfigurationResponse", "");
  702. if (soap->error)
  703. return soap_recv_fault(soap, 0);
  704. if (soap_body_end_in(soap)
  705. || soap_envelope_end_in(soap)
  706. || soap_end_recv(soap))
  707. return soap_closesock(soap);
  708. return soap_closesock(soap);
  709. }
  710. int MediaBindingProxy::AddPTZConfiguration(const char *endpoint, const char *soap_action, _trt__AddPTZConfiguration *trt__AddPTZConfiguration, _trt__AddPTZConfigurationResponse *trt__AddPTZConfigurationResponse)
  711. { struct soap *soap = this;
  712. struct __trt__AddPTZConfiguration soap_tmp___trt__AddPTZConfiguration;
  713. if (endpoint)
  714. soap_endpoint = endpoint;
  715. if (soap_action == NULL)
  716. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddPTZConfiguration";
  717. soap_begin(soap);
  718. soap->encodingStyle = NULL;
  719. soap_tmp___trt__AddPTZConfiguration.trt__AddPTZConfiguration = trt__AddPTZConfiguration;
  720. soap_set_version(soap, 2); /* SOAP1.2 */
  721. soap_serializeheader(soap);
  722. soap_serialize___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration);
  723. if (soap_begin_count(soap))
  724. return soap->error;
  725. if (soap->mode & SOAP_IO_LENGTH)
  726. { if (soap_envelope_begin_out(soap)
  727. || soap_putheader(soap)
  728. || soap_body_begin_out(soap)
  729. || soap_put___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration, "-trt:AddPTZConfiguration", NULL)
  730. || soap_body_end_out(soap)
  731. || soap_envelope_end_out(soap))
  732. return soap->error;
  733. }
  734. if (soap_end_count(soap))
  735. return soap->error;
  736. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  737. || soap_envelope_begin_out(soap)
  738. || soap_putheader(soap)
  739. || soap_body_begin_out(soap)
  740. || soap_put___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration, "-trt:AddPTZConfiguration", NULL)
  741. || soap_body_end_out(soap)
  742. || soap_envelope_end_out(soap)
  743. || soap_end_send(soap))
  744. return soap_closesock(soap);
  745. if (!trt__AddPTZConfigurationResponse)
  746. return soap_closesock(soap);
  747. trt__AddPTZConfigurationResponse->soap_default(soap);
  748. if (soap_begin_recv(soap)
  749. || soap_envelope_begin_in(soap)
  750. || soap_recv_header(soap)
  751. || soap_body_begin_in(soap))
  752. return soap_closesock(soap);
  753. trt__AddPTZConfigurationResponse->soap_get(soap, "trt:AddPTZConfigurationResponse", "");
  754. if (soap->error)
  755. return soap_recv_fault(soap, 0);
  756. if (soap_body_end_in(soap)
  757. || soap_envelope_end_in(soap)
  758. || soap_end_recv(soap))
  759. return soap_closesock(soap);
  760. return soap_closesock(soap);
  761. }
  762. int MediaBindingProxy::AddVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__AddVideoAnalyticsConfiguration *trt__AddVideoAnalyticsConfiguration, _trt__AddVideoAnalyticsConfigurationResponse *trt__AddVideoAnalyticsConfigurationResponse)
  763. { struct soap *soap = this;
  764. struct __trt__AddVideoAnalyticsConfiguration soap_tmp___trt__AddVideoAnalyticsConfiguration;
  765. if (endpoint)
  766. soap_endpoint = endpoint;
  767. if (soap_action == NULL)
  768. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoAnalyticsConfiguration";
  769. soap_begin(soap);
  770. soap->encodingStyle = NULL;
  771. soap_tmp___trt__AddVideoAnalyticsConfiguration.trt__AddVideoAnalyticsConfiguration = trt__AddVideoAnalyticsConfiguration;
  772. soap_set_version(soap, 2); /* SOAP1.2 */
  773. soap_serializeheader(soap);
  774. soap_serialize___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration);
  775. if (soap_begin_count(soap))
  776. return soap->error;
  777. if (soap->mode & SOAP_IO_LENGTH)
  778. { if (soap_envelope_begin_out(soap)
  779. || soap_putheader(soap)
  780. || soap_body_begin_out(soap)
  781. || soap_put___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration, "-trt:AddVideoAnalyticsConfiguration", NULL)
  782. || soap_body_end_out(soap)
  783. || soap_envelope_end_out(soap))
  784. return soap->error;
  785. }
  786. if (soap_end_count(soap))
  787. return soap->error;
  788. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  789. || soap_envelope_begin_out(soap)
  790. || soap_putheader(soap)
  791. || soap_body_begin_out(soap)
  792. || soap_put___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration, "-trt:AddVideoAnalyticsConfiguration", NULL)
  793. || soap_body_end_out(soap)
  794. || soap_envelope_end_out(soap)
  795. || soap_end_send(soap))
  796. return soap_closesock(soap);
  797. if (!trt__AddVideoAnalyticsConfigurationResponse)
  798. return soap_closesock(soap);
  799. trt__AddVideoAnalyticsConfigurationResponse->soap_default(soap);
  800. if (soap_begin_recv(soap)
  801. || soap_envelope_begin_in(soap)
  802. || soap_recv_header(soap)
  803. || soap_body_begin_in(soap))
  804. return soap_closesock(soap);
  805. trt__AddVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:AddVideoAnalyticsConfigurationResponse", "");
  806. if (soap->error)
  807. return soap_recv_fault(soap, 0);
  808. if (soap_body_end_in(soap)
  809. || soap_envelope_end_in(soap)
  810. || soap_end_recv(soap))
  811. return soap_closesock(soap);
  812. return soap_closesock(soap);
  813. }
  814. int MediaBindingProxy::AddMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__AddMetadataConfiguration *trt__AddMetadataConfiguration, _trt__AddMetadataConfigurationResponse *trt__AddMetadataConfigurationResponse)
  815. { struct soap *soap = this;
  816. struct __trt__AddMetadataConfiguration soap_tmp___trt__AddMetadataConfiguration;
  817. if (endpoint)
  818. soap_endpoint = endpoint;
  819. if (soap_action == NULL)
  820. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddMetadataConfiguration";
  821. soap_begin(soap);
  822. soap->encodingStyle = NULL;
  823. soap_tmp___trt__AddMetadataConfiguration.trt__AddMetadataConfiguration = trt__AddMetadataConfiguration;
  824. soap_set_version(soap, 2); /* SOAP1.2 */
  825. soap_serializeheader(soap);
  826. soap_serialize___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration);
  827. if (soap_begin_count(soap))
  828. return soap->error;
  829. if (soap->mode & SOAP_IO_LENGTH)
  830. { if (soap_envelope_begin_out(soap)
  831. || soap_putheader(soap)
  832. || soap_body_begin_out(soap)
  833. || soap_put___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration, "-trt:AddMetadataConfiguration", NULL)
  834. || soap_body_end_out(soap)
  835. || soap_envelope_end_out(soap))
  836. return soap->error;
  837. }
  838. if (soap_end_count(soap))
  839. return soap->error;
  840. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  841. || soap_envelope_begin_out(soap)
  842. || soap_putheader(soap)
  843. || soap_body_begin_out(soap)
  844. || soap_put___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration, "-trt:AddMetadataConfiguration", NULL)
  845. || soap_body_end_out(soap)
  846. || soap_envelope_end_out(soap)
  847. || soap_end_send(soap))
  848. return soap_closesock(soap);
  849. if (!trt__AddMetadataConfigurationResponse)
  850. return soap_closesock(soap);
  851. trt__AddMetadataConfigurationResponse->soap_default(soap);
  852. if (soap_begin_recv(soap)
  853. || soap_envelope_begin_in(soap)
  854. || soap_recv_header(soap)
  855. || soap_body_begin_in(soap))
  856. return soap_closesock(soap);
  857. trt__AddMetadataConfigurationResponse->soap_get(soap, "trt:AddMetadataConfigurationResponse", "");
  858. if (soap->error)
  859. return soap_recv_fault(soap, 0);
  860. if (soap_body_end_in(soap)
  861. || soap_envelope_end_in(soap)
  862. || soap_end_recv(soap))
  863. return soap_closesock(soap);
  864. return soap_closesock(soap);
  865. }
  866. int MediaBindingProxy::AddAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioOutputConfiguration *trt__AddAudioOutputConfiguration, _trt__AddAudioOutputConfigurationResponse *trt__AddAudioOutputConfigurationResponse)
  867. { struct soap *soap = this;
  868. struct __trt__AddAudioOutputConfiguration soap_tmp___trt__AddAudioOutputConfiguration;
  869. if (endpoint)
  870. soap_endpoint = endpoint;
  871. if (soap_action == NULL)
  872. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioOutputConfiguration";
  873. soap_begin(soap);
  874. soap->encodingStyle = NULL;
  875. soap_tmp___trt__AddAudioOutputConfiguration.trt__AddAudioOutputConfiguration = trt__AddAudioOutputConfiguration;
  876. soap_set_version(soap, 2); /* SOAP1.2 */
  877. soap_serializeheader(soap);
  878. soap_serialize___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration);
  879. if (soap_begin_count(soap))
  880. return soap->error;
  881. if (soap->mode & SOAP_IO_LENGTH)
  882. { if (soap_envelope_begin_out(soap)
  883. || soap_putheader(soap)
  884. || soap_body_begin_out(soap)
  885. || soap_put___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration, "-trt:AddAudioOutputConfiguration", NULL)
  886. || soap_body_end_out(soap)
  887. || soap_envelope_end_out(soap))
  888. return soap->error;
  889. }
  890. if (soap_end_count(soap))
  891. return soap->error;
  892. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  893. || soap_envelope_begin_out(soap)
  894. || soap_putheader(soap)
  895. || soap_body_begin_out(soap)
  896. || soap_put___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration, "-trt:AddAudioOutputConfiguration", NULL)
  897. || soap_body_end_out(soap)
  898. || soap_envelope_end_out(soap)
  899. || soap_end_send(soap))
  900. return soap_closesock(soap);
  901. if (!trt__AddAudioOutputConfigurationResponse)
  902. return soap_closesock(soap);
  903. trt__AddAudioOutputConfigurationResponse->soap_default(soap);
  904. if (soap_begin_recv(soap)
  905. || soap_envelope_begin_in(soap)
  906. || soap_recv_header(soap)
  907. || soap_body_begin_in(soap))
  908. return soap_closesock(soap);
  909. trt__AddAudioOutputConfigurationResponse->soap_get(soap, "trt:AddAudioOutputConfigurationResponse", "");
  910. if (soap->error)
  911. return soap_recv_fault(soap, 0);
  912. if (soap_body_end_in(soap)
  913. || soap_envelope_end_in(soap)
  914. || soap_end_recv(soap))
  915. return soap_closesock(soap);
  916. return soap_closesock(soap);
  917. }
  918. int MediaBindingProxy::AddAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioDecoderConfiguration *trt__AddAudioDecoderConfiguration, _trt__AddAudioDecoderConfigurationResponse *trt__AddAudioDecoderConfigurationResponse)
  919. { struct soap *soap = this;
  920. struct __trt__AddAudioDecoderConfiguration soap_tmp___trt__AddAudioDecoderConfiguration;
  921. if (endpoint)
  922. soap_endpoint = endpoint;
  923. if (soap_action == NULL)
  924. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioDecoderConfiguration";
  925. soap_begin(soap);
  926. soap->encodingStyle = NULL;
  927. soap_tmp___trt__AddAudioDecoderConfiguration.trt__AddAudioDecoderConfiguration = trt__AddAudioDecoderConfiguration;
  928. soap_set_version(soap, 2); /* SOAP1.2 */
  929. soap_serializeheader(soap);
  930. soap_serialize___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration);
  931. if (soap_begin_count(soap))
  932. return soap->error;
  933. if (soap->mode & SOAP_IO_LENGTH)
  934. { if (soap_envelope_begin_out(soap)
  935. || soap_putheader(soap)
  936. || soap_body_begin_out(soap)
  937. || soap_put___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration, "-trt:AddAudioDecoderConfiguration", NULL)
  938. || soap_body_end_out(soap)
  939. || soap_envelope_end_out(soap))
  940. return soap->error;
  941. }
  942. if (soap_end_count(soap))
  943. return soap->error;
  944. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  945. || soap_envelope_begin_out(soap)
  946. || soap_putheader(soap)
  947. || soap_body_begin_out(soap)
  948. || soap_put___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration, "-trt:AddAudioDecoderConfiguration", NULL)
  949. || soap_body_end_out(soap)
  950. || soap_envelope_end_out(soap)
  951. || soap_end_send(soap))
  952. return soap_closesock(soap);
  953. if (!trt__AddAudioDecoderConfigurationResponse)
  954. return soap_closesock(soap);
  955. trt__AddAudioDecoderConfigurationResponse->soap_default(soap);
  956. if (soap_begin_recv(soap)
  957. || soap_envelope_begin_in(soap)
  958. || soap_recv_header(soap)
  959. || soap_body_begin_in(soap))
  960. return soap_closesock(soap);
  961. trt__AddAudioDecoderConfigurationResponse->soap_get(soap, "trt:AddAudioDecoderConfigurationResponse", "");
  962. if (soap->error)
  963. return soap_recv_fault(soap, 0);
  964. if (soap_body_end_in(soap)
  965. || soap_envelope_end_in(soap)
  966. || soap_end_recv(soap))
  967. return soap_closesock(soap);
  968. return soap_closesock(soap);
  969. }
  970. int MediaBindingProxy::RemoveVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveVideoEncoderConfiguration *trt__RemoveVideoEncoderConfiguration, _trt__RemoveVideoEncoderConfigurationResponse *trt__RemoveVideoEncoderConfigurationResponse)
  971. { struct soap *soap = this;
  972. struct __trt__RemoveVideoEncoderConfiguration soap_tmp___trt__RemoveVideoEncoderConfiguration;
  973. if (endpoint)
  974. soap_endpoint = endpoint;
  975. if (soap_action == NULL)
  976. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoEncoderConfiguration";
  977. soap_begin(soap);
  978. soap->encodingStyle = NULL;
  979. soap_tmp___trt__RemoveVideoEncoderConfiguration.trt__RemoveVideoEncoderConfiguration = trt__RemoveVideoEncoderConfiguration;
  980. soap_set_version(soap, 2); /* SOAP1.2 */
  981. soap_serializeheader(soap);
  982. soap_serialize___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration);
  983. if (soap_begin_count(soap))
  984. return soap->error;
  985. if (soap->mode & SOAP_IO_LENGTH)
  986. { if (soap_envelope_begin_out(soap)
  987. || soap_putheader(soap)
  988. || soap_body_begin_out(soap)
  989. || soap_put___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration, "-trt:RemoveVideoEncoderConfiguration", NULL)
  990. || soap_body_end_out(soap)
  991. || soap_envelope_end_out(soap))
  992. return soap->error;
  993. }
  994. if (soap_end_count(soap))
  995. return soap->error;
  996. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  997. || soap_envelope_begin_out(soap)
  998. || soap_putheader(soap)
  999. || soap_body_begin_out(soap)
  1000. || soap_put___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration, "-trt:RemoveVideoEncoderConfiguration", NULL)
  1001. || soap_body_end_out(soap)
  1002. || soap_envelope_end_out(soap)
  1003. || soap_end_send(soap))
  1004. return soap_closesock(soap);
  1005. if (!trt__RemoveVideoEncoderConfigurationResponse)
  1006. return soap_closesock(soap);
  1007. trt__RemoveVideoEncoderConfigurationResponse->soap_default(soap);
  1008. if (soap_begin_recv(soap)
  1009. || soap_envelope_begin_in(soap)
  1010. || soap_recv_header(soap)
  1011. || soap_body_begin_in(soap))
  1012. return soap_closesock(soap);
  1013. trt__RemoveVideoEncoderConfigurationResponse->soap_get(soap, "trt:RemoveVideoEncoderConfigurationResponse", "");
  1014. if (soap->error)
  1015. return soap_recv_fault(soap, 0);
  1016. if (soap_body_end_in(soap)
  1017. || soap_envelope_end_in(soap)
  1018. || soap_end_recv(soap))
  1019. return soap_closesock(soap);
  1020. return soap_closesock(soap);
  1021. }
  1022. int MediaBindingProxy::RemoveVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveVideoSourceConfiguration *trt__RemoveVideoSourceConfiguration, _trt__RemoveVideoSourceConfigurationResponse *trt__RemoveVideoSourceConfigurationResponse)
  1023. { struct soap *soap = this;
  1024. struct __trt__RemoveVideoSourceConfiguration soap_tmp___trt__RemoveVideoSourceConfiguration;
  1025. if (endpoint)
  1026. soap_endpoint = endpoint;
  1027. if (soap_action == NULL)
  1028. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoSourceConfiguration";
  1029. soap_begin(soap);
  1030. soap->encodingStyle = NULL;
  1031. soap_tmp___trt__RemoveVideoSourceConfiguration.trt__RemoveVideoSourceConfiguration = trt__RemoveVideoSourceConfiguration;
  1032. soap_set_version(soap, 2); /* SOAP1.2 */
  1033. soap_serializeheader(soap);
  1034. soap_serialize___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration);
  1035. if (soap_begin_count(soap))
  1036. return soap->error;
  1037. if (soap->mode & SOAP_IO_LENGTH)
  1038. { if (soap_envelope_begin_out(soap)
  1039. || soap_putheader(soap)
  1040. || soap_body_begin_out(soap)
  1041. || soap_put___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration, "-trt:RemoveVideoSourceConfiguration", NULL)
  1042. || soap_body_end_out(soap)
  1043. || soap_envelope_end_out(soap))
  1044. return soap->error;
  1045. }
  1046. if (soap_end_count(soap))
  1047. return soap->error;
  1048. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1049. || soap_envelope_begin_out(soap)
  1050. || soap_putheader(soap)
  1051. || soap_body_begin_out(soap)
  1052. || soap_put___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration, "-trt:RemoveVideoSourceConfiguration", NULL)
  1053. || soap_body_end_out(soap)
  1054. || soap_envelope_end_out(soap)
  1055. || soap_end_send(soap))
  1056. return soap_closesock(soap);
  1057. if (!trt__RemoveVideoSourceConfigurationResponse)
  1058. return soap_closesock(soap);
  1059. trt__RemoveVideoSourceConfigurationResponse->soap_default(soap);
  1060. if (soap_begin_recv(soap)
  1061. || soap_envelope_begin_in(soap)
  1062. || soap_recv_header(soap)
  1063. || soap_body_begin_in(soap))
  1064. return soap_closesock(soap);
  1065. trt__RemoveVideoSourceConfigurationResponse->soap_get(soap, "trt:RemoveVideoSourceConfigurationResponse", "");
  1066. if (soap->error)
  1067. return soap_recv_fault(soap, 0);
  1068. if (soap_body_end_in(soap)
  1069. || soap_envelope_end_in(soap)
  1070. || soap_end_recv(soap))
  1071. return soap_closesock(soap);
  1072. return soap_closesock(soap);
  1073. }
  1074. int MediaBindingProxy::RemoveAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioEncoderConfiguration *trt__RemoveAudioEncoderConfiguration, _trt__RemoveAudioEncoderConfigurationResponse *trt__RemoveAudioEncoderConfigurationResponse)
  1075. { struct soap *soap = this;
  1076. struct __trt__RemoveAudioEncoderConfiguration soap_tmp___trt__RemoveAudioEncoderConfiguration;
  1077. if (endpoint)
  1078. soap_endpoint = endpoint;
  1079. if (soap_action == NULL)
  1080. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioEncoderConfiguration";
  1081. soap_begin(soap);
  1082. soap->encodingStyle = NULL;
  1083. soap_tmp___trt__RemoveAudioEncoderConfiguration.trt__RemoveAudioEncoderConfiguration = trt__RemoveAudioEncoderConfiguration;
  1084. soap_set_version(soap, 2); /* SOAP1.2 */
  1085. soap_serializeheader(soap);
  1086. soap_serialize___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration);
  1087. if (soap_begin_count(soap))
  1088. return soap->error;
  1089. if (soap->mode & SOAP_IO_LENGTH)
  1090. { if (soap_envelope_begin_out(soap)
  1091. || soap_putheader(soap)
  1092. || soap_body_begin_out(soap)
  1093. || soap_put___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration, "-trt:RemoveAudioEncoderConfiguration", NULL)
  1094. || soap_body_end_out(soap)
  1095. || soap_envelope_end_out(soap))
  1096. return soap->error;
  1097. }
  1098. if (soap_end_count(soap))
  1099. return soap->error;
  1100. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1101. || soap_envelope_begin_out(soap)
  1102. || soap_putheader(soap)
  1103. || soap_body_begin_out(soap)
  1104. || soap_put___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration, "-trt:RemoveAudioEncoderConfiguration", NULL)
  1105. || soap_body_end_out(soap)
  1106. || soap_envelope_end_out(soap)
  1107. || soap_end_send(soap))
  1108. return soap_closesock(soap);
  1109. if (!trt__RemoveAudioEncoderConfigurationResponse)
  1110. return soap_closesock(soap);
  1111. trt__RemoveAudioEncoderConfigurationResponse->soap_default(soap);
  1112. if (soap_begin_recv(soap)
  1113. || soap_envelope_begin_in(soap)
  1114. || soap_recv_header(soap)
  1115. || soap_body_begin_in(soap))
  1116. return soap_closesock(soap);
  1117. trt__RemoveAudioEncoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioEncoderConfigurationResponse", "");
  1118. if (soap->error)
  1119. return soap_recv_fault(soap, 0);
  1120. if (soap_body_end_in(soap)
  1121. || soap_envelope_end_in(soap)
  1122. || soap_end_recv(soap))
  1123. return soap_closesock(soap);
  1124. return soap_closesock(soap);
  1125. }
  1126. int MediaBindingProxy::RemoveAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioSourceConfiguration *trt__RemoveAudioSourceConfiguration, _trt__RemoveAudioSourceConfigurationResponse *trt__RemoveAudioSourceConfigurationResponse)
  1127. { struct soap *soap = this;
  1128. struct __trt__RemoveAudioSourceConfiguration soap_tmp___trt__RemoveAudioSourceConfiguration;
  1129. if (endpoint)
  1130. soap_endpoint = endpoint;
  1131. if (soap_action == NULL)
  1132. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioSourceConfiguration";
  1133. soap_begin(soap);
  1134. soap->encodingStyle = NULL;
  1135. soap_tmp___trt__RemoveAudioSourceConfiguration.trt__RemoveAudioSourceConfiguration = trt__RemoveAudioSourceConfiguration;
  1136. soap_set_version(soap, 2); /* SOAP1.2 */
  1137. soap_serializeheader(soap);
  1138. soap_serialize___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration);
  1139. if (soap_begin_count(soap))
  1140. return soap->error;
  1141. if (soap->mode & SOAP_IO_LENGTH)
  1142. { if (soap_envelope_begin_out(soap)
  1143. || soap_putheader(soap)
  1144. || soap_body_begin_out(soap)
  1145. || soap_put___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration, "-trt:RemoveAudioSourceConfiguration", NULL)
  1146. || soap_body_end_out(soap)
  1147. || soap_envelope_end_out(soap))
  1148. return soap->error;
  1149. }
  1150. if (soap_end_count(soap))
  1151. return soap->error;
  1152. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1153. || soap_envelope_begin_out(soap)
  1154. || soap_putheader(soap)
  1155. || soap_body_begin_out(soap)
  1156. || soap_put___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration, "-trt:RemoveAudioSourceConfiguration", NULL)
  1157. || soap_body_end_out(soap)
  1158. || soap_envelope_end_out(soap)
  1159. || soap_end_send(soap))
  1160. return soap_closesock(soap);
  1161. if (!trt__RemoveAudioSourceConfigurationResponse)
  1162. return soap_closesock(soap);
  1163. trt__RemoveAudioSourceConfigurationResponse->soap_default(soap);
  1164. if (soap_begin_recv(soap)
  1165. || soap_envelope_begin_in(soap)
  1166. || soap_recv_header(soap)
  1167. || soap_body_begin_in(soap))
  1168. return soap_closesock(soap);
  1169. trt__RemoveAudioSourceConfigurationResponse->soap_get(soap, "trt:RemoveAudioSourceConfigurationResponse", "");
  1170. if (soap->error)
  1171. return soap_recv_fault(soap, 0);
  1172. if (soap_body_end_in(soap)
  1173. || soap_envelope_end_in(soap)
  1174. || soap_end_recv(soap))
  1175. return soap_closesock(soap);
  1176. return soap_closesock(soap);
  1177. }
  1178. int MediaBindingProxy::RemovePTZConfiguration(const char *endpoint, const char *soap_action, _trt__RemovePTZConfiguration *trt__RemovePTZConfiguration, _trt__RemovePTZConfigurationResponse *trt__RemovePTZConfigurationResponse)
  1179. { struct soap *soap = this;
  1180. struct __trt__RemovePTZConfiguration soap_tmp___trt__RemovePTZConfiguration;
  1181. if (endpoint)
  1182. soap_endpoint = endpoint;
  1183. if (soap_action == NULL)
  1184. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemovePTZConfiguration";
  1185. soap_begin(soap);
  1186. soap->encodingStyle = NULL;
  1187. soap_tmp___trt__RemovePTZConfiguration.trt__RemovePTZConfiguration = trt__RemovePTZConfiguration;
  1188. soap_set_version(soap, 2); /* SOAP1.2 */
  1189. soap_serializeheader(soap);
  1190. soap_serialize___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration);
  1191. if (soap_begin_count(soap))
  1192. return soap->error;
  1193. if (soap->mode & SOAP_IO_LENGTH)
  1194. { if (soap_envelope_begin_out(soap)
  1195. || soap_putheader(soap)
  1196. || soap_body_begin_out(soap)
  1197. || soap_put___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration, "-trt:RemovePTZConfiguration", NULL)
  1198. || soap_body_end_out(soap)
  1199. || soap_envelope_end_out(soap))
  1200. return soap->error;
  1201. }
  1202. if (soap_end_count(soap))
  1203. return soap->error;
  1204. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1205. || soap_envelope_begin_out(soap)
  1206. || soap_putheader(soap)
  1207. || soap_body_begin_out(soap)
  1208. || soap_put___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration, "-trt:RemovePTZConfiguration", NULL)
  1209. || soap_body_end_out(soap)
  1210. || soap_envelope_end_out(soap)
  1211. || soap_end_send(soap))
  1212. return soap_closesock(soap);
  1213. if (!trt__RemovePTZConfigurationResponse)
  1214. return soap_closesock(soap);
  1215. trt__RemovePTZConfigurationResponse->soap_default(soap);
  1216. if (soap_begin_recv(soap)
  1217. || soap_envelope_begin_in(soap)
  1218. || soap_recv_header(soap)
  1219. || soap_body_begin_in(soap))
  1220. return soap_closesock(soap);
  1221. trt__RemovePTZConfigurationResponse->soap_get(soap, "trt:RemovePTZConfigurationResponse", "");
  1222. if (soap->error)
  1223. return soap_recv_fault(soap, 0);
  1224. if (soap_body_end_in(soap)
  1225. || soap_envelope_end_in(soap)
  1226. || soap_end_recv(soap))
  1227. return soap_closesock(soap);
  1228. return soap_closesock(soap);
  1229. }
  1230. int MediaBindingProxy::RemoveVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveVideoAnalyticsConfiguration *trt__RemoveVideoAnalyticsConfiguration, _trt__RemoveVideoAnalyticsConfigurationResponse *trt__RemoveVideoAnalyticsConfigurationResponse)
  1231. { struct soap *soap = this;
  1232. struct __trt__RemoveVideoAnalyticsConfiguration soap_tmp___trt__RemoveVideoAnalyticsConfiguration;
  1233. if (endpoint)
  1234. soap_endpoint = endpoint;
  1235. if (soap_action == NULL)
  1236. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoAnalyticsConfiguration";
  1237. soap_begin(soap);
  1238. soap->encodingStyle = NULL;
  1239. soap_tmp___trt__RemoveVideoAnalyticsConfiguration.trt__RemoveVideoAnalyticsConfiguration = trt__RemoveVideoAnalyticsConfiguration;
  1240. soap_set_version(soap, 2); /* SOAP1.2 */
  1241. soap_serializeheader(soap);
  1242. soap_serialize___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration);
  1243. if (soap_begin_count(soap))
  1244. return soap->error;
  1245. if (soap->mode & SOAP_IO_LENGTH)
  1246. { if (soap_envelope_begin_out(soap)
  1247. || soap_putheader(soap)
  1248. || soap_body_begin_out(soap)
  1249. || soap_put___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration, "-trt:RemoveVideoAnalyticsConfiguration", NULL)
  1250. || soap_body_end_out(soap)
  1251. || soap_envelope_end_out(soap))
  1252. return soap->error;
  1253. }
  1254. if (soap_end_count(soap))
  1255. return soap->error;
  1256. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1257. || soap_envelope_begin_out(soap)
  1258. || soap_putheader(soap)
  1259. || soap_body_begin_out(soap)
  1260. || soap_put___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration, "-trt:RemoveVideoAnalyticsConfiguration", NULL)
  1261. || soap_body_end_out(soap)
  1262. || soap_envelope_end_out(soap)
  1263. || soap_end_send(soap))
  1264. return soap_closesock(soap);
  1265. if (!trt__RemoveVideoAnalyticsConfigurationResponse)
  1266. return soap_closesock(soap);
  1267. trt__RemoveVideoAnalyticsConfigurationResponse->soap_default(soap);
  1268. if (soap_begin_recv(soap)
  1269. || soap_envelope_begin_in(soap)
  1270. || soap_recv_header(soap)
  1271. || soap_body_begin_in(soap))
  1272. return soap_closesock(soap);
  1273. trt__RemoveVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:RemoveVideoAnalyticsConfigurationResponse", "");
  1274. if (soap->error)
  1275. return soap_recv_fault(soap, 0);
  1276. if (soap_body_end_in(soap)
  1277. || soap_envelope_end_in(soap)
  1278. || soap_end_recv(soap))
  1279. return soap_closesock(soap);
  1280. return soap_closesock(soap);
  1281. }
  1282. int MediaBindingProxy::RemoveMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveMetadataConfiguration *trt__RemoveMetadataConfiguration, _trt__RemoveMetadataConfigurationResponse *trt__RemoveMetadataConfigurationResponse)
  1283. { struct soap *soap = this;
  1284. struct __trt__RemoveMetadataConfiguration soap_tmp___trt__RemoveMetadataConfiguration;
  1285. if (endpoint)
  1286. soap_endpoint = endpoint;
  1287. if (soap_action == NULL)
  1288. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveMetadataConfiguration";
  1289. soap_begin(soap);
  1290. soap->encodingStyle = NULL;
  1291. soap_tmp___trt__RemoveMetadataConfiguration.trt__RemoveMetadataConfiguration = trt__RemoveMetadataConfiguration;
  1292. soap_set_version(soap, 2); /* SOAP1.2 */
  1293. soap_serializeheader(soap);
  1294. soap_serialize___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration);
  1295. if (soap_begin_count(soap))
  1296. return soap->error;
  1297. if (soap->mode & SOAP_IO_LENGTH)
  1298. { if (soap_envelope_begin_out(soap)
  1299. || soap_putheader(soap)
  1300. || soap_body_begin_out(soap)
  1301. || soap_put___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration, "-trt:RemoveMetadataConfiguration", NULL)
  1302. || soap_body_end_out(soap)
  1303. || soap_envelope_end_out(soap))
  1304. return soap->error;
  1305. }
  1306. if (soap_end_count(soap))
  1307. return soap->error;
  1308. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1309. || soap_envelope_begin_out(soap)
  1310. || soap_putheader(soap)
  1311. || soap_body_begin_out(soap)
  1312. || soap_put___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration, "-trt:RemoveMetadataConfiguration", NULL)
  1313. || soap_body_end_out(soap)
  1314. || soap_envelope_end_out(soap)
  1315. || soap_end_send(soap))
  1316. return soap_closesock(soap);
  1317. if (!trt__RemoveMetadataConfigurationResponse)
  1318. return soap_closesock(soap);
  1319. trt__RemoveMetadataConfigurationResponse->soap_default(soap);
  1320. if (soap_begin_recv(soap)
  1321. || soap_envelope_begin_in(soap)
  1322. || soap_recv_header(soap)
  1323. || soap_body_begin_in(soap))
  1324. return soap_closesock(soap);
  1325. trt__RemoveMetadataConfigurationResponse->soap_get(soap, "trt:RemoveMetadataConfigurationResponse", "");
  1326. if (soap->error)
  1327. return soap_recv_fault(soap, 0);
  1328. if (soap_body_end_in(soap)
  1329. || soap_envelope_end_in(soap)
  1330. || soap_end_recv(soap))
  1331. return soap_closesock(soap);
  1332. return soap_closesock(soap);
  1333. }
  1334. int MediaBindingProxy::RemoveAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioOutputConfiguration *trt__RemoveAudioOutputConfiguration, _trt__RemoveAudioOutputConfigurationResponse *trt__RemoveAudioOutputConfigurationResponse)
  1335. { struct soap *soap = this;
  1336. struct __trt__RemoveAudioOutputConfiguration soap_tmp___trt__RemoveAudioOutputConfiguration;
  1337. if (endpoint)
  1338. soap_endpoint = endpoint;
  1339. if (soap_action == NULL)
  1340. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioOutputConfiguration";
  1341. soap_begin(soap);
  1342. soap->encodingStyle = NULL;
  1343. soap_tmp___trt__RemoveAudioOutputConfiguration.trt__RemoveAudioOutputConfiguration = trt__RemoveAudioOutputConfiguration;
  1344. soap_set_version(soap, 2); /* SOAP1.2 */
  1345. soap_serializeheader(soap);
  1346. soap_serialize___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration);
  1347. if (soap_begin_count(soap))
  1348. return soap->error;
  1349. if (soap->mode & SOAP_IO_LENGTH)
  1350. { if (soap_envelope_begin_out(soap)
  1351. || soap_putheader(soap)
  1352. || soap_body_begin_out(soap)
  1353. || soap_put___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration, "-trt:RemoveAudioOutputConfiguration", NULL)
  1354. || soap_body_end_out(soap)
  1355. || soap_envelope_end_out(soap))
  1356. return soap->error;
  1357. }
  1358. if (soap_end_count(soap))
  1359. return soap->error;
  1360. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1361. || soap_envelope_begin_out(soap)
  1362. || soap_putheader(soap)
  1363. || soap_body_begin_out(soap)
  1364. || soap_put___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration, "-trt:RemoveAudioOutputConfiguration", NULL)
  1365. || soap_body_end_out(soap)
  1366. || soap_envelope_end_out(soap)
  1367. || soap_end_send(soap))
  1368. return soap_closesock(soap);
  1369. if (!trt__RemoveAudioOutputConfigurationResponse)
  1370. return soap_closesock(soap);
  1371. trt__RemoveAudioOutputConfigurationResponse->soap_default(soap);
  1372. if (soap_begin_recv(soap)
  1373. || soap_envelope_begin_in(soap)
  1374. || soap_recv_header(soap)
  1375. || soap_body_begin_in(soap))
  1376. return soap_closesock(soap);
  1377. trt__RemoveAudioOutputConfigurationResponse->soap_get(soap, "trt:RemoveAudioOutputConfigurationResponse", "");
  1378. if (soap->error)
  1379. return soap_recv_fault(soap, 0);
  1380. if (soap_body_end_in(soap)
  1381. || soap_envelope_end_in(soap)
  1382. || soap_end_recv(soap))
  1383. return soap_closesock(soap);
  1384. return soap_closesock(soap);
  1385. }
  1386. int MediaBindingProxy::RemoveAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioDecoderConfiguration *trt__RemoveAudioDecoderConfiguration, _trt__RemoveAudioDecoderConfigurationResponse *trt__RemoveAudioDecoderConfigurationResponse)
  1387. { struct soap *soap = this;
  1388. struct __trt__RemoveAudioDecoderConfiguration soap_tmp___trt__RemoveAudioDecoderConfiguration;
  1389. if (endpoint)
  1390. soap_endpoint = endpoint;
  1391. if (soap_action == NULL)
  1392. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioDecoderConfiguration";
  1393. soap_begin(soap);
  1394. soap->encodingStyle = NULL;
  1395. soap_tmp___trt__RemoveAudioDecoderConfiguration.trt__RemoveAudioDecoderConfiguration = trt__RemoveAudioDecoderConfiguration;
  1396. soap_set_version(soap, 2); /* SOAP1.2 */
  1397. soap_serializeheader(soap);
  1398. soap_serialize___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration);
  1399. if (soap_begin_count(soap))
  1400. return soap->error;
  1401. if (soap->mode & SOAP_IO_LENGTH)
  1402. { if (soap_envelope_begin_out(soap)
  1403. || soap_putheader(soap)
  1404. || soap_body_begin_out(soap)
  1405. || soap_put___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration, "-trt:RemoveAudioDecoderConfiguration", NULL)
  1406. || soap_body_end_out(soap)
  1407. || soap_envelope_end_out(soap))
  1408. return soap->error;
  1409. }
  1410. if (soap_end_count(soap))
  1411. return soap->error;
  1412. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1413. || soap_envelope_begin_out(soap)
  1414. || soap_putheader(soap)
  1415. || soap_body_begin_out(soap)
  1416. || soap_put___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration, "-trt:RemoveAudioDecoderConfiguration", NULL)
  1417. || soap_body_end_out(soap)
  1418. || soap_envelope_end_out(soap)
  1419. || soap_end_send(soap))
  1420. return soap_closesock(soap);
  1421. if (!trt__RemoveAudioDecoderConfigurationResponse)
  1422. return soap_closesock(soap);
  1423. trt__RemoveAudioDecoderConfigurationResponse->soap_default(soap);
  1424. if (soap_begin_recv(soap)
  1425. || soap_envelope_begin_in(soap)
  1426. || soap_recv_header(soap)
  1427. || soap_body_begin_in(soap))
  1428. return soap_closesock(soap);
  1429. trt__RemoveAudioDecoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioDecoderConfigurationResponse", "");
  1430. if (soap->error)
  1431. return soap_recv_fault(soap, 0);
  1432. if (soap_body_end_in(soap)
  1433. || soap_envelope_end_in(soap)
  1434. || soap_end_recv(soap))
  1435. return soap_closesock(soap);
  1436. return soap_closesock(soap);
  1437. }
  1438. int MediaBindingProxy::DeleteProfile(const char *endpoint, const char *soap_action, _trt__DeleteProfile *trt__DeleteProfile, _trt__DeleteProfileResponse *trt__DeleteProfileResponse)
  1439. { struct soap *soap = this;
  1440. struct __trt__DeleteProfile soap_tmp___trt__DeleteProfile;
  1441. if (endpoint)
  1442. soap_endpoint = endpoint;
  1443. if (soap_action == NULL)
  1444. soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteProfile";
  1445. soap_begin(soap);
  1446. soap->encodingStyle = NULL;
  1447. soap_tmp___trt__DeleteProfile.trt__DeleteProfile = trt__DeleteProfile;
  1448. soap_set_version(soap, 2); /* SOAP1.2 */
  1449. soap_serializeheader(soap);
  1450. soap_serialize___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile);
  1451. if (soap_begin_count(soap))
  1452. return soap->error;
  1453. if (soap->mode & SOAP_IO_LENGTH)
  1454. { if (soap_envelope_begin_out(soap)
  1455. || soap_putheader(soap)
  1456. || soap_body_begin_out(soap)
  1457. || soap_put___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile, "-trt:DeleteProfile", NULL)
  1458. || soap_body_end_out(soap)
  1459. || soap_envelope_end_out(soap))
  1460. return soap->error;
  1461. }
  1462. if (soap_end_count(soap))
  1463. return soap->error;
  1464. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1465. || soap_envelope_begin_out(soap)
  1466. || soap_putheader(soap)
  1467. || soap_body_begin_out(soap)
  1468. || soap_put___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile, "-trt:DeleteProfile", NULL)
  1469. || soap_body_end_out(soap)
  1470. || soap_envelope_end_out(soap)
  1471. || soap_end_send(soap))
  1472. return soap_closesock(soap);
  1473. if (!trt__DeleteProfileResponse)
  1474. return soap_closesock(soap);
  1475. trt__DeleteProfileResponse->soap_default(soap);
  1476. if (soap_begin_recv(soap)
  1477. || soap_envelope_begin_in(soap)
  1478. || soap_recv_header(soap)
  1479. || soap_body_begin_in(soap))
  1480. return soap_closesock(soap);
  1481. trt__DeleteProfileResponse->soap_get(soap, "trt:DeleteProfileResponse", "");
  1482. if (soap->error)
  1483. return soap_recv_fault(soap, 0);
  1484. if (soap_body_end_in(soap)
  1485. || soap_envelope_end_in(soap)
  1486. || soap_end_recv(soap))
  1487. return soap_closesock(soap);
  1488. return soap_closesock(soap);
  1489. }
  1490. int MediaBindingProxy::GetVideoSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurations *trt__GetVideoSourceConfigurations, _trt__GetVideoSourceConfigurationsResponse *trt__GetVideoSourceConfigurationsResponse)
  1491. { struct soap *soap = this;
  1492. struct __trt__GetVideoSourceConfigurations soap_tmp___trt__GetVideoSourceConfigurations;
  1493. if (endpoint)
  1494. soap_endpoint = endpoint;
  1495. if (soap_action == NULL)
  1496. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurations";
  1497. soap_begin(soap);
  1498. soap->encodingStyle = NULL;
  1499. soap_tmp___trt__GetVideoSourceConfigurations.trt__GetVideoSourceConfigurations = trt__GetVideoSourceConfigurations;
  1500. soap_set_version(soap, 2); /* SOAP1.2 */
  1501. soap_serializeheader(soap);
  1502. soap_serialize___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations);
  1503. if (soap_begin_count(soap))
  1504. return soap->error;
  1505. if (soap->mode & SOAP_IO_LENGTH)
  1506. { if (soap_envelope_begin_out(soap)
  1507. || soap_putheader(soap)
  1508. || soap_body_begin_out(soap)
  1509. || soap_put___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations, "-trt:GetVideoSourceConfigurations", NULL)
  1510. || soap_body_end_out(soap)
  1511. || soap_envelope_end_out(soap))
  1512. return soap->error;
  1513. }
  1514. if (soap_end_count(soap))
  1515. return soap->error;
  1516. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1517. || soap_envelope_begin_out(soap)
  1518. || soap_putheader(soap)
  1519. || soap_body_begin_out(soap)
  1520. || soap_put___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations, "-trt:GetVideoSourceConfigurations", NULL)
  1521. || soap_body_end_out(soap)
  1522. || soap_envelope_end_out(soap)
  1523. || soap_end_send(soap))
  1524. return soap_closesock(soap);
  1525. if (!trt__GetVideoSourceConfigurationsResponse)
  1526. return soap_closesock(soap);
  1527. trt__GetVideoSourceConfigurationsResponse->soap_default(soap);
  1528. if (soap_begin_recv(soap)
  1529. || soap_envelope_begin_in(soap)
  1530. || soap_recv_header(soap)
  1531. || soap_body_begin_in(soap))
  1532. return soap_closesock(soap);
  1533. trt__GetVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationsResponse", "");
  1534. if (soap->error)
  1535. return soap_recv_fault(soap, 0);
  1536. if (soap_body_end_in(soap)
  1537. || soap_envelope_end_in(soap)
  1538. || soap_end_recv(soap))
  1539. return soap_closesock(soap);
  1540. return soap_closesock(soap);
  1541. }
  1542. int MediaBindingProxy::GetVideoEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurations *trt__GetVideoEncoderConfigurations, _trt__GetVideoEncoderConfigurationsResponse *trt__GetVideoEncoderConfigurationsResponse)
  1543. { struct soap *soap = this;
  1544. struct __trt__GetVideoEncoderConfigurations soap_tmp___trt__GetVideoEncoderConfigurations;
  1545. if (endpoint)
  1546. soap_endpoint = endpoint;
  1547. if (soap_action == NULL)
  1548. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurations";
  1549. soap_begin(soap);
  1550. soap->encodingStyle = NULL;
  1551. soap_tmp___trt__GetVideoEncoderConfigurations.trt__GetVideoEncoderConfigurations = trt__GetVideoEncoderConfigurations;
  1552. soap_set_version(soap, 2); /* SOAP1.2 */
  1553. soap_serializeheader(soap);
  1554. soap_serialize___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations);
  1555. if (soap_begin_count(soap))
  1556. return soap->error;
  1557. if (soap->mode & SOAP_IO_LENGTH)
  1558. { if (soap_envelope_begin_out(soap)
  1559. || soap_putheader(soap)
  1560. || soap_body_begin_out(soap)
  1561. || soap_put___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations, "-trt:GetVideoEncoderConfigurations", NULL)
  1562. || soap_body_end_out(soap)
  1563. || soap_envelope_end_out(soap))
  1564. return soap->error;
  1565. }
  1566. if (soap_end_count(soap))
  1567. return soap->error;
  1568. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1569. || soap_envelope_begin_out(soap)
  1570. || soap_putheader(soap)
  1571. || soap_body_begin_out(soap)
  1572. || soap_put___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations, "-trt:GetVideoEncoderConfigurations", NULL)
  1573. || soap_body_end_out(soap)
  1574. || soap_envelope_end_out(soap)
  1575. || soap_end_send(soap))
  1576. return soap_closesock(soap);
  1577. if (!trt__GetVideoEncoderConfigurationsResponse)
  1578. return soap_closesock(soap);
  1579. trt__GetVideoEncoderConfigurationsResponse->soap_default(soap);
  1580. if (soap_begin_recv(soap)
  1581. || soap_envelope_begin_in(soap)
  1582. || soap_recv_header(soap)
  1583. || soap_body_begin_in(soap))
  1584. return soap_closesock(soap);
  1585. trt__GetVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationsResponse", "");
  1586. if (soap->error)
  1587. return soap_recv_fault(soap, 0);
  1588. if (soap_body_end_in(soap)
  1589. || soap_envelope_end_in(soap)
  1590. || soap_end_recv(soap))
  1591. return soap_closesock(soap);
  1592. return soap_closesock(soap);
  1593. }
  1594. int MediaBindingProxy::GetAudioSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurations *trt__GetAudioSourceConfigurations, _trt__GetAudioSourceConfigurationsResponse *trt__GetAudioSourceConfigurationsResponse)
  1595. { struct soap *soap = this;
  1596. struct __trt__GetAudioSourceConfigurations soap_tmp___trt__GetAudioSourceConfigurations;
  1597. if (endpoint)
  1598. soap_endpoint = endpoint;
  1599. if (soap_action == NULL)
  1600. soap_action = "http://www.onvif.org/ver10/media/wsdlGetAudioSourceConfigurations/";
  1601. soap_begin(soap);
  1602. soap->encodingStyle = NULL;
  1603. soap_tmp___trt__GetAudioSourceConfigurations.trt__GetAudioSourceConfigurations = trt__GetAudioSourceConfigurations;
  1604. soap_set_version(soap, 2); /* SOAP1.2 */
  1605. soap_serializeheader(soap);
  1606. soap_serialize___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations);
  1607. if (soap_begin_count(soap))
  1608. return soap->error;
  1609. if (soap->mode & SOAP_IO_LENGTH)
  1610. { if (soap_envelope_begin_out(soap)
  1611. || soap_putheader(soap)
  1612. || soap_body_begin_out(soap)
  1613. || soap_put___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations, "-trt:GetAudioSourceConfigurations", NULL)
  1614. || soap_body_end_out(soap)
  1615. || soap_envelope_end_out(soap))
  1616. return soap->error;
  1617. }
  1618. if (soap_end_count(soap))
  1619. return soap->error;
  1620. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1621. || soap_envelope_begin_out(soap)
  1622. || soap_putheader(soap)
  1623. || soap_body_begin_out(soap)
  1624. || soap_put___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations, "-trt:GetAudioSourceConfigurations", NULL)
  1625. || soap_body_end_out(soap)
  1626. || soap_envelope_end_out(soap)
  1627. || soap_end_send(soap))
  1628. return soap_closesock(soap);
  1629. if (!trt__GetAudioSourceConfigurationsResponse)
  1630. return soap_closesock(soap);
  1631. trt__GetAudioSourceConfigurationsResponse->soap_default(soap);
  1632. if (soap_begin_recv(soap)
  1633. || soap_envelope_begin_in(soap)
  1634. || soap_recv_header(soap)
  1635. || soap_body_begin_in(soap))
  1636. return soap_closesock(soap);
  1637. trt__GetAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationsResponse", "");
  1638. if (soap->error)
  1639. return soap_recv_fault(soap, 0);
  1640. if (soap_body_end_in(soap)
  1641. || soap_envelope_end_in(soap)
  1642. || soap_end_recv(soap))
  1643. return soap_closesock(soap);
  1644. return soap_closesock(soap);
  1645. }
  1646. int MediaBindingProxy::GetAudioEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurations *trt__GetAudioEncoderConfigurations, _trt__GetAudioEncoderConfigurationsResponse *trt__GetAudioEncoderConfigurationsResponse)
  1647. { struct soap *soap = this;
  1648. struct __trt__GetAudioEncoderConfigurations soap_tmp___trt__GetAudioEncoderConfigurations;
  1649. if (endpoint)
  1650. soap_endpoint = endpoint;
  1651. if (soap_action == NULL)
  1652. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurations";
  1653. soap_begin(soap);
  1654. soap->encodingStyle = NULL;
  1655. soap_tmp___trt__GetAudioEncoderConfigurations.trt__GetAudioEncoderConfigurations = trt__GetAudioEncoderConfigurations;
  1656. soap_set_version(soap, 2); /* SOAP1.2 */
  1657. soap_serializeheader(soap);
  1658. soap_serialize___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations);
  1659. if (soap_begin_count(soap))
  1660. return soap->error;
  1661. if (soap->mode & SOAP_IO_LENGTH)
  1662. { if (soap_envelope_begin_out(soap)
  1663. || soap_putheader(soap)
  1664. || soap_body_begin_out(soap)
  1665. || soap_put___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations, "-trt:GetAudioEncoderConfigurations", NULL)
  1666. || soap_body_end_out(soap)
  1667. || soap_envelope_end_out(soap))
  1668. return soap->error;
  1669. }
  1670. if (soap_end_count(soap))
  1671. return soap->error;
  1672. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1673. || soap_envelope_begin_out(soap)
  1674. || soap_putheader(soap)
  1675. || soap_body_begin_out(soap)
  1676. || soap_put___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations, "-trt:GetAudioEncoderConfigurations", NULL)
  1677. || soap_body_end_out(soap)
  1678. || soap_envelope_end_out(soap)
  1679. || soap_end_send(soap))
  1680. return soap_closesock(soap);
  1681. if (!trt__GetAudioEncoderConfigurationsResponse)
  1682. return soap_closesock(soap);
  1683. trt__GetAudioEncoderConfigurationsResponse->soap_default(soap);
  1684. if (soap_begin_recv(soap)
  1685. || soap_envelope_begin_in(soap)
  1686. || soap_recv_header(soap)
  1687. || soap_body_begin_in(soap))
  1688. return soap_closesock(soap);
  1689. trt__GetAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationsResponse", "");
  1690. if (soap->error)
  1691. return soap_recv_fault(soap, 0);
  1692. if (soap_body_end_in(soap)
  1693. || soap_envelope_end_in(soap)
  1694. || soap_end_recv(soap))
  1695. return soap_closesock(soap);
  1696. return soap_closesock(soap);
  1697. }
  1698. int MediaBindingProxy::GetVideoAnalyticsConfigurations(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfigurations *trt__GetVideoAnalyticsConfigurations, _trt__GetVideoAnalyticsConfigurationsResponse *trt__GetVideoAnalyticsConfigurationsResponse)
  1699. { struct soap *soap = this;
  1700. struct __trt__GetVideoAnalyticsConfigurations soap_tmp___trt__GetVideoAnalyticsConfigurations;
  1701. if (endpoint)
  1702. soap_endpoint = endpoint;
  1703. if (soap_action == NULL)
  1704. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfigurations";
  1705. soap_begin(soap);
  1706. soap->encodingStyle = NULL;
  1707. soap_tmp___trt__GetVideoAnalyticsConfigurations.trt__GetVideoAnalyticsConfigurations = trt__GetVideoAnalyticsConfigurations;
  1708. soap_set_version(soap, 2); /* SOAP1.2 */
  1709. soap_serializeheader(soap);
  1710. soap_serialize___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations);
  1711. if (soap_begin_count(soap))
  1712. return soap->error;
  1713. if (soap->mode & SOAP_IO_LENGTH)
  1714. { if (soap_envelope_begin_out(soap)
  1715. || soap_putheader(soap)
  1716. || soap_body_begin_out(soap)
  1717. || soap_put___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations, "-trt:GetVideoAnalyticsConfigurations", NULL)
  1718. || soap_body_end_out(soap)
  1719. || soap_envelope_end_out(soap))
  1720. return soap->error;
  1721. }
  1722. if (soap_end_count(soap))
  1723. return soap->error;
  1724. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1725. || soap_envelope_begin_out(soap)
  1726. || soap_putheader(soap)
  1727. || soap_body_begin_out(soap)
  1728. || soap_put___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations, "-trt:GetVideoAnalyticsConfigurations", NULL)
  1729. || soap_body_end_out(soap)
  1730. || soap_envelope_end_out(soap)
  1731. || soap_end_send(soap))
  1732. return soap_closesock(soap);
  1733. if (!trt__GetVideoAnalyticsConfigurationsResponse)
  1734. return soap_closesock(soap);
  1735. trt__GetVideoAnalyticsConfigurationsResponse->soap_default(soap);
  1736. if (soap_begin_recv(soap)
  1737. || soap_envelope_begin_in(soap)
  1738. || soap_recv_header(soap)
  1739. || soap_body_begin_in(soap))
  1740. return soap_closesock(soap);
  1741. trt__GetVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationsResponse", "");
  1742. if (soap->error)
  1743. return soap_recv_fault(soap, 0);
  1744. if (soap_body_end_in(soap)
  1745. || soap_envelope_end_in(soap)
  1746. || soap_end_recv(soap))
  1747. return soap_closesock(soap);
  1748. return soap_closesock(soap);
  1749. }
  1750. int MediaBindingProxy::GetMetadataConfigurations(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurations *trt__GetMetadataConfigurations, _trt__GetMetadataConfigurationsResponse *trt__GetMetadataConfigurationsResponse)
  1751. { struct soap *soap = this;
  1752. struct __trt__GetMetadataConfigurations soap_tmp___trt__GetMetadataConfigurations;
  1753. if (endpoint)
  1754. soap_endpoint = endpoint;
  1755. if (soap_action == NULL)
  1756. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurations";
  1757. soap_begin(soap);
  1758. soap->encodingStyle = NULL;
  1759. soap_tmp___trt__GetMetadataConfigurations.trt__GetMetadataConfigurations = trt__GetMetadataConfigurations;
  1760. soap_set_version(soap, 2); /* SOAP1.2 */
  1761. soap_serializeheader(soap);
  1762. soap_serialize___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations);
  1763. if (soap_begin_count(soap))
  1764. return soap->error;
  1765. if (soap->mode & SOAP_IO_LENGTH)
  1766. { if (soap_envelope_begin_out(soap)
  1767. || soap_putheader(soap)
  1768. || soap_body_begin_out(soap)
  1769. || soap_put___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations, "-trt:GetMetadataConfigurations", NULL)
  1770. || soap_body_end_out(soap)
  1771. || soap_envelope_end_out(soap))
  1772. return soap->error;
  1773. }
  1774. if (soap_end_count(soap))
  1775. return soap->error;
  1776. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1777. || soap_envelope_begin_out(soap)
  1778. || soap_putheader(soap)
  1779. || soap_body_begin_out(soap)
  1780. || soap_put___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations, "-trt:GetMetadataConfigurations", NULL)
  1781. || soap_body_end_out(soap)
  1782. || soap_envelope_end_out(soap)
  1783. || soap_end_send(soap))
  1784. return soap_closesock(soap);
  1785. if (!trt__GetMetadataConfigurationsResponse)
  1786. return soap_closesock(soap);
  1787. trt__GetMetadataConfigurationsResponse->soap_default(soap);
  1788. if (soap_begin_recv(soap)
  1789. || soap_envelope_begin_in(soap)
  1790. || soap_recv_header(soap)
  1791. || soap_body_begin_in(soap))
  1792. return soap_closesock(soap);
  1793. trt__GetMetadataConfigurationsResponse->soap_get(soap, "trt:GetMetadataConfigurationsResponse", "");
  1794. if (soap->error)
  1795. return soap_recv_fault(soap, 0);
  1796. if (soap_body_end_in(soap)
  1797. || soap_envelope_end_in(soap)
  1798. || soap_end_recv(soap))
  1799. return soap_closesock(soap);
  1800. return soap_closesock(soap);
  1801. }
  1802. int MediaBindingProxy::GetAudioOutputConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurations *trt__GetAudioOutputConfigurations, _trt__GetAudioOutputConfigurationsResponse *trt__GetAudioOutputConfigurationsResponse)
  1803. { struct soap *soap = this;
  1804. struct __trt__GetAudioOutputConfigurations soap_tmp___trt__GetAudioOutputConfigurations;
  1805. if (endpoint)
  1806. soap_endpoint = endpoint;
  1807. if (soap_action == NULL)
  1808. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurations";
  1809. soap_begin(soap);
  1810. soap->encodingStyle = NULL;
  1811. soap_tmp___trt__GetAudioOutputConfigurations.trt__GetAudioOutputConfigurations = trt__GetAudioOutputConfigurations;
  1812. soap_set_version(soap, 2); /* SOAP1.2 */
  1813. soap_serializeheader(soap);
  1814. soap_serialize___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations);
  1815. if (soap_begin_count(soap))
  1816. return soap->error;
  1817. if (soap->mode & SOAP_IO_LENGTH)
  1818. { if (soap_envelope_begin_out(soap)
  1819. || soap_putheader(soap)
  1820. || soap_body_begin_out(soap)
  1821. || soap_put___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations, "-trt:GetAudioOutputConfigurations", NULL)
  1822. || soap_body_end_out(soap)
  1823. || soap_envelope_end_out(soap))
  1824. return soap->error;
  1825. }
  1826. if (soap_end_count(soap))
  1827. return soap->error;
  1828. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1829. || soap_envelope_begin_out(soap)
  1830. || soap_putheader(soap)
  1831. || soap_body_begin_out(soap)
  1832. || soap_put___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations, "-trt:GetAudioOutputConfigurations", NULL)
  1833. || soap_body_end_out(soap)
  1834. || soap_envelope_end_out(soap)
  1835. || soap_end_send(soap))
  1836. return soap_closesock(soap);
  1837. if (!trt__GetAudioOutputConfigurationsResponse)
  1838. return soap_closesock(soap);
  1839. trt__GetAudioOutputConfigurationsResponse->soap_default(soap);
  1840. if (soap_begin_recv(soap)
  1841. || soap_envelope_begin_in(soap)
  1842. || soap_recv_header(soap)
  1843. || soap_body_begin_in(soap))
  1844. return soap_closesock(soap);
  1845. trt__GetAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationsResponse", "");
  1846. if (soap->error)
  1847. return soap_recv_fault(soap, 0);
  1848. if (soap_body_end_in(soap)
  1849. || soap_envelope_end_in(soap)
  1850. || soap_end_recv(soap))
  1851. return soap_closesock(soap);
  1852. return soap_closesock(soap);
  1853. }
  1854. int MediaBindingProxy::GetAudioDecoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurations *trt__GetAudioDecoderConfigurations, _trt__GetAudioDecoderConfigurationsResponse *trt__GetAudioDecoderConfigurationsResponse)
  1855. { struct soap *soap = this;
  1856. struct __trt__GetAudioDecoderConfigurations soap_tmp___trt__GetAudioDecoderConfigurations;
  1857. if (endpoint)
  1858. soap_endpoint = endpoint;
  1859. if (soap_action == NULL)
  1860. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurations";
  1861. soap_begin(soap);
  1862. soap->encodingStyle = NULL;
  1863. soap_tmp___trt__GetAudioDecoderConfigurations.trt__GetAudioDecoderConfigurations = trt__GetAudioDecoderConfigurations;
  1864. soap_set_version(soap, 2); /* SOAP1.2 */
  1865. soap_serializeheader(soap);
  1866. soap_serialize___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations);
  1867. if (soap_begin_count(soap))
  1868. return soap->error;
  1869. if (soap->mode & SOAP_IO_LENGTH)
  1870. { if (soap_envelope_begin_out(soap)
  1871. || soap_putheader(soap)
  1872. || soap_body_begin_out(soap)
  1873. || soap_put___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations, "-trt:GetAudioDecoderConfigurations", NULL)
  1874. || soap_body_end_out(soap)
  1875. || soap_envelope_end_out(soap))
  1876. return soap->error;
  1877. }
  1878. if (soap_end_count(soap))
  1879. return soap->error;
  1880. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1881. || soap_envelope_begin_out(soap)
  1882. || soap_putheader(soap)
  1883. || soap_body_begin_out(soap)
  1884. || soap_put___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations, "-trt:GetAudioDecoderConfigurations", NULL)
  1885. || soap_body_end_out(soap)
  1886. || soap_envelope_end_out(soap)
  1887. || soap_end_send(soap))
  1888. return soap_closesock(soap);
  1889. if (!trt__GetAudioDecoderConfigurationsResponse)
  1890. return soap_closesock(soap);
  1891. trt__GetAudioDecoderConfigurationsResponse->soap_default(soap);
  1892. if (soap_begin_recv(soap)
  1893. || soap_envelope_begin_in(soap)
  1894. || soap_recv_header(soap)
  1895. || soap_body_begin_in(soap))
  1896. return soap_closesock(soap);
  1897. trt__GetAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationsResponse", "");
  1898. if (soap->error)
  1899. return soap_recv_fault(soap, 0);
  1900. if (soap_body_end_in(soap)
  1901. || soap_envelope_end_in(soap)
  1902. || soap_end_recv(soap))
  1903. return soap_closesock(soap);
  1904. return soap_closesock(soap);
  1905. }
  1906. int MediaBindingProxy::GetVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfiguration *trt__GetVideoSourceConfiguration, _trt__GetVideoSourceConfigurationResponse *trt__GetVideoSourceConfigurationResponse)
  1907. { struct soap *soap = this;
  1908. struct __trt__GetVideoSourceConfiguration soap_tmp___trt__GetVideoSourceConfiguration;
  1909. if (endpoint)
  1910. soap_endpoint = endpoint;
  1911. if (soap_action == NULL)
  1912. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfiguration";
  1913. soap_begin(soap);
  1914. soap->encodingStyle = NULL;
  1915. soap_tmp___trt__GetVideoSourceConfiguration.trt__GetVideoSourceConfiguration = trt__GetVideoSourceConfiguration;
  1916. soap_set_version(soap, 2); /* SOAP1.2 */
  1917. soap_serializeheader(soap);
  1918. soap_serialize___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration);
  1919. if (soap_begin_count(soap))
  1920. return soap->error;
  1921. if (soap->mode & SOAP_IO_LENGTH)
  1922. { if (soap_envelope_begin_out(soap)
  1923. || soap_putheader(soap)
  1924. || soap_body_begin_out(soap)
  1925. || soap_put___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration, "-trt:GetVideoSourceConfiguration", NULL)
  1926. || soap_body_end_out(soap)
  1927. || soap_envelope_end_out(soap))
  1928. return soap->error;
  1929. }
  1930. if (soap_end_count(soap))
  1931. return soap->error;
  1932. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1933. || soap_envelope_begin_out(soap)
  1934. || soap_putheader(soap)
  1935. || soap_body_begin_out(soap)
  1936. || soap_put___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration, "-trt:GetVideoSourceConfiguration", NULL)
  1937. || soap_body_end_out(soap)
  1938. || soap_envelope_end_out(soap)
  1939. || soap_end_send(soap))
  1940. return soap_closesock(soap);
  1941. if (!trt__GetVideoSourceConfigurationResponse)
  1942. return soap_closesock(soap);
  1943. trt__GetVideoSourceConfigurationResponse->soap_default(soap);
  1944. if (soap_begin_recv(soap)
  1945. || soap_envelope_begin_in(soap)
  1946. || soap_recv_header(soap)
  1947. || soap_body_begin_in(soap))
  1948. return soap_closesock(soap);
  1949. trt__GetVideoSourceConfigurationResponse->soap_get(soap, "trt:GetVideoSourceConfigurationResponse", "");
  1950. if (soap->error)
  1951. return soap_recv_fault(soap, 0);
  1952. if (soap_body_end_in(soap)
  1953. || soap_envelope_end_in(soap)
  1954. || soap_end_recv(soap))
  1955. return soap_closesock(soap);
  1956. return soap_closesock(soap);
  1957. }
  1958. int MediaBindingProxy::GetVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfiguration *trt__GetVideoEncoderConfiguration, _trt__GetVideoEncoderConfigurationResponse *trt__GetVideoEncoderConfigurationResponse)
  1959. { struct soap *soap = this;
  1960. struct __trt__GetVideoEncoderConfiguration soap_tmp___trt__GetVideoEncoderConfiguration;
  1961. if (endpoint)
  1962. soap_endpoint = endpoint;
  1963. if (soap_action == NULL)
  1964. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfiguration";
  1965. soap_begin(soap);
  1966. soap->encodingStyle = NULL;
  1967. soap_tmp___trt__GetVideoEncoderConfiguration.trt__GetVideoEncoderConfiguration = trt__GetVideoEncoderConfiguration;
  1968. soap_set_version(soap, 2); /* SOAP1.2 */
  1969. soap_serializeheader(soap);
  1970. soap_serialize___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration);
  1971. if (soap_begin_count(soap))
  1972. return soap->error;
  1973. if (soap->mode & SOAP_IO_LENGTH)
  1974. { if (soap_envelope_begin_out(soap)
  1975. || soap_putheader(soap)
  1976. || soap_body_begin_out(soap)
  1977. || soap_put___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration, "-trt:GetVideoEncoderConfiguration", NULL)
  1978. || soap_body_end_out(soap)
  1979. || soap_envelope_end_out(soap))
  1980. return soap->error;
  1981. }
  1982. if (soap_end_count(soap))
  1983. return soap->error;
  1984. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1985. || soap_envelope_begin_out(soap)
  1986. || soap_putheader(soap)
  1987. || soap_body_begin_out(soap)
  1988. || soap_put___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration, "-trt:GetVideoEncoderConfiguration", NULL)
  1989. || soap_body_end_out(soap)
  1990. || soap_envelope_end_out(soap)
  1991. || soap_end_send(soap))
  1992. return soap_closesock(soap);
  1993. if (!trt__GetVideoEncoderConfigurationResponse)
  1994. return soap_closesock(soap);
  1995. trt__GetVideoEncoderConfigurationResponse->soap_default(soap);
  1996. if (soap_begin_recv(soap)
  1997. || soap_envelope_begin_in(soap)
  1998. || soap_recv_header(soap)
  1999. || soap_body_begin_in(soap))
  2000. return soap_closesock(soap);
  2001. trt__GetVideoEncoderConfigurationResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationResponse", "");
  2002. if (soap->error)
  2003. return soap_recv_fault(soap, 0);
  2004. if (soap_body_end_in(soap)
  2005. || soap_envelope_end_in(soap)
  2006. || soap_end_recv(soap))
  2007. return soap_closesock(soap);
  2008. return soap_closesock(soap);
  2009. }
  2010. int MediaBindingProxy::GetAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfiguration *trt__GetAudioSourceConfiguration, _trt__GetAudioSourceConfigurationResponse *trt__GetAudioSourceConfigurationResponse)
  2011. { struct soap *soap = this;
  2012. struct __trt__GetAudioSourceConfiguration soap_tmp___trt__GetAudioSourceConfiguration;
  2013. if (endpoint)
  2014. soap_endpoint = endpoint;
  2015. if (soap_action == NULL)
  2016. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfiguration";
  2017. soap_begin(soap);
  2018. soap->encodingStyle = NULL;
  2019. soap_tmp___trt__GetAudioSourceConfiguration.trt__GetAudioSourceConfiguration = trt__GetAudioSourceConfiguration;
  2020. soap_set_version(soap, 2); /* SOAP1.2 */
  2021. soap_serializeheader(soap);
  2022. soap_serialize___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration);
  2023. if (soap_begin_count(soap))
  2024. return soap->error;
  2025. if (soap->mode & SOAP_IO_LENGTH)
  2026. { if (soap_envelope_begin_out(soap)
  2027. || soap_putheader(soap)
  2028. || soap_body_begin_out(soap)
  2029. || soap_put___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration, "-trt:GetAudioSourceConfiguration", NULL)
  2030. || soap_body_end_out(soap)
  2031. || soap_envelope_end_out(soap))
  2032. return soap->error;
  2033. }
  2034. if (soap_end_count(soap))
  2035. return soap->error;
  2036. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2037. || soap_envelope_begin_out(soap)
  2038. || soap_putheader(soap)
  2039. || soap_body_begin_out(soap)
  2040. || soap_put___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration, "-trt:GetAudioSourceConfiguration", NULL)
  2041. || soap_body_end_out(soap)
  2042. || soap_envelope_end_out(soap)
  2043. || soap_end_send(soap))
  2044. return soap_closesock(soap);
  2045. if (!trt__GetAudioSourceConfigurationResponse)
  2046. return soap_closesock(soap);
  2047. trt__GetAudioSourceConfigurationResponse->soap_default(soap);
  2048. if (soap_begin_recv(soap)
  2049. || soap_envelope_begin_in(soap)
  2050. || soap_recv_header(soap)
  2051. || soap_body_begin_in(soap))
  2052. return soap_closesock(soap);
  2053. trt__GetAudioSourceConfigurationResponse->soap_get(soap, "trt:GetAudioSourceConfigurationResponse", "");
  2054. if (soap->error)
  2055. return soap_recv_fault(soap, 0);
  2056. if (soap_body_end_in(soap)
  2057. || soap_envelope_end_in(soap)
  2058. || soap_end_recv(soap))
  2059. return soap_closesock(soap);
  2060. return soap_closesock(soap);
  2061. }
  2062. int MediaBindingProxy::GetAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfiguration *trt__GetAudioEncoderConfiguration, _trt__GetAudioEncoderConfigurationResponse *trt__GetAudioEncoderConfigurationResponse)
  2063. { struct soap *soap = this;
  2064. struct __trt__GetAudioEncoderConfiguration soap_tmp___trt__GetAudioEncoderConfiguration;
  2065. if (endpoint)
  2066. soap_endpoint = endpoint;
  2067. if (soap_action == NULL)
  2068. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfiguration";
  2069. soap_begin(soap);
  2070. soap->encodingStyle = NULL;
  2071. soap_tmp___trt__GetAudioEncoderConfiguration.trt__GetAudioEncoderConfiguration = trt__GetAudioEncoderConfiguration;
  2072. soap_set_version(soap, 2); /* SOAP1.2 */
  2073. soap_serializeheader(soap);
  2074. soap_serialize___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration);
  2075. if (soap_begin_count(soap))
  2076. return soap->error;
  2077. if (soap->mode & SOAP_IO_LENGTH)
  2078. { if (soap_envelope_begin_out(soap)
  2079. || soap_putheader(soap)
  2080. || soap_body_begin_out(soap)
  2081. || soap_put___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration, "-trt:GetAudioEncoderConfiguration", NULL)
  2082. || soap_body_end_out(soap)
  2083. || soap_envelope_end_out(soap))
  2084. return soap->error;
  2085. }
  2086. if (soap_end_count(soap))
  2087. return soap->error;
  2088. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2089. || soap_envelope_begin_out(soap)
  2090. || soap_putheader(soap)
  2091. || soap_body_begin_out(soap)
  2092. || soap_put___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration, "-trt:GetAudioEncoderConfiguration", NULL)
  2093. || soap_body_end_out(soap)
  2094. || soap_envelope_end_out(soap)
  2095. || soap_end_send(soap))
  2096. return soap_closesock(soap);
  2097. if (!trt__GetAudioEncoderConfigurationResponse)
  2098. return soap_closesock(soap);
  2099. trt__GetAudioEncoderConfigurationResponse->soap_default(soap);
  2100. if (soap_begin_recv(soap)
  2101. || soap_envelope_begin_in(soap)
  2102. || soap_recv_header(soap)
  2103. || soap_body_begin_in(soap))
  2104. return soap_closesock(soap);
  2105. trt__GetAudioEncoderConfigurationResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationResponse", "");
  2106. if (soap->error)
  2107. return soap_recv_fault(soap, 0);
  2108. if (soap_body_end_in(soap)
  2109. || soap_envelope_end_in(soap)
  2110. || soap_end_recv(soap))
  2111. return soap_closesock(soap);
  2112. return soap_closesock(soap);
  2113. }
  2114. int MediaBindingProxy::GetVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfiguration *trt__GetVideoAnalyticsConfiguration, _trt__GetVideoAnalyticsConfigurationResponse *trt__GetVideoAnalyticsConfigurationResponse)
  2115. { struct soap *soap = this;
  2116. struct __trt__GetVideoAnalyticsConfiguration soap_tmp___trt__GetVideoAnalyticsConfiguration;
  2117. if (endpoint)
  2118. soap_endpoint = endpoint;
  2119. if (soap_action == NULL)
  2120. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfiguration";
  2121. soap_begin(soap);
  2122. soap->encodingStyle = NULL;
  2123. soap_tmp___trt__GetVideoAnalyticsConfiguration.trt__GetVideoAnalyticsConfiguration = trt__GetVideoAnalyticsConfiguration;
  2124. soap_set_version(soap, 2); /* SOAP1.2 */
  2125. soap_serializeheader(soap);
  2126. soap_serialize___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration);
  2127. if (soap_begin_count(soap))
  2128. return soap->error;
  2129. if (soap->mode & SOAP_IO_LENGTH)
  2130. { if (soap_envelope_begin_out(soap)
  2131. || soap_putheader(soap)
  2132. || soap_body_begin_out(soap)
  2133. || soap_put___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration, "-trt:GetVideoAnalyticsConfiguration", NULL)
  2134. || soap_body_end_out(soap)
  2135. || soap_envelope_end_out(soap))
  2136. return soap->error;
  2137. }
  2138. if (soap_end_count(soap))
  2139. return soap->error;
  2140. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2141. || soap_envelope_begin_out(soap)
  2142. || soap_putheader(soap)
  2143. || soap_body_begin_out(soap)
  2144. || soap_put___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration, "-trt:GetVideoAnalyticsConfiguration", NULL)
  2145. || soap_body_end_out(soap)
  2146. || soap_envelope_end_out(soap)
  2147. || soap_end_send(soap))
  2148. return soap_closesock(soap);
  2149. if (!trt__GetVideoAnalyticsConfigurationResponse)
  2150. return soap_closesock(soap);
  2151. trt__GetVideoAnalyticsConfigurationResponse->soap_default(soap);
  2152. if (soap_begin_recv(soap)
  2153. || soap_envelope_begin_in(soap)
  2154. || soap_recv_header(soap)
  2155. || soap_body_begin_in(soap))
  2156. return soap_closesock(soap);
  2157. trt__GetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationResponse", "");
  2158. if (soap->error)
  2159. return soap_recv_fault(soap, 0);
  2160. if (soap_body_end_in(soap)
  2161. || soap_envelope_end_in(soap)
  2162. || soap_end_recv(soap))
  2163. return soap_closesock(soap);
  2164. return soap_closesock(soap);
  2165. }
  2166. int MediaBindingProxy::GetMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__GetMetadataConfiguration *trt__GetMetadataConfiguration, _trt__GetMetadataConfigurationResponse *trt__GetMetadataConfigurationResponse)
  2167. { struct soap *soap = this;
  2168. struct __trt__GetMetadataConfiguration soap_tmp___trt__GetMetadataConfiguration;
  2169. if (endpoint)
  2170. soap_endpoint = endpoint;
  2171. if (soap_action == NULL)
  2172. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfiguration";
  2173. soap_begin(soap);
  2174. soap->encodingStyle = NULL;
  2175. soap_tmp___trt__GetMetadataConfiguration.trt__GetMetadataConfiguration = trt__GetMetadataConfiguration;
  2176. soap_set_version(soap, 2); /* SOAP1.2 */
  2177. soap_serializeheader(soap);
  2178. soap_serialize___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration);
  2179. if (soap_begin_count(soap))
  2180. return soap->error;
  2181. if (soap->mode & SOAP_IO_LENGTH)
  2182. { if (soap_envelope_begin_out(soap)
  2183. || soap_putheader(soap)
  2184. || soap_body_begin_out(soap)
  2185. || soap_put___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration, "-trt:GetMetadataConfiguration", NULL)
  2186. || soap_body_end_out(soap)
  2187. || soap_envelope_end_out(soap))
  2188. return soap->error;
  2189. }
  2190. if (soap_end_count(soap))
  2191. return soap->error;
  2192. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2193. || soap_envelope_begin_out(soap)
  2194. || soap_putheader(soap)
  2195. || soap_body_begin_out(soap)
  2196. || soap_put___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration, "-trt:GetMetadataConfiguration", NULL)
  2197. || soap_body_end_out(soap)
  2198. || soap_envelope_end_out(soap)
  2199. || soap_end_send(soap))
  2200. return soap_closesock(soap);
  2201. if (!trt__GetMetadataConfigurationResponse)
  2202. return soap_closesock(soap);
  2203. trt__GetMetadataConfigurationResponse->soap_default(soap);
  2204. if (soap_begin_recv(soap)
  2205. || soap_envelope_begin_in(soap)
  2206. || soap_recv_header(soap)
  2207. || soap_body_begin_in(soap))
  2208. return soap_closesock(soap);
  2209. trt__GetMetadataConfigurationResponse->soap_get(soap, "trt:GetMetadataConfigurationResponse", "");
  2210. if (soap->error)
  2211. return soap_recv_fault(soap, 0);
  2212. if (soap_body_end_in(soap)
  2213. || soap_envelope_end_in(soap)
  2214. || soap_end_recv(soap))
  2215. return soap_closesock(soap);
  2216. return soap_closesock(soap);
  2217. }
  2218. int MediaBindingProxy::GetAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfiguration *trt__GetAudioOutputConfiguration, _trt__GetAudioOutputConfigurationResponse *trt__GetAudioOutputConfigurationResponse)
  2219. { struct soap *soap = this;
  2220. struct __trt__GetAudioOutputConfiguration soap_tmp___trt__GetAudioOutputConfiguration;
  2221. if (endpoint)
  2222. soap_endpoint = endpoint;
  2223. if (soap_action == NULL)
  2224. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfiguration";
  2225. soap_begin(soap);
  2226. soap->encodingStyle = NULL;
  2227. soap_tmp___trt__GetAudioOutputConfiguration.trt__GetAudioOutputConfiguration = trt__GetAudioOutputConfiguration;
  2228. soap_set_version(soap, 2); /* SOAP1.2 */
  2229. soap_serializeheader(soap);
  2230. soap_serialize___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration);
  2231. if (soap_begin_count(soap))
  2232. return soap->error;
  2233. if (soap->mode & SOAP_IO_LENGTH)
  2234. { if (soap_envelope_begin_out(soap)
  2235. || soap_putheader(soap)
  2236. || soap_body_begin_out(soap)
  2237. || soap_put___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration, "-trt:GetAudioOutputConfiguration", NULL)
  2238. || soap_body_end_out(soap)
  2239. || soap_envelope_end_out(soap))
  2240. return soap->error;
  2241. }
  2242. if (soap_end_count(soap))
  2243. return soap->error;
  2244. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2245. || soap_envelope_begin_out(soap)
  2246. || soap_putheader(soap)
  2247. || soap_body_begin_out(soap)
  2248. || soap_put___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration, "-trt:GetAudioOutputConfiguration", NULL)
  2249. || soap_body_end_out(soap)
  2250. || soap_envelope_end_out(soap)
  2251. || soap_end_send(soap))
  2252. return soap_closesock(soap);
  2253. if (!trt__GetAudioOutputConfigurationResponse)
  2254. return soap_closesock(soap);
  2255. trt__GetAudioOutputConfigurationResponse->soap_default(soap);
  2256. if (soap_begin_recv(soap)
  2257. || soap_envelope_begin_in(soap)
  2258. || soap_recv_header(soap)
  2259. || soap_body_begin_in(soap))
  2260. return soap_closesock(soap);
  2261. trt__GetAudioOutputConfigurationResponse->soap_get(soap, "trt:GetAudioOutputConfigurationResponse", "");
  2262. if (soap->error)
  2263. return soap_recv_fault(soap, 0);
  2264. if (soap_body_end_in(soap)
  2265. || soap_envelope_end_in(soap)
  2266. || soap_end_recv(soap))
  2267. return soap_closesock(soap);
  2268. return soap_closesock(soap);
  2269. }
  2270. int MediaBindingProxy::GetAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfiguration *trt__GetAudioDecoderConfiguration, _trt__GetAudioDecoderConfigurationResponse *trt__GetAudioDecoderConfigurationResponse)
  2271. { struct soap *soap = this;
  2272. struct __trt__GetAudioDecoderConfiguration soap_tmp___trt__GetAudioDecoderConfiguration;
  2273. if (endpoint)
  2274. soap_endpoint = endpoint;
  2275. if (soap_action == NULL)
  2276. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfiguration";
  2277. soap_begin(soap);
  2278. soap->encodingStyle = NULL;
  2279. soap_tmp___trt__GetAudioDecoderConfiguration.trt__GetAudioDecoderConfiguration = trt__GetAudioDecoderConfiguration;
  2280. soap_set_version(soap, 2); /* SOAP1.2 */
  2281. soap_serializeheader(soap);
  2282. soap_serialize___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration);
  2283. if (soap_begin_count(soap))
  2284. return soap->error;
  2285. if (soap->mode & SOAP_IO_LENGTH)
  2286. { if (soap_envelope_begin_out(soap)
  2287. || soap_putheader(soap)
  2288. || soap_body_begin_out(soap)
  2289. || soap_put___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration, "-trt:GetAudioDecoderConfiguration", NULL)
  2290. || soap_body_end_out(soap)
  2291. || soap_envelope_end_out(soap))
  2292. return soap->error;
  2293. }
  2294. if (soap_end_count(soap))
  2295. return soap->error;
  2296. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2297. || soap_envelope_begin_out(soap)
  2298. || soap_putheader(soap)
  2299. || soap_body_begin_out(soap)
  2300. || soap_put___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration, "-trt:GetAudioDecoderConfiguration", NULL)
  2301. || soap_body_end_out(soap)
  2302. || soap_envelope_end_out(soap)
  2303. || soap_end_send(soap))
  2304. return soap_closesock(soap);
  2305. if (!trt__GetAudioDecoderConfigurationResponse)
  2306. return soap_closesock(soap);
  2307. trt__GetAudioDecoderConfigurationResponse->soap_default(soap);
  2308. if (soap_begin_recv(soap)
  2309. || soap_envelope_begin_in(soap)
  2310. || soap_recv_header(soap)
  2311. || soap_body_begin_in(soap))
  2312. return soap_closesock(soap);
  2313. trt__GetAudioDecoderConfigurationResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationResponse", "");
  2314. if (soap->error)
  2315. return soap_recv_fault(soap, 0);
  2316. if (soap_body_end_in(soap)
  2317. || soap_envelope_end_in(soap)
  2318. || soap_end_recv(soap))
  2319. return soap_closesock(soap);
  2320. return soap_closesock(soap);
  2321. }
  2322. int MediaBindingProxy::GetCompatibleVideoEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoEncoderConfigurations *trt__GetCompatibleVideoEncoderConfigurations, _trt__GetCompatibleVideoEncoderConfigurationsResponse *trt__GetCompatibleVideoEncoderConfigurationsResponse)
  2323. { struct soap *soap = this;
  2324. struct __trt__GetCompatibleVideoEncoderConfigurations soap_tmp___trt__GetCompatibleVideoEncoderConfigurations;
  2325. if (endpoint)
  2326. soap_endpoint = endpoint;
  2327. if (soap_action == NULL)
  2328. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoEncoderConfigurations";
  2329. soap_begin(soap);
  2330. soap->encodingStyle = NULL;
  2331. soap_tmp___trt__GetCompatibleVideoEncoderConfigurations.trt__GetCompatibleVideoEncoderConfigurations = trt__GetCompatibleVideoEncoderConfigurations;
  2332. soap_set_version(soap, 2); /* SOAP1.2 */
  2333. soap_serializeheader(soap);
  2334. soap_serialize___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations);
  2335. if (soap_begin_count(soap))
  2336. return soap->error;
  2337. if (soap->mode & SOAP_IO_LENGTH)
  2338. { if (soap_envelope_begin_out(soap)
  2339. || soap_putheader(soap)
  2340. || soap_body_begin_out(soap)
  2341. || soap_put___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations, "-trt:GetCompatibleVideoEncoderConfigurations", NULL)
  2342. || soap_body_end_out(soap)
  2343. || soap_envelope_end_out(soap))
  2344. return soap->error;
  2345. }
  2346. if (soap_end_count(soap))
  2347. return soap->error;
  2348. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2349. || soap_envelope_begin_out(soap)
  2350. || soap_putheader(soap)
  2351. || soap_body_begin_out(soap)
  2352. || soap_put___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations, "-trt:GetCompatibleVideoEncoderConfigurations", NULL)
  2353. || soap_body_end_out(soap)
  2354. || soap_envelope_end_out(soap)
  2355. || soap_end_send(soap))
  2356. return soap_closesock(soap);
  2357. if (!trt__GetCompatibleVideoEncoderConfigurationsResponse)
  2358. return soap_closesock(soap);
  2359. trt__GetCompatibleVideoEncoderConfigurationsResponse->soap_default(soap);
  2360. if (soap_begin_recv(soap)
  2361. || soap_envelope_begin_in(soap)
  2362. || soap_recv_header(soap)
  2363. || soap_body_begin_in(soap))
  2364. return soap_closesock(soap);
  2365. trt__GetCompatibleVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoEncoderConfigurationsResponse", "");
  2366. if (soap->error)
  2367. return soap_recv_fault(soap, 0);
  2368. if (soap_body_end_in(soap)
  2369. || soap_envelope_end_in(soap)
  2370. || soap_end_recv(soap))
  2371. return soap_closesock(soap);
  2372. return soap_closesock(soap);
  2373. }
  2374. int MediaBindingProxy::GetCompatibleVideoSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoSourceConfigurations *trt__GetCompatibleVideoSourceConfigurations, _trt__GetCompatibleVideoSourceConfigurationsResponse *trt__GetCompatibleVideoSourceConfigurationsResponse)
  2375. { struct soap *soap = this;
  2376. struct __trt__GetCompatibleVideoSourceConfigurations soap_tmp___trt__GetCompatibleVideoSourceConfigurations;
  2377. if (endpoint)
  2378. soap_endpoint = endpoint;
  2379. if (soap_action == NULL)
  2380. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoSourceConfigurations";
  2381. soap_begin(soap);
  2382. soap->encodingStyle = NULL;
  2383. soap_tmp___trt__GetCompatibleVideoSourceConfigurations.trt__GetCompatibleVideoSourceConfigurations = trt__GetCompatibleVideoSourceConfigurations;
  2384. soap_set_version(soap, 2); /* SOAP1.2 */
  2385. soap_serializeheader(soap);
  2386. soap_serialize___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations);
  2387. if (soap_begin_count(soap))
  2388. return soap->error;
  2389. if (soap->mode & SOAP_IO_LENGTH)
  2390. { if (soap_envelope_begin_out(soap)
  2391. || soap_putheader(soap)
  2392. || soap_body_begin_out(soap)
  2393. || soap_put___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations, "-trt:GetCompatibleVideoSourceConfigurations", NULL)
  2394. || soap_body_end_out(soap)
  2395. || soap_envelope_end_out(soap))
  2396. return soap->error;
  2397. }
  2398. if (soap_end_count(soap))
  2399. return soap->error;
  2400. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2401. || soap_envelope_begin_out(soap)
  2402. || soap_putheader(soap)
  2403. || soap_body_begin_out(soap)
  2404. || soap_put___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations, "-trt:GetCompatibleVideoSourceConfigurations", NULL)
  2405. || soap_body_end_out(soap)
  2406. || soap_envelope_end_out(soap)
  2407. || soap_end_send(soap))
  2408. return soap_closesock(soap);
  2409. if (!trt__GetCompatibleVideoSourceConfigurationsResponse)
  2410. return soap_closesock(soap);
  2411. trt__GetCompatibleVideoSourceConfigurationsResponse->soap_default(soap);
  2412. if (soap_begin_recv(soap)
  2413. || soap_envelope_begin_in(soap)
  2414. || soap_recv_header(soap)
  2415. || soap_body_begin_in(soap))
  2416. return soap_closesock(soap);
  2417. trt__GetCompatibleVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoSourceConfigurationsResponse", "");
  2418. if (soap->error)
  2419. return soap_recv_fault(soap, 0);
  2420. if (soap_body_end_in(soap)
  2421. || soap_envelope_end_in(soap)
  2422. || soap_end_recv(soap))
  2423. return soap_closesock(soap);
  2424. return soap_closesock(soap);
  2425. }
  2426. int MediaBindingProxy::GetCompatibleAudioEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioEncoderConfigurations *trt__GetCompatibleAudioEncoderConfigurations, _trt__GetCompatibleAudioEncoderConfigurationsResponse *trt__GetCompatibleAudioEncoderConfigurationsResponse)
  2427. { struct soap *soap = this;
  2428. struct __trt__GetCompatibleAudioEncoderConfigurations soap_tmp___trt__GetCompatibleAudioEncoderConfigurations;
  2429. if (endpoint)
  2430. soap_endpoint = endpoint;
  2431. if (soap_action == NULL)
  2432. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioEncoderConfigurations";
  2433. soap_begin(soap);
  2434. soap->encodingStyle = NULL;
  2435. soap_tmp___trt__GetCompatibleAudioEncoderConfigurations.trt__GetCompatibleAudioEncoderConfigurations = trt__GetCompatibleAudioEncoderConfigurations;
  2436. soap_set_version(soap, 2); /* SOAP1.2 */
  2437. soap_serializeheader(soap);
  2438. soap_serialize___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations);
  2439. if (soap_begin_count(soap))
  2440. return soap->error;
  2441. if (soap->mode & SOAP_IO_LENGTH)
  2442. { if (soap_envelope_begin_out(soap)
  2443. || soap_putheader(soap)
  2444. || soap_body_begin_out(soap)
  2445. || soap_put___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations, "-trt:GetCompatibleAudioEncoderConfigurations", NULL)
  2446. || soap_body_end_out(soap)
  2447. || soap_envelope_end_out(soap))
  2448. return soap->error;
  2449. }
  2450. if (soap_end_count(soap))
  2451. return soap->error;
  2452. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2453. || soap_envelope_begin_out(soap)
  2454. || soap_putheader(soap)
  2455. || soap_body_begin_out(soap)
  2456. || soap_put___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations, "-trt:GetCompatibleAudioEncoderConfigurations", NULL)
  2457. || soap_body_end_out(soap)
  2458. || soap_envelope_end_out(soap)
  2459. || soap_end_send(soap))
  2460. return soap_closesock(soap);
  2461. if (!trt__GetCompatibleAudioEncoderConfigurationsResponse)
  2462. return soap_closesock(soap);
  2463. trt__GetCompatibleAudioEncoderConfigurationsResponse->soap_default(soap);
  2464. if (soap_begin_recv(soap)
  2465. || soap_envelope_begin_in(soap)
  2466. || soap_recv_header(soap)
  2467. || soap_body_begin_in(soap))
  2468. return soap_closesock(soap);
  2469. trt__GetCompatibleAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioEncoderConfigurationsResponse", "");
  2470. if (soap->error)
  2471. return soap_recv_fault(soap, 0);
  2472. if (soap_body_end_in(soap)
  2473. || soap_envelope_end_in(soap)
  2474. || soap_end_recv(soap))
  2475. return soap_closesock(soap);
  2476. return soap_closesock(soap);
  2477. }
  2478. int MediaBindingProxy::GetCompatibleAudioSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioSourceConfigurations *trt__GetCompatibleAudioSourceConfigurations, _trt__GetCompatibleAudioSourceConfigurationsResponse *trt__GetCompatibleAudioSourceConfigurationsResponse)
  2479. { struct soap *soap = this;
  2480. struct __trt__GetCompatibleAudioSourceConfigurations soap_tmp___trt__GetCompatibleAudioSourceConfigurations;
  2481. if (endpoint)
  2482. soap_endpoint = endpoint;
  2483. if (soap_action == NULL)
  2484. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioSourceConfigurations";
  2485. soap_begin(soap);
  2486. soap->encodingStyle = NULL;
  2487. soap_tmp___trt__GetCompatibleAudioSourceConfigurations.trt__GetCompatibleAudioSourceConfigurations = trt__GetCompatibleAudioSourceConfigurations;
  2488. soap_set_version(soap, 2); /* SOAP1.2 */
  2489. soap_serializeheader(soap);
  2490. soap_serialize___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations);
  2491. if (soap_begin_count(soap))
  2492. return soap->error;
  2493. if (soap->mode & SOAP_IO_LENGTH)
  2494. { if (soap_envelope_begin_out(soap)
  2495. || soap_putheader(soap)
  2496. || soap_body_begin_out(soap)
  2497. || soap_put___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations, "-trt:GetCompatibleAudioSourceConfigurations", NULL)
  2498. || soap_body_end_out(soap)
  2499. || soap_envelope_end_out(soap))
  2500. return soap->error;
  2501. }
  2502. if (soap_end_count(soap))
  2503. return soap->error;
  2504. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2505. || soap_envelope_begin_out(soap)
  2506. || soap_putheader(soap)
  2507. || soap_body_begin_out(soap)
  2508. || soap_put___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations, "-trt:GetCompatibleAudioSourceConfigurations", NULL)
  2509. || soap_body_end_out(soap)
  2510. || soap_envelope_end_out(soap)
  2511. || soap_end_send(soap))
  2512. return soap_closesock(soap);
  2513. if (!trt__GetCompatibleAudioSourceConfigurationsResponse)
  2514. return soap_closesock(soap);
  2515. trt__GetCompatibleAudioSourceConfigurationsResponse->soap_default(soap);
  2516. if (soap_begin_recv(soap)
  2517. || soap_envelope_begin_in(soap)
  2518. || soap_recv_header(soap)
  2519. || soap_body_begin_in(soap))
  2520. return soap_closesock(soap);
  2521. trt__GetCompatibleAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioSourceConfigurationsResponse", "");
  2522. if (soap->error)
  2523. return soap_recv_fault(soap, 0);
  2524. if (soap_body_end_in(soap)
  2525. || soap_envelope_end_in(soap)
  2526. || soap_end_recv(soap))
  2527. return soap_closesock(soap);
  2528. return soap_closesock(soap);
  2529. }
  2530. int MediaBindingProxy::GetCompatibleVideoAnalyticsConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoAnalyticsConfigurations *trt__GetCompatibleVideoAnalyticsConfigurations, _trt__GetCompatibleVideoAnalyticsConfigurationsResponse *trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
  2531. { struct soap *soap = this;
  2532. struct __trt__GetCompatibleVideoAnalyticsConfigurations soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations;
  2533. if (endpoint)
  2534. soap_endpoint = endpoint;
  2535. if (soap_action == NULL)
  2536. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoAnalyticsConfigurations";
  2537. soap_begin(soap);
  2538. soap->encodingStyle = NULL;
  2539. soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations.trt__GetCompatibleVideoAnalyticsConfigurations = trt__GetCompatibleVideoAnalyticsConfigurations;
  2540. soap_set_version(soap, 2); /* SOAP1.2 */
  2541. soap_serializeheader(soap);
  2542. soap_serialize___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations);
  2543. if (soap_begin_count(soap))
  2544. return soap->error;
  2545. if (soap->mode & SOAP_IO_LENGTH)
  2546. { if (soap_envelope_begin_out(soap)
  2547. || soap_putheader(soap)
  2548. || soap_body_begin_out(soap)
  2549. || soap_put___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations, "-trt:GetCompatibleVideoAnalyticsConfigurations", NULL)
  2550. || soap_body_end_out(soap)
  2551. || soap_envelope_end_out(soap))
  2552. return soap->error;
  2553. }
  2554. if (soap_end_count(soap))
  2555. return soap->error;
  2556. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2557. || soap_envelope_begin_out(soap)
  2558. || soap_putheader(soap)
  2559. || soap_body_begin_out(soap)
  2560. || soap_put___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations, "-trt:GetCompatibleVideoAnalyticsConfigurations", NULL)
  2561. || soap_body_end_out(soap)
  2562. || soap_envelope_end_out(soap)
  2563. || soap_end_send(soap))
  2564. return soap_closesock(soap);
  2565. if (!trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
  2566. return soap_closesock(soap);
  2567. trt__GetCompatibleVideoAnalyticsConfigurationsResponse->soap_default(soap);
  2568. if (soap_begin_recv(soap)
  2569. || soap_envelope_begin_in(soap)
  2570. || soap_recv_header(soap)
  2571. || soap_body_begin_in(soap))
  2572. return soap_closesock(soap);
  2573. trt__GetCompatibleVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoAnalyticsConfigurationsResponse", "");
  2574. if (soap->error)
  2575. return soap_recv_fault(soap, 0);
  2576. if (soap_body_end_in(soap)
  2577. || soap_envelope_end_in(soap)
  2578. || soap_end_recv(soap))
  2579. return soap_closesock(soap);
  2580. return soap_closesock(soap);
  2581. }
  2582. int MediaBindingProxy::GetCompatibleMetadataConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleMetadataConfigurations *trt__GetCompatibleMetadataConfigurations, _trt__GetCompatibleMetadataConfigurationsResponse *trt__GetCompatibleMetadataConfigurationsResponse)
  2583. { struct soap *soap = this;
  2584. struct __trt__GetCompatibleMetadataConfigurations soap_tmp___trt__GetCompatibleMetadataConfigurations;
  2585. if (endpoint)
  2586. soap_endpoint = endpoint;
  2587. if (soap_action == NULL)
  2588. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleMetadataConfigurations";
  2589. soap_begin(soap);
  2590. soap->encodingStyle = NULL;
  2591. soap_tmp___trt__GetCompatibleMetadataConfigurations.trt__GetCompatibleMetadataConfigurations = trt__GetCompatibleMetadataConfigurations;
  2592. soap_set_version(soap, 2); /* SOAP1.2 */
  2593. soap_serializeheader(soap);
  2594. soap_serialize___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations);
  2595. if (soap_begin_count(soap))
  2596. return soap->error;
  2597. if (soap->mode & SOAP_IO_LENGTH)
  2598. { if (soap_envelope_begin_out(soap)
  2599. || soap_putheader(soap)
  2600. || soap_body_begin_out(soap)
  2601. || soap_put___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations, "-trt:GetCompatibleMetadataConfigurations", NULL)
  2602. || soap_body_end_out(soap)
  2603. || soap_envelope_end_out(soap))
  2604. return soap->error;
  2605. }
  2606. if (soap_end_count(soap))
  2607. return soap->error;
  2608. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2609. || soap_envelope_begin_out(soap)
  2610. || soap_putheader(soap)
  2611. || soap_body_begin_out(soap)
  2612. || soap_put___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations, "-trt:GetCompatibleMetadataConfigurations", NULL)
  2613. || soap_body_end_out(soap)
  2614. || soap_envelope_end_out(soap)
  2615. || soap_end_send(soap))
  2616. return soap_closesock(soap);
  2617. if (!trt__GetCompatibleMetadataConfigurationsResponse)
  2618. return soap_closesock(soap);
  2619. trt__GetCompatibleMetadataConfigurationsResponse->soap_default(soap);
  2620. if (soap_begin_recv(soap)
  2621. || soap_envelope_begin_in(soap)
  2622. || soap_recv_header(soap)
  2623. || soap_body_begin_in(soap))
  2624. return soap_closesock(soap);
  2625. trt__GetCompatibleMetadataConfigurationsResponse->soap_get(soap, "trt:GetCompatibleMetadataConfigurationsResponse", "");
  2626. if (soap->error)
  2627. return soap_recv_fault(soap, 0);
  2628. if (soap_body_end_in(soap)
  2629. || soap_envelope_end_in(soap)
  2630. || soap_end_recv(soap))
  2631. return soap_closesock(soap);
  2632. return soap_closesock(soap);
  2633. }
  2634. int MediaBindingProxy::GetCompatibleAudioOutputConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioOutputConfigurations *trt__GetCompatibleAudioOutputConfigurations, _trt__GetCompatibleAudioOutputConfigurationsResponse *trt__GetCompatibleAudioOutputConfigurationsResponse)
  2635. { struct soap *soap = this;
  2636. struct __trt__GetCompatibleAudioOutputConfigurations soap_tmp___trt__GetCompatibleAudioOutputConfigurations;
  2637. if (endpoint)
  2638. soap_endpoint = endpoint;
  2639. if (soap_action == NULL)
  2640. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioOutputConfigurations";
  2641. soap_begin(soap);
  2642. soap->encodingStyle = NULL;
  2643. soap_tmp___trt__GetCompatibleAudioOutputConfigurations.trt__GetCompatibleAudioOutputConfigurations = trt__GetCompatibleAudioOutputConfigurations;
  2644. soap_set_version(soap, 2); /* SOAP1.2 */
  2645. soap_serializeheader(soap);
  2646. soap_serialize___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations);
  2647. if (soap_begin_count(soap))
  2648. return soap->error;
  2649. if (soap->mode & SOAP_IO_LENGTH)
  2650. { if (soap_envelope_begin_out(soap)
  2651. || soap_putheader(soap)
  2652. || soap_body_begin_out(soap)
  2653. || soap_put___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations, "-trt:GetCompatibleAudioOutputConfigurations", NULL)
  2654. || soap_body_end_out(soap)
  2655. || soap_envelope_end_out(soap))
  2656. return soap->error;
  2657. }
  2658. if (soap_end_count(soap))
  2659. return soap->error;
  2660. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2661. || soap_envelope_begin_out(soap)
  2662. || soap_putheader(soap)
  2663. || soap_body_begin_out(soap)
  2664. || soap_put___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations, "-trt:GetCompatibleAudioOutputConfigurations", NULL)
  2665. || soap_body_end_out(soap)
  2666. || soap_envelope_end_out(soap)
  2667. || soap_end_send(soap))
  2668. return soap_closesock(soap);
  2669. if (!trt__GetCompatibleAudioOutputConfigurationsResponse)
  2670. return soap_closesock(soap);
  2671. trt__GetCompatibleAudioOutputConfigurationsResponse->soap_default(soap);
  2672. if (soap_begin_recv(soap)
  2673. || soap_envelope_begin_in(soap)
  2674. || soap_recv_header(soap)
  2675. || soap_body_begin_in(soap))
  2676. return soap_closesock(soap);
  2677. trt__GetCompatibleAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioOutputConfigurationsResponse", "");
  2678. if (soap->error)
  2679. return soap_recv_fault(soap, 0);
  2680. if (soap_body_end_in(soap)
  2681. || soap_envelope_end_in(soap)
  2682. || soap_end_recv(soap))
  2683. return soap_closesock(soap);
  2684. return soap_closesock(soap);
  2685. }
  2686. int MediaBindingProxy::GetCompatibleAudioDecoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioDecoderConfigurations *trt__GetCompatibleAudioDecoderConfigurations, _trt__GetCompatibleAudioDecoderConfigurationsResponse *trt__GetCompatibleAudioDecoderConfigurationsResponse)
  2687. { struct soap *soap = this;
  2688. struct __trt__GetCompatibleAudioDecoderConfigurations soap_tmp___trt__GetCompatibleAudioDecoderConfigurations;
  2689. if (endpoint)
  2690. soap_endpoint = endpoint;
  2691. if (soap_action == NULL)
  2692. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioDecoderConfigurations";
  2693. soap_begin(soap);
  2694. soap->encodingStyle = NULL;
  2695. soap_tmp___trt__GetCompatibleAudioDecoderConfigurations.trt__GetCompatibleAudioDecoderConfigurations = trt__GetCompatibleAudioDecoderConfigurations;
  2696. soap_set_version(soap, 2); /* SOAP1.2 */
  2697. soap_serializeheader(soap);
  2698. soap_serialize___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations);
  2699. if (soap_begin_count(soap))
  2700. return soap->error;
  2701. if (soap->mode & SOAP_IO_LENGTH)
  2702. { if (soap_envelope_begin_out(soap)
  2703. || soap_putheader(soap)
  2704. || soap_body_begin_out(soap)
  2705. || soap_put___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations, "-trt:GetCompatibleAudioDecoderConfigurations", NULL)
  2706. || soap_body_end_out(soap)
  2707. || soap_envelope_end_out(soap))
  2708. return soap->error;
  2709. }
  2710. if (soap_end_count(soap))
  2711. return soap->error;
  2712. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2713. || soap_envelope_begin_out(soap)
  2714. || soap_putheader(soap)
  2715. || soap_body_begin_out(soap)
  2716. || soap_put___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations, "-trt:GetCompatibleAudioDecoderConfigurations", NULL)
  2717. || soap_body_end_out(soap)
  2718. || soap_envelope_end_out(soap)
  2719. || soap_end_send(soap))
  2720. return soap_closesock(soap);
  2721. if (!trt__GetCompatibleAudioDecoderConfigurationsResponse)
  2722. return soap_closesock(soap);
  2723. trt__GetCompatibleAudioDecoderConfigurationsResponse->soap_default(soap);
  2724. if (soap_begin_recv(soap)
  2725. || soap_envelope_begin_in(soap)
  2726. || soap_recv_header(soap)
  2727. || soap_body_begin_in(soap))
  2728. return soap_closesock(soap);
  2729. trt__GetCompatibleAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioDecoderConfigurationsResponse", "");
  2730. if (soap->error)
  2731. return soap_recv_fault(soap, 0);
  2732. if (soap_body_end_in(soap)
  2733. || soap_envelope_end_in(soap)
  2734. || soap_end_recv(soap))
  2735. return soap_closesock(soap);
  2736. return soap_closesock(soap);
  2737. }
  2738. int MediaBindingProxy::SetVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__SetVideoSourceConfiguration *trt__SetVideoSourceConfiguration, _trt__SetVideoSourceConfigurationResponse *trt__SetVideoSourceConfigurationResponse)
  2739. { struct soap *soap = this;
  2740. struct __trt__SetVideoSourceConfiguration soap_tmp___trt__SetVideoSourceConfiguration;
  2741. if (endpoint)
  2742. soap_endpoint = endpoint;
  2743. if (soap_action == NULL)
  2744. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceConfiguration";
  2745. soap_begin(soap);
  2746. soap->encodingStyle = NULL;
  2747. soap_tmp___trt__SetVideoSourceConfiguration.trt__SetVideoSourceConfiguration = trt__SetVideoSourceConfiguration;
  2748. soap_set_version(soap, 2); /* SOAP1.2 */
  2749. soap_serializeheader(soap);
  2750. soap_serialize___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration);
  2751. if (soap_begin_count(soap))
  2752. return soap->error;
  2753. if (soap->mode & SOAP_IO_LENGTH)
  2754. { if (soap_envelope_begin_out(soap)
  2755. || soap_putheader(soap)
  2756. || soap_body_begin_out(soap)
  2757. || soap_put___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration, "-trt:SetVideoSourceConfiguration", NULL)
  2758. || soap_body_end_out(soap)
  2759. || soap_envelope_end_out(soap))
  2760. return soap->error;
  2761. }
  2762. if (soap_end_count(soap))
  2763. return soap->error;
  2764. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2765. || soap_envelope_begin_out(soap)
  2766. || soap_putheader(soap)
  2767. || soap_body_begin_out(soap)
  2768. || soap_put___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration, "-trt:SetVideoSourceConfiguration", NULL)
  2769. || soap_body_end_out(soap)
  2770. || soap_envelope_end_out(soap)
  2771. || soap_end_send(soap))
  2772. return soap_closesock(soap);
  2773. if (!trt__SetVideoSourceConfigurationResponse)
  2774. return soap_closesock(soap);
  2775. trt__SetVideoSourceConfigurationResponse->soap_default(soap);
  2776. if (soap_begin_recv(soap)
  2777. || soap_envelope_begin_in(soap)
  2778. || soap_recv_header(soap)
  2779. || soap_body_begin_in(soap))
  2780. return soap_closesock(soap);
  2781. trt__SetVideoSourceConfigurationResponse->soap_get(soap, "trt:SetVideoSourceConfigurationResponse", "");
  2782. if (soap->error)
  2783. return soap_recv_fault(soap, 0);
  2784. if (soap_body_end_in(soap)
  2785. || soap_envelope_end_in(soap)
  2786. || soap_end_recv(soap))
  2787. return soap_closesock(soap);
  2788. return soap_closesock(soap);
  2789. }
  2790. int MediaBindingProxy::SetVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__SetVideoEncoderConfiguration *trt__SetVideoEncoderConfiguration, _trt__SetVideoEncoderConfigurationResponse *trt__SetVideoEncoderConfigurationResponse)
  2791. { struct soap *soap = this;
  2792. struct __trt__SetVideoEncoderConfiguration soap_tmp___trt__SetVideoEncoderConfiguration;
  2793. if (endpoint)
  2794. soap_endpoint = endpoint;
  2795. if (soap_action == NULL)
  2796. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoEncoderConfiguration";
  2797. soap_begin(soap);
  2798. soap->encodingStyle = NULL;
  2799. soap_tmp___trt__SetVideoEncoderConfiguration.trt__SetVideoEncoderConfiguration = trt__SetVideoEncoderConfiguration;
  2800. soap_set_version(soap, 2); /* SOAP1.2 */
  2801. soap_serializeheader(soap);
  2802. soap_serialize___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration);
  2803. if (soap_begin_count(soap))
  2804. return soap->error;
  2805. if (soap->mode & SOAP_IO_LENGTH)
  2806. { if (soap_envelope_begin_out(soap)
  2807. || soap_putheader(soap)
  2808. || soap_body_begin_out(soap)
  2809. || soap_put___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration, "-trt:SetVideoEncoderConfiguration", NULL)
  2810. || soap_body_end_out(soap)
  2811. || soap_envelope_end_out(soap))
  2812. return soap->error;
  2813. }
  2814. if (soap_end_count(soap))
  2815. return soap->error;
  2816. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2817. || soap_envelope_begin_out(soap)
  2818. || soap_putheader(soap)
  2819. || soap_body_begin_out(soap)
  2820. || soap_put___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration, "-trt:SetVideoEncoderConfiguration", NULL)
  2821. || soap_body_end_out(soap)
  2822. || soap_envelope_end_out(soap)
  2823. || soap_end_send(soap))
  2824. return soap_closesock(soap);
  2825. if (!trt__SetVideoEncoderConfigurationResponse)
  2826. return soap_closesock(soap);
  2827. trt__SetVideoEncoderConfigurationResponse->soap_default(soap);
  2828. if (soap_begin_recv(soap)
  2829. || soap_envelope_begin_in(soap)
  2830. || soap_recv_header(soap)
  2831. || soap_body_begin_in(soap))
  2832. return soap_closesock(soap);
  2833. trt__SetVideoEncoderConfigurationResponse->soap_get(soap, "trt:SetVideoEncoderConfigurationResponse", "");
  2834. if (soap->error)
  2835. return soap_recv_fault(soap, 0);
  2836. if (soap_body_end_in(soap)
  2837. || soap_envelope_end_in(soap)
  2838. || soap_end_recv(soap))
  2839. return soap_closesock(soap);
  2840. return soap_closesock(soap);
  2841. }
  2842. int MediaBindingProxy::SetAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioSourceConfiguration *trt__SetAudioSourceConfiguration, _trt__SetAudioSourceConfigurationResponse *trt__SetAudioSourceConfigurationResponse)
  2843. { struct soap *soap = this;
  2844. struct __trt__SetAudioSourceConfiguration soap_tmp___trt__SetAudioSourceConfiguration;
  2845. if (endpoint)
  2846. soap_endpoint = endpoint;
  2847. if (soap_action == NULL)
  2848. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioSourceConfiguration";
  2849. soap_begin(soap);
  2850. soap->encodingStyle = NULL;
  2851. soap_tmp___trt__SetAudioSourceConfiguration.trt__SetAudioSourceConfiguration = trt__SetAudioSourceConfiguration;
  2852. soap_set_version(soap, 2); /* SOAP1.2 */
  2853. soap_serializeheader(soap);
  2854. soap_serialize___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration);
  2855. if (soap_begin_count(soap))
  2856. return soap->error;
  2857. if (soap->mode & SOAP_IO_LENGTH)
  2858. { if (soap_envelope_begin_out(soap)
  2859. || soap_putheader(soap)
  2860. || soap_body_begin_out(soap)
  2861. || soap_put___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration, "-trt:SetAudioSourceConfiguration", NULL)
  2862. || soap_body_end_out(soap)
  2863. || soap_envelope_end_out(soap))
  2864. return soap->error;
  2865. }
  2866. if (soap_end_count(soap))
  2867. return soap->error;
  2868. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2869. || soap_envelope_begin_out(soap)
  2870. || soap_putheader(soap)
  2871. || soap_body_begin_out(soap)
  2872. || soap_put___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration, "-trt:SetAudioSourceConfiguration", NULL)
  2873. || soap_body_end_out(soap)
  2874. || soap_envelope_end_out(soap)
  2875. || soap_end_send(soap))
  2876. return soap_closesock(soap);
  2877. if (!trt__SetAudioSourceConfigurationResponse)
  2878. return soap_closesock(soap);
  2879. trt__SetAudioSourceConfigurationResponse->soap_default(soap);
  2880. if (soap_begin_recv(soap)
  2881. || soap_envelope_begin_in(soap)
  2882. || soap_recv_header(soap)
  2883. || soap_body_begin_in(soap))
  2884. return soap_closesock(soap);
  2885. trt__SetAudioSourceConfigurationResponse->soap_get(soap, "trt:SetAudioSourceConfigurationResponse", "");
  2886. if (soap->error)
  2887. return soap_recv_fault(soap, 0);
  2888. if (soap_body_end_in(soap)
  2889. || soap_envelope_end_in(soap)
  2890. || soap_end_recv(soap))
  2891. return soap_closesock(soap);
  2892. return soap_closesock(soap);
  2893. }
  2894. int MediaBindingProxy::SetAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioEncoderConfiguration *trt__SetAudioEncoderConfiguration, _trt__SetAudioEncoderConfigurationResponse *trt__SetAudioEncoderConfigurationResponse)
  2895. { struct soap *soap = this;
  2896. struct __trt__SetAudioEncoderConfiguration soap_tmp___trt__SetAudioEncoderConfiguration;
  2897. if (endpoint)
  2898. soap_endpoint = endpoint;
  2899. if (soap_action == NULL)
  2900. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioEncoderConfiguration";
  2901. soap_begin(soap);
  2902. soap->encodingStyle = NULL;
  2903. soap_tmp___trt__SetAudioEncoderConfiguration.trt__SetAudioEncoderConfiguration = trt__SetAudioEncoderConfiguration;
  2904. soap_set_version(soap, 2); /* SOAP1.2 */
  2905. soap_serializeheader(soap);
  2906. soap_serialize___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration);
  2907. if (soap_begin_count(soap))
  2908. return soap->error;
  2909. if (soap->mode & SOAP_IO_LENGTH)
  2910. { if (soap_envelope_begin_out(soap)
  2911. || soap_putheader(soap)
  2912. || soap_body_begin_out(soap)
  2913. || soap_put___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration, "-trt:SetAudioEncoderConfiguration", NULL)
  2914. || soap_body_end_out(soap)
  2915. || soap_envelope_end_out(soap))
  2916. return soap->error;
  2917. }
  2918. if (soap_end_count(soap))
  2919. return soap->error;
  2920. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2921. || soap_envelope_begin_out(soap)
  2922. || soap_putheader(soap)
  2923. || soap_body_begin_out(soap)
  2924. || soap_put___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration, "-trt:SetAudioEncoderConfiguration", NULL)
  2925. || soap_body_end_out(soap)
  2926. || soap_envelope_end_out(soap)
  2927. || soap_end_send(soap))
  2928. return soap_closesock(soap);
  2929. if (!trt__SetAudioEncoderConfigurationResponse)
  2930. return soap_closesock(soap);
  2931. trt__SetAudioEncoderConfigurationResponse->soap_default(soap);
  2932. if (soap_begin_recv(soap)
  2933. || soap_envelope_begin_in(soap)
  2934. || soap_recv_header(soap)
  2935. || soap_body_begin_in(soap))
  2936. return soap_closesock(soap);
  2937. trt__SetAudioEncoderConfigurationResponse->soap_get(soap, "trt:SetAudioEncoderConfigurationResponse", "");
  2938. if (soap->error)
  2939. return soap_recv_fault(soap, 0);
  2940. if (soap_body_end_in(soap)
  2941. || soap_envelope_end_in(soap)
  2942. || soap_end_recv(soap))
  2943. return soap_closesock(soap);
  2944. return soap_closesock(soap);
  2945. }
  2946. int MediaBindingProxy::SetVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__SetVideoAnalyticsConfiguration *trt__SetVideoAnalyticsConfiguration, _trt__SetVideoAnalyticsConfigurationResponse *trt__SetVideoAnalyticsConfigurationResponse)
  2947. { struct soap *soap = this;
  2948. struct __trt__SetVideoAnalyticsConfiguration soap_tmp___trt__SetVideoAnalyticsConfiguration;
  2949. if (endpoint)
  2950. soap_endpoint = endpoint;
  2951. if (soap_action == NULL)
  2952. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoAnalyticsConfiguration";
  2953. soap_begin(soap);
  2954. soap->encodingStyle = NULL;
  2955. soap_tmp___trt__SetVideoAnalyticsConfiguration.trt__SetVideoAnalyticsConfiguration = trt__SetVideoAnalyticsConfiguration;
  2956. soap_set_version(soap, 2); /* SOAP1.2 */
  2957. soap_serializeheader(soap);
  2958. soap_serialize___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration);
  2959. if (soap_begin_count(soap))
  2960. return soap->error;
  2961. if (soap->mode & SOAP_IO_LENGTH)
  2962. { if (soap_envelope_begin_out(soap)
  2963. || soap_putheader(soap)
  2964. || soap_body_begin_out(soap)
  2965. || soap_put___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration, "-trt:SetVideoAnalyticsConfiguration", NULL)
  2966. || soap_body_end_out(soap)
  2967. || soap_envelope_end_out(soap))
  2968. return soap->error;
  2969. }
  2970. if (soap_end_count(soap))
  2971. return soap->error;
  2972. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  2973. || soap_envelope_begin_out(soap)
  2974. || soap_putheader(soap)
  2975. || soap_body_begin_out(soap)
  2976. || soap_put___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration, "-trt:SetVideoAnalyticsConfiguration", NULL)
  2977. || soap_body_end_out(soap)
  2978. || soap_envelope_end_out(soap)
  2979. || soap_end_send(soap))
  2980. return soap_closesock(soap);
  2981. if (!trt__SetVideoAnalyticsConfigurationResponse)
  2982. return soap_closesock(soap);
  2983. trt__SetVideoAnalyticsConfigurationResponse->soap_default(soap);
  2984. if (soap_begin_recv(soap)
  2985. || soap_envelope_begin_in(soap)
  2986. || soap_recv_header(soap)
  2987. || soap_body_begin_in(soap))
  2988. return soap_closesock(soap);
  2989. trt__SetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:SetVideoAnalyticsConfigurationResponse", "");
  2990. if (soap->error)
  2991. return soap_recv_fault(soap, 0);
  2992. if (soap_body_end_in(soap)
  2993. || soap_envelope_end_in(soap)
  2994. || soap_end_recv(soap))
  2995. return soap_closesock(soap);
  2996. return soap_closesock(soap);
  2997. }
  2998. int MediaBindingProxy::SetMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__SetMetadataConfiguration *trt__SetMetadataConfiguration, _trt__SetMetadataConfigurationResponse *trt__SetMetadataConfigurationResponse)
  2999. { struct soap *soap = this;
  3000. struct __trt__SetMetadataConfiguration soap_tmp___trt__SetMetadataConfiguration;
  3001. if (endpoint)
  3002. soap_endpoint = endpoint;
  3003. if (soap_action == NULL)
  3004. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetMetadataConfiguration";
  3005. soap_begin(soap);
  3006. soap->encodingStyle = NULL;
  3007. soap_tmp___trt__SetMetadataConfiguration.trt__SetMetadataConfiguration = trt__SetMetadataConfiguration;
  3008. soap_set_version(soap, 2); /* SOAP1.2 */
  3009. soap_serializeheader(soap);
  3010. soap_serialize___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration);
  3011. if (soap_begin_count(soap))
  3012. return soap->error;
  3013. if (soap->mode & SOAP_IO_LENGTH)
  3014. { if (soap_envelope_begin_out(soap)
  3015. || soap_putheader(soap)
  3016. || soap_body_begin_out(soap)
  3017. || soap_put___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration, "-trt:SetMetadataConfiguration", NULL)
  3018. || soap_body_end_out(soap)
  3019. || soap_envelope_end_out(soap))
  3020. return soap->error;
  3021. }
  3022. if (soap_end_count(soap))
  3023. return soap->error;
  3024. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3025. || soap_envelope_begin_out(soap)
  3026. || soap_putheader(soap)
  3027. || soap_body_begin_out(soap)
  3028. || soap_put___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration, "-trt:SetMetadataConfiguration", NULL)
  3029. || soap_body_end_out(soap)
  3030. || soap_envelope_end_out(soap)
  3031. || soap_end_send(soap))
  3032. return soap_closesock(soap);
  3033. if (!trt__SetMetadataConfigurationResponse)
  3034. return soap_closesock(soap);
  3035. trt__SetMetadataConfigurationResponse->soap_default(soap);
  3036. if (soap_begin_recv(soap)
  3037. || soap_envelope_begin_in(soap)
  3038. || soap_recv_header(soap)
  3039. || soap_body_begin_in(soap))
  3040. return soap_closesock(soap);
  3041. trt__SetMetadataConfigurationResponse->soap_get(soap, "trt:SetMetadataConfigurationResponse", "");
  3042. if (soap->error)
  3043. return soap_recv_fault(soap, 0);
  3044. if (soap_body_end_in(soap)
  3045. || soap_envelope_end_in(soap)
  3046. || soap_end_recv(soap))
  3047. return soap_closesock(soap);
  3048. return soap_closesock(soap);
  3049. }
  3050. int MediaBindingProxy::SetAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioOutputConfiguration *trt__SetAudioOutputConfiguration, _trt__SetAudioOutputConfigurationResponse *trt__SetAudioOutputConfigurationResponse)
  3051. { struct soap *soap = this;
  3052. struct __trt__SetAudioOutputConfiguration soap_tmp___trt__SetAudioOutputConfiguration;
  3053. if (endpoint)
  3054. soap_endpoint = endpoint;
  3055. if (soap_action == NULL)
  3056. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioOutputConfiguration";
  3057. soap_begin(soap);
  3058. soap->encodingStyle = NULL;
  3059. soap_tmp___trt__SetAudioOutputConfiguration.trt__SetAudioOutputConfiguration = trt__SetAudioOutputConfiguration;
  3060. soap_set_version(soap, 2); /* SOAP1.2 */
  3061. soap_serializeheader(soap);
  3062. soap_serialize___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration);
  3063. if (soap_begin_count(soap))
  3064. return soap->error;
  3065. if (soap->mode & SOAP_IO_LENGTH)
  3066. { if (soap_envelope_begin_out(soap)
  3067. || soap_putheader(soap)
  3068. || soap_body_begin_out(soap)
  3069. || soap_put___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration, "-trt:SetAudioOutputConfiguration", NULL)
  3070. || soap_body_end_out(soap)
  3071. || soap_envelope_end_out(soap))
  3072. return soap->error;
  3073. }
  3074. if (soap_end_count(soap))
  3075. return soap->error;
  3076. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3077. || soap_envelope_begin_out(soap)
  3078. || soap_putheader(soap)
  3079. || soap_body_begin_out(soap)
  3080. || soap_put___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration, "-trt:SetAudioOutputConfiguration", NULL)
  3081. || soap_body_end_out(soap)
  3082. || soap_envelope_end_out(soap)
  3083. || soap_end_send(soap))
  3084. return soap_closesock(soap);
  3085. if (!trt__SetAudioOutputConfigurationResponse)
  3086. return soap_closesock(soap);
  3087. trt__SetAudioOutputConfigurationResponse->soap_default(soap);
  3088. if (soap_begin_recv(soap)
  3089. || soap_envelope_begin_in(soap)
  3090. || soap_recv_header(soap)
  3091. || soap_body_begin_in(soap))
  3092. return soap_closesock(soap);
  3093. trt__SetAudioOutputConfigurationResponse->soap_get(soap, "trt:SetAudioOutputConfigurationResponse", "");
  3094. if (soap->error)
  3095. return soap_recv_fault(soap, 0);
  3096. if (soap_body_end_in(soap)
  3097. || soap_envelope_end_in(soap)
  3098. || soap_end_recv(soap))
  3099. return soap_closesock(soap);
  3100. return soap_closesock(soap);
  3101. }
  3102. int MediaBindingProxy::SetAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioDecoderConfiguration *trt__SetAudioDecoderConfiguration, _trt__SetAudioDecoderConfigurationResponse *trt__SetAudioDecoderConfigurationResponse)
  3103. { struct soap *soap = this;
  3104. struct __trt__SetAudioDecoderConfiguration soap_tmp___trt__SetAudioDecoderConfiguration;
  3105. if (endpoint)
  3106. soap_endpoint = endpoint;
  3107. if (soap_action == NULL)
  3108. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioDecoderConfiguration";
  3109. soap_begin(soap);
  3110. soap->encodingStyle = NULL;
  3111. soap_tmp___trt__SetAudioDecoderConfiguration.trt__SetAudioDecoderConfiguration = trt__SetAudioDecoderConfiguration;
  3112. soap_set_version(soap, 2); /* SOAP1.2 */
  3113. soap_serializeheader(soap);
  3114. soap_serialize___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration);
  3115. if (soap_begin_count(soap))
  3116. return soap->error;
  3117. if (soap->mode & SOAP_IO_LENGTH)
  3118. { if (soap_envelope_begin_out(soap)
  3119. || soap_putheader(soap)
  3120. || soap_body_begin_out(soap)
  3121. || soap_put___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration, "-trt:SetAudioDecoderConfiguration", NULL)
  3122. || soap_body_end_out(soap)
  3123. || soap_envelope_end_out(soap))
  3124. return soap->error;
  3125. }
  3126. if (soap_end_count(soap))
  3127. return soap->error;
  3128. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3129. || soap_envelope_begin_out(soap)
  3130. || soap_putheader(soap)
  3131. || soap_body_begin_out(soap)
  3132. || soap_put___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration, "-trt:SetAudioDecoderConfiguration", NULL)
  3133. || soap_body_end_out(soap)
  3134. || soap_envelope_end_out(soap)
  3135. || soap_end_send(soap))
  3136. return soap_closesock(soap);
  3137. if (!trt__SetAudioDecoderConfigurationResponse)
  3138. return soap_closesock(soap);
  3139. trt__SetAudioDecoderConfigurationResponse->soap_default(soap);
  3140. if (soap_begin_recv(soap)
  3141. || soap_envelope_begin_in(soap)
  3142. || soap_recv_header(soap)
  3143. || soap_body_begin_in(soap))
  3144. return soap_closesock(soap);
  3145. trt__SetAudioDecoderConfigurationResponse->soap_get(soap, "trt:SetAudioDecoderConfigurationResponse", "");
  3146. if (soap->error)
  3147. return soap_recv_fault(soap, 0);
  3148. if (soap_body_end_in(soap)
  3149. || soap_envelope_end_in(soap)
  3150. || soap_end_recv(soap))
  3151. return soap_closesock(soap);
  3152. return soap_closesock(soap);
  3153. }
  3154. int MediaBindingProxy::GetVideoSourceConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurationOptions *trt__GetVideoSourceConfigurationOptions, _trt__GetVideoSourceConfigurationOptionsResponse *trt__GetVideoSourceConfigurationOptionsResponse)
  3155. { struct soap *soap = this;
  3156. struct __trt__GetVideoSourceConfigurationOptions soap_tmp___trt__GetVideoSourceConfigurationOptions;
  3157. if (endpoint)
  3158. soap_endpoint = endpoint;
  3159. if (soap_action == NULL)
  3160. soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSourceConfigurationOptions/";
  3161. soap_begin(soap);
  3162. soap->encodingStyle = NULL;
  3163. soap_tmp___trt__GetVideoSourceConfigurationOptions.trt__GetVideoSourceConfigurationOptions = trt__GetVideoSourceConfigurationOptions;
  3164. soap_set_version(soap, 2); /* SOAP1.2 */
  3165. soap_serializeheader(soap);
  3166. soap_serialize___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions);
  3167. if (soap_begin_count(soap))
  3168. return soap->error;
  3169. if (soap->mode & SOAP_IO_LENGTH)
  3170. { if (soap_envelope_begin_out(soap)
  3171. || soap_putheader(soap)
  3172. || soap_body_begin_out(soap)
  3173. || soap_put___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions, "-trt:GetVideoSourceConfigurationOptions", NULL)
  3174. || soap_body_end_out(soap)
  3175. || soap_envelope_end_out(soap))
  3176. return soap->error;
  3177. }
  3178. if (soap_end_count(soap))
  3179. return soap->error;
  3180. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3181. || soap_envelope_begin_out(soap)
  3182. || soap_putheader(soap)
  3183. || soap_body_begin_out(soap)
  3184. || soap_put___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions, "-trt:GetVideoSourceConfigurationOptions", NULL)
  3185. || soap_body_end_out(soap)
  3186. || soap_envelope_end_out(soap)
  3187. || soap_end_send(soap))
  3188. return soap_closesock(soap);
  3189. if (!trt__GetVideoSourceConfigurationOptionsResponse)
  3190. return soap_closesock(soap);
  3191. trt__GetVideoSourceConfigurationOptionsResponse->soap_default(soap);
  3192. if (soap_begin_recv(soap)
  3193. || soap_envelope_begin_in(soap)
  3194. || soap_recv_header(soap)
  3195. || soap_body_begin_in(soap))
  3196. return soap_closesock(soap);
  3197. trt__GetVideoSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationOptionsResponse", "");
  3198. if (soap->error)
  3199. return soap_recv_fault(soap, 0);
  3200. if (soap_body_end_in(soap)
  3201. || soap_envelope_end_in(soap)
  3202. || soap_end_recv(soap))
  3203. return soap_closesock(soap);
  3204. return soap_closesock(soap);
  3205. }
  3206. int MediaBindingProxy::GetVideoEncoderConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurationOptions *trt__GetVideoEncoderConfigurationOptions, _trt__GetVideoEncoderConfigurationOptionsResponse *trt__GetVideoEncoderConfigurationOptionsResponse)
  3207. { struct soap *soap = this;
  3208. struct __trt__GetVideoEncoderConfigurationOptions soap_tmp___trt__GetVideoEncoderConfigurationOptions;
  3209. if (endpoint)
  3210. soap_endpoint = endpoint;
  3211. if (soap_action == NULL)
  3212. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurationOptions";
  3213. soap_begin(soap);
  3214. soap->encodingStyle = NULL;
  3215. soap_tmp___trt__GetVideoEncoderConfigurationOptions.trt__GetVideoEncoderConfigurationOptions = trt__GetVideoEncoderConfigurationOptions;
  3216. soap_set_version(soap, 2); /* SOAP1.2 */
  3217. soap_serializeheader(soap);
  3218. soap_serialize___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions);
  3219. if (soap_begin_count(soap))
  3220. return soap->error;
  3221. if (soap->mode & SOAP_IO_LENGTH)
  3222. { if (soap_envelope_begin_out(soap)
  3223. || soap_putheader(soap)
  3224. || soap_body_begin_out(soap)
  3225. || soap_put___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions, "-trt:GetVideoEncoderConfigurationOptions", NULL)
  3226. || soap_body_end_out(soap)
  3227. || soap_envelope_end_out(soap))
  3228. return soap->error;
  3229. }
  3230. if (soap_end_count(soap))
  3231. return soap->error;
  3232. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3233. || soap_envelope_begin_out(soap)
  3234. || soap_putheader(soap)
  3235. || soap_body_begin_out(soap)
  3236. || soap_put___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions, "-trt:GetVideoEncoderConfigurationOptions", NULL)
  3237. || soap_body_end_out(soap)
  3238. || soap_envelope_end_out(soap)
  3239. || soap_end_send(soap))
  3240. return soap_closesock(soap);
  3241. if (!trt__GetVideoEncoderConfigurationOptionsResponse)
  3242. return soap_closesock(soap);
  3243. trt__GetVideoEncoderConfigurationOptionsResponse->soap_default(soap);
  3244. if (soap_begin_recv(soap)
  3245. || soap_envelope_begin_in(soap)
  3246. || soap_recv_header(soap)
  3247. || soap_body_begin_in(soap))
  3248. return soap_closesock(soap);
  3249. trt__GetVideoEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationOptionsResponse", "");
  3250. if (soap->error)
  3251. return soap_recv_fault(soap, 0);
  3252. if (soap_body_end_in(soap)
  3253. || soap_envelope_end_in(soap)
  3254. || soap_end_recv(soap))
  3255. return soap_closesock(soap);
  3256. return soap_closesock(soap);
  3257. }
  3258. int MediaBindingProxy::GetAudioSourceConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurationOptions *trt__GetAudioSourceConfigurationOptions, _trt__GetAudioSourceConfigurationOptionsResponse *trt__GetAudioSourceConfigurationOptionsResponse)
  3259. { struct soap *soap = this;
  3260. struct __trt__GetAudioSourceConfigurationOptions soap_tmp___trt__GetAudioSourceConfigurationOptions;
  3261. if (endpoint)
  3262. soap_endpoint = endpoint;
  3263. if (soap_action == NULL)
  3264. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurationOptions";
  3265. soap_begin(soap);
  3266. soap->encodingStyle = NULL;
  3267. soap_tmp___trt__GetAudioSourceConfigurationOptions.trt__GetAudioSourceConfigurationOptions = trt__GetAudioSourceConfigurationOptions;
  3268. soap_set_version(soap, 2); /* SOAP1.2 */
  3269. soap_serializeheader(soap);
  3270. soap_serialize___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions);
  3271. if (soap_begin_count(soap))
  3272. return soap->error;
  3273. if (soap->mode & SOAP_IO_LENGTH)
  3274. { if (soap_envelope_begin_out(soap)
  3275. || soap_putheader(soap)
  3276. || soap_body_begin_out(soap)
  3277. || soap_put___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions, "-trt:GetAudioSourceConfigurationOptions", NULL)
  3278. || soap_body_end_out(soap)
  3279. || soap_envelope_end_out(soap))
  3280. return soap->error;
  3281. }
  3282. if (soap_end_count(soap))
  3283. return soap->error;
  3284. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3285. || soap_envelope_begin_out(soap)
  3286. || soap_putheader(soap)
  3287. || soap_body_begin_out(soap)
  3288. || soap_put___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions, "-trt:GetAudioSourceConfigurationOptions", NULL)
  3289. || soap_body_end_out(soap)
  3290. || soap_envelope_end_out(soap)
  3291. || soap_end_send(soap))
  3292. return soap_closesock(soap);
  3293. if (!trt__GetAudioSourceConfigurationOptionsResponse)
  3294. return soap_closesock(soap);
  3295. trt__GetAudioSourceConfigurationOptionsResponse->soap_default(soap);
  3296. if (soap_begin_recv(soap)
  3297. || soap_envelope_begin_in(soap)
  3298. || soap_recv_header(soap)
  3299. || soap_body_begin_in(soap))
  3300. return soap_closesock(soap);
  3301. trt__GetAudioSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationOptionsResponse", "");
  3302. if (soap->error)
  3303. return soap_recv_fault(soap, 0);
  3304. if (soap_body_end_in(soap)
  3305. || soap_envelope_end_in(soap)
  3306. || soap_end_recv(soap))
  3307. return soap_closesock(soap);
  3308. return soap_closesock(soap);
  3309. }
  3310. int MediaBindingProxy::GetAudioEncoderConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurationOptions *trt__GetAudioEncoderConfigurationOptions, _trt__GetAudioEncoderConfigurationOptionsResponse *trt__GetAudioEncoderConfigurationOptionsResponse)
  3311. { struct soap *soap = this;
  3312. struct __trt__GetAudioEncoderConfigurationOptions soap_tmp___trt__GetAudioEncoderConfigurationOptions;
  3313. if (endpoint)
  3314. soap_endpoint = endpoint;
  3315. if (soap_action == NULL)
  3316. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurationOptions";
  3317. soap_begin(soap);
  3318. soap->encodingStyle = NULL;
  3319. soap_tmp___trt__GetAudioEncoderConfigurationOptions.trt__GetAudioEncoderConfigurationOptions = trt__GetAudioEncoderConfigurationOptions;
  3320. soap_set_version(soap, 2); /* SOAP1.2 */
  3321. soap_serializeheader(soap);
  3322. soap_serialize___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions);
  3323. if (soap_begin_count(soap))
  3324. return soap->error;
  3325. if (soap->mode & SOAP_IO_LENGTH)
  3326. { if (soap_envelope_begin_out(soap)
  3327. || soap_putheader(soap)
  3328. || soap_body_begin_out(soap)
  3329. || soap_put___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions, "-trt:GetAudioEncoderConfigurationOptions", NULL)
  3330. || soap_body_end_out(soap)
  3331. || soap_envelope_end_out(soap))
  3332. return soap->error;
  3333. }
  3334. if (soap_end_count(soap))
  3335. return soap->error;
  3336. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3337. || soap_envelope_begin_out(soap)
  3338. || soap_putheader(soap)
  3339. || soap_body_begin_out(soap)
  3340. || soap_put___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions, "-trt:GetAudioEncoderConfigurationOptions", NULL)
  3341. || soap_body_end_out(soap)
  3342. || soap_envelope_end_out(soap)
  3343. || soap_end_send(soap))
  3344. return soap_closesock(soap);
  3345. if (!trt__GetAudioEncoderConfigurationOptionsResponse)
  3346. return soap_closesock(soap);
  3347. trt__GetAudioEncoderConfigurationOptionsResponse->soap_default(soap);
  3348. if (soap_begin_recv(soap)
  3349. || soap_envelope_begin_in(soap)
  3350. || soap_recv_header(soap)
  3351. || soap_body_begin_in(soap))
  3352. return soap_closesock(soap);
  3353. trt__GetAudioEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationOptionsResponse", "");
  3354. if (soap->error)
  3355. return soap_recv_fault(soap, 0);
  3356. if (soap_body_end_in(soap)
  3357. || soap_envelope_end_in(soap)
  3358. || soap_end_recv(soap))
  3359. return soap_closesock(soap);
  3360. return soap_closesock(soap);
  3361. }
  3362. int MediaBindingProxy::GetMetadataConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurationOptions *trt__GetMetadataConfigurationOptions, _trt__GetMetadataConfigurationOptionsResponse *trt__GetMetadataConfigurationOptionsResponse)
  3363. { struct soap *soap = this;
  3364. struct __trt__GetMetadataConfigurationOptions soap_tmp___trt__GetMetadataConfigurationOptions;
  3365. if (endpoint)
  3366. soap_endpoint = endpoint;
  3367. if (soap_action == NULL)
  3368. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurationOptions";
  3369. soap_begin(soap);
  3370. soap->encodingStyle = NULL;
  3371. soap_tmp___trt__GetMetadataConfigurationOptions.trt__GetMetadataConfigurationOptions = trt__GetMetadataConfigurationOptions;
  3372. soap_set_version(soap, 2); /* SOAP1.2 */
  3373. soap_serializeheader(soap);
  3374. soap_serialize___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions);
  3375. if (soap_begin_count(soap))
  3376. return soap->error;
  3377. if (soap->mode & SOAP_IO_LENGTH)
  3378. { if (soap_envelope_begin_out(soap)
  3379. || soap_putheader(soap)
  3380. || soap_body_begin_out(soap)
  3381. || soap_put___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions, "-trt:GetMetadataConfigurationOptions", NULL)
  3382. || soap_body_end_out(soap)
  3383. || soap_envelope_end_out(soap))
  3384. return soap->error;
  3385. }
  3386. if (soap_end_count(soap))
  3387. return soap->error;
  3388. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3389. || soap_envelope_begin_out(soap)
  3390. || soap_putheader(soap)
  3391. || soap_body_begin_out(soap)
  3392. || soap_put___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions, "-trt:GetMetadataConfigurationOptions", NULL)
  3393. || soap_body_end_out(soap)
  3394. || soap_envelope_end_out(soap)
  3395. || soap_end_send(soap))
  3396. return soap_closesock(soap);
  3397. if (!trt__GetMetadataConfigurationOptionsResponse)
  3398. return soap_closesock(soap);
  3399. trt__GetMetadataConfigurationOptionsResponse->soap_default(soap);
  3400. if (soap_begin_recv(soap)
  3401. || soap_envelope_begin_in(soap)
  3402. || soap_recv_header(soap)
  3403. || soap_body_begin_in(soap))
  3404. return soap_closesock(soap);
  3405. trt__GetMetadataConfigurationOptionsResponse->soap_get(soap, "trt:GetMetadataConfigurationOptionsResponse", "");
  3406. if (soap->error)
  3407. return soap_recv_fault(soap, 0);
  3408. if (soap_body_end_in(soap)
  3409. || soap_envelope_end_in(soap)
  3410. || soap_end_recv(soap))
  3411. return soap_closesock(soap);
  3412. return soap_closesock(soap);
  3413. }
  3414. int MediaBindingProxy::GetAudioOutputConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurationOptions *trt__GetAudioOutputConfigurationOptions, _trt__GetAudioOutputConfigurationOptionsResponse *trt__GetAudioOutputConfigurationOptionsResponse)
  3415. { struct soap *soap = this;
  3416. struct __trt__GetAudioOutputConfigurationOptions soap_tmp___trt__GetAudioOutputConfigurationOptions;
  3417. if (endpoint)
  3418. soap_endpoint = endpoint;
  3419. if (soap_action == NULL)
  3420. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurationOptions";
  3421. soap_begin(soap);
  3422. soap->encodingStyle = NULL;
  3423. soap_tmp___trt__GetAudioOutputConfigurationOptions.trt__GetAudioOutputConfigurationOptions = trt__GetAudioOutputConfigurationOptions;
  3424. soap_set_version(soap, 2); /* SOAP1.2 */
  3425. soap_serializeheader(soap);
  3426. soap_serialize___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions);
  3427. if (soap_begin_count(soap))
  3428. return soap->error;
  3429. if (soap->mode & SOAP_IO_LENGTH)
  3430. { if (soap_envelope_begin_out(soap)
  3431. || soap_putheader(soap)
  3432. || soap_body_begin_out(soap)
  3433. || soap_put___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions, "-trt:GetAudioOutputConfigurationOptions", NULL)
  3434. || soap_body_end_out(soap)
  3435. || soap_envelope_end_out(soap))
  3436. return soap->error;
  3437. }
  3438. if (soap_end_count(soap))
  3439. return soap->error;
  3440. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3441. || soap_envelope_begin_out(soap)
  3442. || soap_putheader(soap)
  3443. || soap_body_begin_out(soap)
  3444. || soap_put___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions, "-trt:GetAudioOutputConfigurationOptions", NULL)
  3445. || soap_body_end_out(soap)
  3446. || soap_envelope_end_out(soap)
  3447. || soap_end_send(soap))
  3448. return soap_closesock(soap);
  3449. if (!trt__GetAudioOutputConfigurationOptionsResponse)
  3450. return soap_closesock(soap);
  3451. trt__GetAudioOutputConfigurationOptionsResponse->soap_default(soap);
  3452. if (soap_begin_recv(soap)
  3453. || soap_envelope_begin_in(soap)
  3454. || soap_recv_header(soap)
  3455. || soap_body_begin_in(soap))
  3456. return soap_closesock(soap);
  3457. trt__GetAudioOutputConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationOptionsResponse", "");
  3458. if (soap->error)
  3459. return soap_recv_fault(soap, 0);
  3460. if (soap_body_end_in(soap)
  3461. || soap_envelope_end_in(soap)
  3462. || soap_end_recv(soap))
  3463. return soap_closesock(soap);
  3464. return soap_closesock(soap);
  3465. }
  3466. int MediaBindingProxy::GetAudioDecoderConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurationOptions *trt__GetAudioDecoderConfigurationOptions, _trt__GetAudioDecoderConfigurationOptionsResponse *trt__GetAudioDecoderConfigurationOptionsResponse)
  3467. { struct soap *soap = this;
  3468. struct __trt__GetAudioDecoderConfigurationOptions soap_tmp___trt__GetAudioDecoderConfigurationOptions;
  3469. if (endpoint)
  3470. soap_endpoint = endpoint;
  3471. if (soap_action == NULL)
  3472. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurationOptions";
  3473. soap_begin(soap);
  3474. soap->encodingStyle = NULL;
  3475. soap_tmp___trt__GetAudioDecoderConfigurationOptions.trt__GetAudioDecoderConfigurationOptions = trt__GetAudioDecoderConfigurationOptions;
  3476. soap_set_version(soap, 2); /* SOAP1.2 */
  3477. soap_serializeheader(soap);
  3478. soap_serialize___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions);
  3479. if (soap_begin_count(soap))
  3480. return soap->error;
  3481. if (soap->mode & SOAP_IO_LENGTH)
  3482. { if (soap_envelope_begin_out(soap)
  3483. || soap_putheader(soap)
  3484. || soap_body_begin_out(soap)
  3485. || soap_put___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions, "-trt:GetAudioDecoderConfigurationOptions", NULL)
  3486. || soap_body_end_out(soap)
  3487. || soap_envelope_end_out(soap))
  3488. return soap->error;
  3489. }
  3490. if (soap_end_count(soap))
  3491. return soap->error;
  3492. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3493. || soap_envelope_begin_out(soap)
  3494. || soap_putheader(soap)
  3495. || soap_body_begin_out(soap)
  3496. || soap_put___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions, "-trt:GetAudioDecoderConfigurationOptions", NULL)
  3497. || soap_body_end_out(soap)
  3498. || soap_envelope_end_out(soap)
  3499. || soap_end_send(soap))
  3500. return soap_closesock(soap);
  3501. if (!trt__GetAudioDecoderConfigurationOptionsResponse)
  3502. return soap_closesock(soap);
  3503. trt__GetAudioDecoderConfigurationOptionsResponse->soap_default(soap);
  3504. if (soap_begin_recv(soap)
  3505. || soap_envelope_begin_in(soap)
  3506. || soap_recv_header(soap)
  3507. || soap_body_begin_in(soap))
  3508. return soap_closesock(soap);
  3509. trt__GetAudioDecoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationOptionsResponse", "");
  3510. if (soap->error)
  3511. return soap_recv_fault(soap, 0);
  3512. if (soap_body_end_in(soap)
  3513. || soap_envelope_end_in(soap)
  3514. || soap_end_recv(soap))
  3515. return soap_closesock(soap);
  3516. return soap_closesock(soap);
  3517. }
  3518. int MediaBindingProxy::GetGuaranteedNumberOfVideoEncoderInstances(const char *endpoint, const char *soap_action, _trt__GetGuaranteedNumberOfVideoEncoderInstances *trt__GetGuaranteedNumberOfVideoEncoderInstances, _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse *trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
  3519. { struct soap *soap = this;
  3520. struct __trt__GetGuaranteedNumberOfVideoEncoderInstances soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances;
  3521. if (endpoint)
  3522. soap_endpoint = endpoint;
  3523. if (soap_action == NULL)
  3524. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetGuaranteedNumberOfVideoEncoderInstances";
  3525. soap_begin(soap);
  3526. soap->encodingStyle = NULL;
  3527. soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances.trt__GetGuaranteedNumberOfVideoEncoderInstances = trt__GetGuaranteedNumberOfVideoEncoderInstances;
  3528. soap_set_version(soap, 2); /* SOAP1.2 */
  3529. soap_serializeheader(soap);
  3530. soap_serialize___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances);
  3531. if (soap_begin_count(soap))
  3532. return soap->error;
  3533. if (soap->mode & SOAP_IO_LENGTH)
  3534. { if (soap_envelope_begin_out(soap)
  3535. || soap_putheader(soap)
  3536. || soap_body_begin_out(soap)
  3537. || soap_put___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", NULL)
  3538. || soap_body_end_out(soap)
  3539. || soap_envelope_end_out(soap))
  3540. return soap->error;
  3541. }
  3542. if (soap_end_count(soap))
  3543. return soap->error;
  3544. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3545. || soap_envelope_begin_out(soap)
  3546. || soap_putheader(soap)
  3547. || soap_body_begin_out(soap)
  3548. || soap_put___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", NULL)
  3549. || soap_body_end_out(soap)
  3550. || soap_envelope_end_out(soap)
  3551. || soap_end_send(soap))
  3552. return soap_closesock(soap);
  3553. if (!trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
  3554. return soap_closesock(soap);
  3555. trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->soap_default(soap);
  3556. if (soap_begin_recv(soap)
  3557. || soap_envelope_begin_in(soap)
  3558. || soap_recv_header(soap)
  3559. || soap_body_begin_in(soap))
  3560. return soap_closesock(soap);
  3561. trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->soap_get(soap, "trt:GetGuaranteedNumberOfVideoEncoderInstancesResponse", "");
  3562. if (soap->error)
  3563. return soap_recv_fault(soap, 0);
  3564. if (soap_body_end_in(soap)
  3565. || soap_envelope_end_in(soap)
  3566. || soap_end_recv(soap))
  3567. return soap_closesock(soap);
  3568. return soap_closesock(soap);
  3569. }
  3570. int MediaBindingProxy::GetStreamUri(const char *endpoint, const char *soap_action, _trt__GetStreamUri *trt__GetStreamUri, _trt__GetStreamUriResponse *trt__GetStreamUriResponse)
  3571. { struct soap *soap = this;
  3572. struct __trt__GetStreamUri soap_tmp___trt__GetStreamUri;
  3573. if (endpoint)
  3574. soap_endpoint = endpoint;
  3575. if (soap_action == NULL)
  3576. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetStreamUri";
  3577. soap_begin(soap);
  3578. soap->encodingStyle = NULL;
  3579. soap_tmp___trt__GetStreamUri.trt__GetStreamUri = trt__GetStreamUri;
  3580. soap_set_version(soap, 2); /* SOAP1.2 */
  3581. soap_serializeheader(soap);
  3582. soap_serialize___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri);
  3583. if (soap_begin_count(soap))
  3584. return soap->error;
  3585. if (soap->mode & SOAP_IO_LENGTH)
  3586. { if (soap_envelope_begin_out(soap)
  3587. || soap_putheader(soap)
  3588. || soap_body_begin_out(soap)
  3589. || soap_put___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri, "-trt:GetStreamUri", NULL)
  3590. || soap_body_end_out(soap)
  3591. || soap_envelope_end_out(soap))
  3592. return soap->error;
  3593. }
  3594. if (soap_end_count(soap))
  3595. return soap->error;
  3596. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3597. || soap_envelope_begin_out(soap)
  3598. || soap_putheader(soap)
  3599. || soap_body_begin_out(soap)
  3600. || soap_put___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri, "-trt:GetStreamUri", NULL)
  3601. || soap_body_end_out(soap)
  3602. || soap_envelope_end_out(soap)
  3603. || soap_end_send(soap))
  3604. return soap_closesock(soap);
  3605. if (!trt__GetStreamUriResponse)
  3606. return soap_closesock(soap);
  3607. trt__GetStreamUriResponse->soap_default(soap);
  3608. if (soap_begin_recv(soap)
  3609. || soap_envelope_begin_in(soap)
  3610. || soap_recv_header(soap)
  3611. || soap_body_begin_in(soap))
  3612. return soap_closesock(soap);
  3613. trt__GetStreamUriResponse->soap_get(soap, "trt:GetStreamUriResponse", "");
  3614. if (soap->error)
  3615. return soap_recv_fault(soap, 0);
  3616. if (soap_body_end_in(soap)
  3617. || soap_envelope_end_in(soap)
  3618. || soap_end_recv(soap))
  3619. return soap_closesock(soap);
  3620. return soap_closesock(soap);
  3621. }
  3622. int MediaBindingProxy::StartMulticastStreaming(const char *endpoint, const char *soap_action, _trt__StartMulticastStreaming *trt__StartMulticastStreaming, _trt__StartMulticastStreamingResponse *trt__StartMulticastStreamingResponse)
  3623. { struct soap *soap = this;
  3624. struct __trt__StartMulticastStreaming soap_tmp___trt__StartMulticastStreaming;
  3625. if (endpoint)
  3626. soap_endpoint = endpoint;
  3627. if (soap_action == NULL)
  3628. soap_action = "http://www.onvif.org/ver10/media/wsdl/StartMulticastStreaming";
  3629. soap_begin(soap);
  3630. soap->encodingStyle = NULL;
  3631. soap_tmp___trt__StartMulticastStreaming.trt__StartMulticastStreaming = trt__StartMulticastStreaming;
  3632. soap_set_version(soap, 2); /* SOAP1.2 */
  3633. soap_serializeheader(soap);
  3634. soap_serialize___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming);
  3635. if (soap_begin_count(soap))
  3636. return soap->error;
  3637. if (soap->mode & SOAP_IO_LENGTH)
  3638. { if (soap_envelope_begin_out(soap)
  3639. || soap_putheader(soap)
  3640. || soap_body_begin_out(soap)
  3641. || soap_put___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming, "-trt:StartMulticastStreaming", NULL)
  3642. || soap_body_end_out(soap)
  3643. || soap_envelope_end_out(soap))
  3644. return soap->error;
  3645. }
  3646. if (soap_end_count(soap))
  3647. return soap->error;
  3648. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3649. || soap_envelope_begin_out(soap)
  3650. || soap_putheader(soap)
  3651. || soap_body_begin_out(soap)
  3652. || soap_put___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming, "-trt:StartMulticastStreaming", NULL)
  3653. || soap_body_end_out(soap)
  3654. || soap_envelope_end_out(soap)
  3655. || soap_end_send(soap))
  3656. return soap_closesock(soap);
  3657. if (!trt__StartMulticastStreamingResponse)
  3658. return soap_closesock(soap);
  3659. trt__StartMulticastStreamingResponse->soap_default(soap);
  3660. if (soap_begin_recv(soap)
  3661. || soap_envelope_begin_in(soap)
  3662. || soap_recv_header(soap)
  3663. || soap_body_begin_in(soap))
  3664. return soap_closesock(soap);
  3665. trt__StartMulticastStreamingResponse->soap_get(soap, "trt:StartMulticastStreamingResponse", "");
  3666. if (soap->error)
  3667. return soap_recv_fault(soap, 0);
  3668. if (soap_body_end_in(soap)
  3669. || soap_envelope_end_in(soap)
  3670. || soap_end_recv(soap))
  3671. return soap_closesock(soap);
  3672. return soap_closesock(soap);
  3673. }
  3674. int MediaBindingProxy::StopMulticastStreaming(const char *endpoint, const char *soap_action, _trt__StopMulticastStreaming *trt__StopMulticastStreaming, _trt__StopMulticastStreamingResponse *trt__StopMulticastStreamingResponse)
  3675. { struct soap *soap = this;
  3676. struct __trt__StopMulticastStreaming soap_tmp___trt__StopMulticastStreaming;
  3677. if (endpoint)
  3678. soap_endpoint = endpoint;
  3679. if (soap_action == NULL)
  3680. soap_action = "http://www.onvif.org/ver10/media/wsdl/StopMulticastStreaming";
  3681. soap_begin(soap);
  3682. soap->encodingStyle = NULL;
  3683. soap_tmp___trt__StopMulticastStreaming.trt__StopMulticastStreaming = trt__StopMulticastStreaming;
  3684. soap_set_version(soap, 2); /* SOAP1.2 */
  3685. soap_serializeheader(soap);
  3686. soap_serialize___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming);
  3687. if (soap_begin_count(soap))
  3688. return soap->error;
  3689. if (soap->mode & SOAP_IO_LENGTH)
  3690. { if (soap_envelope_begin_out(soap)
  3691. || soap_putheader(soap)
  3692. || soap_body_begin_out(soap)
  3693. || soap_put___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming, "-trt:StopMulticastStreaming", NULL)
  3694. || soap_body_end_out(soap)
  3695. || soap_envelope_end_out(soap))
  3696. return soap->error;
  3697. }
  3698. if (soap_end_count(soap))
  3699. return soap->error;
  3700. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3701. || soap_envelope_begin_out(soap)
  3702. || soap_putheader(soap)
  3703. || soap_body_begin_out(soap)
  3704. || soap_put___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming, "-trt:StopMulticastStreaming", NULL)
  3705. || soap_body_end_out(soap)
  3706. || soap_envelope_end_out(soap)
  3707. || soap_end_send(soap))
  3708. return soap_closesock(soap);
  3709. if (!trt__StopMulticastStreamingResponse)
  3710. return soap_closesock(soap);
  3711. trt__StopMulticastStreamingResponse->soap_default(soap);
  3712. if (soap_begin_recv(soap)
  3713. || soap_envelope_begin_in(soap)
  3714. || soap_recv_header(soap)
  3715. || soap_body_begin_in(soap))
  3716. return soap_closesock(soap);
  3717. trt__StopMulticastStreamingResponse->soap_get(soap, "trt:StopMulticastStreamingResponse", "");
  3718. if (soap->error)
  3719. return soap_recv_fault(soap, 0);
  3720. if (soap_body_end_in(soap)
  3721. || soap_envelope_end_in(soap)
  3722. || soap_end_recv(soap))
  3723. return soap_closesock(soap);
  3724. return soap_closesock(soap);
  3725. }
  3726. int MediaBindingProxy::SetSynchronizationPoint(const char *endpoint, const char *soap_action, _trt__SetSynchronizationPoint *trt__SetSynchronizationPoint, _trt__SetSynchronizationPointResponse *trt__SetSynchronizationPointResponse)
  3727. { struct soap *soap = this;
  3728. struct __trt__SetSynchronizationPoint soap_tmp___trt__SetSynchronizationPoint;
  3729. if (endpoint)
  3730. soap_endpoint = endpoint;
  3731. if (soap_action == NULL)
  3732. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetSynchronizationPoint";
  3733. soap_begin(soap);
  3734. soap->encodingStyle = NULL;
  3735. soap_tmp___trt__SetSynchronizationPoint.trt__SetSynchronizationPoint = trt__SetSynchronizationPoint;
  3736. soap_set_version(soap, 2); /* SOAP1.2 */
  3737. soap_serializeheader(soap);
  3738. soap_serialize___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint);
  3739. if (soap_begin_count(soap))
  3740. return soap->error;
  3741. if (soap->mode & SOAP_IO_LENGTH)
  3742. { if (soap_envelope_begin_out(soap)
  3743. || soap_putheader(soap)
  3744. || soap_body_begin_out(soap)
  3745. || soap_put___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint, "-trt:SetSynchronizationPoint", NULL)
  3746. || soap_body_end_out(soap)
  3747. || soap_envelope_end_out(soap))
  3748. return soap->error;
  3749. }
  3750. if (soap_end_count(soap))
  3751. return soap->error;
  3752. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3753. || soap_envelope_begin_out(soap)
  3754. || soap_putheader(soap)
  3755. || soap_body_begin_out(soap)
  3756. || soap_put___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint, "-trt:SetSynchronizationPoint", NULL)
  3757. || soap_body_end_out(soap)
  3758. || soap_envelope_end_out(soap)
  3759. || soap_end_send(soap))
  3760. return soap_closesock(soap);
  3761. if (!trt__SetSynchronizationPointResponse)
  3762. return soap_closesock(soap);
  3763. trt__SetSynchronizationPointResponse->soap_default(soap);
  3764. if (soap_begin_recv(soap)
  3765. || soap_envelope_begin_in(soap)
  3766. || soap_recv_header(soap)
  3767. || soap_body_begin_in(soap))
  3768. return soap_closesock(soap);
  3769. trt__SetSynchronizationPointResponse->soap_get(soap, "trt:SetSynchronizationPointResponse", "");
  3770. if (soap->error)
  3771. return soap_recv_fault(soap, 0);
  3772. if (soap_body_end_in(soap)
  3773. || soap_envelope_end_in(soap)
  3774. || soap_end_recv(soap))
  3775. return soap_closesock(soap);
  3776. return soap_closesock(soap);
  3777. }
  3778. int MediaBindingProxy::GetSnapshotUri(const char *endpoint, const char *soap_action, _trt__GetSnapshotUri *trt__GetSnapshotUri, _trt__GetSnapshotUriResponse *trt__GetSnapshotUriResponse)
  3779. { struct soap *soap = this;
  3780. struct __trt__GetSnapshotUri soap_tmp___trt__GetSnapshotUri;
  3781. if (endpoint)
  3782. soap_endpoint = endpoint;
  3783. if (soap_action == NULL)
  3784. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetSnapshotUri";
  3785. soap_begin(soap);
  3786. soap->encodingStyle = NULL;
  3787. soap_tmp___trt__GetSnapshotUri.trt__GetSnapshotUri = trt__GetSnapshotUri;
  3788. soap_set_version(soap, 2); /* SOAP1.2 */
  3789. soap_serializeheader(soap);
  3790. soap_serialize___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri);
  3791. if (soap_begin_count(soap))
  3792. return soap->error;
  3793. if (soap->mode & SOAP_IO_LENGTH)
  3794. { if (soap_envelope_begin_out(soap)
  3795. || soap_putheader(soap)
  3796. || soap_body_begin_out(soap)
  3797. || soap_put___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri, "-trt:GetSnapshotUri", NULL)
  3798. || soap_body_end_out(soap)
  3799. || soap_envelope_end_out(soap))
  3800. return soap->error;
  3801. }
  3802. if (soap_end_count(soap))
  3803. return soap->error;
  3804. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3805. || soap_envelope_begin_out(soap)
  3806. || soap_putheader(soap)
  3807. || soap_body_begin_out(soap)
  3808. || soap_put___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri, "-trt:GetSnapshotUri", NULL)
  3809. || soap_body_end_out(soap)
  3810. || soap_envelope_end_out(soap)
  3811. || soap_end_send(soap))
  3812. return soap_closesock(soap);
  3813. if (!trt__GetSnapshotUriResponse)
  3814. return soap_closesock(soap);
  3815. trt__GetSnapshotUriResponse->soap_default(soap);
  3816. if (soap_begin_recv(soap)
  3817. || soap_envelope_begin_in(soap)
  3818. || soap_recv_header(soap)
  3819. || soap_body_begin_in(soap))
  3820. return soap_closesock(soap);
  3821. trt__GetSnapshotUriResponse->soap_get(soap, "trt:GetSnapshotUriResponse", "");
  3822. if (soap->error)
  3823. return soap_recv_fault(soap, 0);
  3824. if (soap_body_end_in(soap)
  3825. || soap_envelope_end_in(soap)
  3826. || soap_end_recv(soap))
  3827. return soap_closesock(soap);
  3828. return soap_closesock(soap);
  3829. }
  3830. int MediaBindingProxy::GetVideoSourceModes(const char *endpoint, const char *soap_action, _trt__GetVideoSourceModes *trt__GetVideoSourceModes, _trt__GetVideoSourceModesResponse *trt__GetVideoSourceModesResponse)
  3831. { struct soap *soap = this;
  3832. struct __trt__GetVideoSourceModes soap_tmp___trt__GetVideoSourceModes;
  3833. if (endpoint)
  3834. soap_endpoint = endpoint;
  3835. if (soap_action == NULL)
  3836. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceModes";
  3837. soap_begin(soap);
  3838. soap->encodingStyle = NULL;
  3839. soap_tmp___trt__GetVideoSourceModes.trt__GetVideoSourceModes = trt__GetVideoSourceModes;
  3840. soap_set_version(soap, 2); /* SOAP1.2 */
  3841. soap_serializeheader(soap);
  3842. soap_serialize___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes);
  3843. if (soap_begin_count(soap))
  3844. return soap->error;
  3845. if (soap->mode & SOAP_IO_LENGTH)
  3846. { if (soap_envelope_begin_out(soap)
  3847. || soap_putheader(soap)
  3848. || soap_body_begin_out(soap)
  3849. || soap_put___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes, "-trt:GetVideoSourceModes", NULL)
  3850. || soap_body_end_out(soap)
  3851. || soap_envelope_end_out(soap))
  3852. return soap->error;
  3853. }
  3854. if (soap_end_count(soap))
  3855. return soap->error;
  3856. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3857. || soap_envelope_begin_out(soap)
  3858. || soap_putheader(soap)
  3859. || soap_body_begin_out(soap)
  3860. || soap_put___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes, "-trt:GetVideoSourceModes", NULL)
  3861. || soap_body_end_out(soap)
  3862. || soap_envelope_end_out(soap)
  3863. || soap_end_send(soap))
  3864. return soap_closesock(soap);
  3865. if (!trt__GetVideoSourceModesResponse)
  3866. return soap_closesock(soap);
  3867. trt__GetVideoSourceModesResponse->soap_default(soap);
  3868. if (soap_begin_recv(soap)
  3869. || soap_envelope_begin_in(soap)
  3870. || soap_recv_header(soap)
  3871. || soap_body_begin_in(soap))
  3872. return soap_closesock(soap);
  3873. trt__GetVideoSourceModesResponse->soap_get(soap, "trt:GetVideoSourceModesResponse", "");
  3874. if (soap->error)
  3875. return soap_recv_fault(soap, 0);
  3876. if (soap_body_end_in(soap)
  3877. || soap_envelope_end_in(soap)
  3878. || soap_end_recv(soap))
  3879. return soap_closesock(soap);
  3880. return soap_closesock(soap);
  3881. }
  3882. int MediaBindingProxy::SetVideoSourceMode(const char *endpoint, const char *soap_action, _trt__SetVideoSourceMode *trt__SetVideoSourceMode, _trt__SetVideoSourceModeResponse *trt__SetVideoSourceModeResponse)
  3883. { struct soap *soap = this;
  3884. struct __trt__SetVideoSourceMode soap_tmp___trt__SetVideoSourceMode;
  3885. if (endpoint)
  3886. soap_endpoint = endpoint;
  3887. if (soap_action == NULL)
  3888. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceMode";
  3889. soap_begin(soap);
  3890. soap->encodingStyle = NULL;
  3891. soap_tmp___trt__SetVideoSourceMode.trt__SetVideoSourceMode = trt__SetVideoSourceMode;
  3892. soap_set_version(soap, 2); /* SOAP1.2 */
  3893. soap_serializeheader(soap);
  3894. soap_serialize___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode);
  3895. if (soap_begin_count(soap))
  3896. return soap->error;
  3897. if (soap->mode & SOAP_IO_LENGTH)
  3898. { if (soap_envelope_begin_out(soap)
  3899. || soap_putheader(soap)
  3900. || soap_body_begin_out(soap)
  3901. || soap_put___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode, "-trt:SetVideoSourceMode", NULL)
  3902. || soap_body_end_out(soap)
  3903. || soap_envelope_end_out(soap))
  3904. return soap->error;
  3905. }
  3906. if (soap_end_count(soap))
  3907. return soap->error;
  3908. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3909. || soap_envelope_begin_out(soap)
  3910. || soap_putheader(soap)
  3911. || soap_body_begin_out(soap)
  3912. || soap_put___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode, "-trt:SetVideoSourceMode", NULL)
  3913. || soap_body_end_out(soap)
  3914. || soap_envelope_end_out(soap)
  3915. || soap_end_send(soap))
  3916. return soap_closesock(soap);
  3917. if (!trt__SetVideoSourceModeResponse)
  3918. return soap_closesock(soap);
  3919. trt__SetVideoSourceModeResponse->soap_default(soap);
  3920. if (soap_begin_recv(soap)
  3921. || soap_envelope_begin_in(soap)
  3922. || soap_recv_header(soap)
  3923. || soap_body_begin_in(soap))
  3924. return soap_closesock(soap);
  3925. trt__SetVideoSourceModeResponse->soap_get(soap, "trt:SetVideoSourceModeResponse", "");
  3926. if (soap->error)
  3927. return soap_recv_fault(soap, 0);
  3928. if (soap_body_end_in(soap)
  3929. || soap_envelope_end_in(soap)
  3930. || soap_end_recv(soap))
  3931. return soap_closesock(soap);
  3932. return soap_closesock(soap);
  3933. }
  3934. int MediaBindingProxy::GetOSDs(const char *endpoint, const char *soap_action, _trt__GetOSDs *trt__GetOSDs, _trt__GetOSDsResponse *trt__GetOSDsResponse)
  3935. { struct soap *soap = this;
  3936. struct __trt__GetOSDs soap_tmp___trt__GetOSDs;
  3937. if (endpoint)
  3938. soap_endpoint = endpoint;
  3939. if (soap_action == NULL)
  3940. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDs";
  3941. soap_begin(soap);
  3942. soap->encodingStyle = NULL;
  3943. soap_tmp___trt__GetOSDs.trt__GetOSDs = trt__GetOSDs;
  3944. soap_set_version(soap, 2); /* SOAP1.2 */
  3945. soap_serializeheader(soap);
  3946. soap_serialize___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs);
  3947. if (soap_begin_count(soap))
  3948. return soap->error;
  3949. if (soap->mode & SOAP_IO_LENGTH)
  3950. { if (soap_envelope_begin_out(soap)
  3951. || soap_putheader(soap)
  3952. || soap_body_begin_out(soap)
  3953. || soap_put___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs, "-trt:GetOSDs", NULL)
  3954. || soap_body_end_out(soap)
  3955. || soap_envelope_end_out(soap))
  3956. return soap->error;
  3957. }
  3958. if (soap_end_count(soap))
  3959. return soap->error;
  3960. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  3961. || soap_envelope_begin_out(soap)
  3962. || soap_putheader(soap)
  3963. || soap_body_begin_out(soap)
  3964. || soap_put___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs, "-trt:GetOSDs", NULL)
  3965. || soap_body_end_out(soap)
  3966. || soap_envelope_end_out(soap)
  3967. || soap_end_send(soap))
  3968. return soap_closesock(soap);
  3969. if (!trt__GetOSDsResponse)
  3970. return soap_closesock(soap);
  3971. trt__GetOSDsResponse->soap_default(soap);
  3972. if (soap_begin_recv(soap)
  3973. || soap_envelope_begin_in(soap)
  3974. || soap_recv_header(soap)
  3975. || soap_body_begin_in(soap))
  3976. return soap_closesock(soap);
  3977. trt__GetOSDsResponse->soap_get(soap, "trt:GetOSDsResponse", "");
  3978. if (soap->error)
  3979. return soap_recv_fault(soap, 0);
  3980. if (soap_body_end_in(soap)
  3981. || soap_envelope_end_in(soap)
  3982. || soap_end_recv(soap))
  3983. return soap_closesock(soap);
  3984. return soap_closesock(soap);
  3985. }
  3986. int MediaBindingProxy::GetOSD(const char *endpoint, const char *soap_action, _trt__GetOSD *trt__GetOSD, _trt__GetOSDResponse *trt__GetOSDResponse)
  3987. { struct soap *soap = this;
  3988. struct __trt__GetOSD soap_tmp___trt__GetOSD;
  3989. if (endpoint)
  3990. soap_endpoint = endpoint;
  3991. if (soap_action == NULL)
  3992. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSD";
  3993. soap_begin(soap);
  3994. soap->encodingStyle = NULL;
  3995. soap_tmp___trt__GetOSD.trt__GetOSD = trt__GetOSD;
  3996. soap_set_version(soap, 2); /* SOAP1.2 */
  3997. soap_serializeheader(soap);
  3998. soap_serialize___trt__GetOSD(soap, &soap_tmp___trt__GetOSD);
  3999. if (soap_begin_count(soap))
  4000. return soap->error;
  4001. if (soap->mode & SOAP_IO_LENGTH)
  4002. { if (soap_envelope_begin_out(soap)
  4003. || soap_putheader(soap)
  4004. || soap_body_begin_out(soap)
  4005. || soap_put___trt__GetOSD(soap, &soap_tmp___trt__GetOSD, "-trt:GetOSD", NULL)
  4006. || soap_body_end_out(soap)
  4007. || soap_envelope_end_out(soap))
  4008. return soap->error;
  4009. }
  4010. if (soap_end_count(soap))
  4011. return soap->error;
  4012. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4013. || soap_envelope_begin_out(soap)
  4014. || soap_putheader(soap)
  4015. || soap_body_begin_out(soap)
  4016. || soap_put___trt__GetOSD(soap, &soap_tmp___trt__GetOSD, "-trt:GetOSD", NULL)
  4017. || soap_body_end_out(soap)
  4018. || soap_envelope_end_out(soap)
  4019. || soap_end_send(soap))
  4020. return soap_closesock(soap);
  4021. if (!trt__GetOSDResponse)
  4022. return soap_closesock(soap);
  4023. trt__GetOSDResponse->soap_default(soap);
  4024. if (soap_begin_recv(soap)
  4025. || soap_envelope_begin_in(soap)
  4026. || soap_recv_header(soap)
  4027. || soap_body_begin_in(soap))
  4028. return soap_closesock(soap);
  4029. trt__GetOSDResponse->soap_get(soap, "trt:GetOSDResponse", "");
  4030. if (soap->error)
  4031. return soap_recv_fault(soap, 0);
  4032. if (soap_body_end_in(soap)
  4033. || soap_envelope_end_in(soap)
  4034. || soap_end_recv(soap))
  4035. return soap_closesock(soap);
  4036. return soap_closesock(soap);
  4037. }
  4038. int MediaBindingProxy::GetOSDOptions(const char *endpoint, const char *soap_action, _trt__GetOSDOptions *trt__GetOSDOptions, _trt__GetOSDOptionsResponse *trt__GetOSDOptionsResponse)
  4039. { struct soap *soap = this;
  4040. struct __trt__GetOSDOptions soap_tmp___trt__GetOSDOptions;
  4041. if (endpoint)
  4042. soap_endpoint = endpoint;
  4043. if (soap_action == NULL)
  4044. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDOptions";
  4045. soap_begin(soap);
  4046. soap->encodingStyle = NULL;
  4047. soap_tmp___trt__GetOSDOptions.trt__GetOSDOptions = trt__GetOSDOptions;
  4048. soap_set_version(soap, 2); /* SOAP1.2 */
  4049. soap_serializeheader(soap);
  4050. soap_serialize___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions);
  4051. if (soap_begin_count(soap))
  4052. return soap->error;
  4053. if (soap->mode & SOAP_IO_LENGTH)
  4054. { if (soap_envelope_begin_out(soap)
  4055. || soap_putheader(soap)
  4056. || soap_body_begin_out(soap)
  4057. || soap_put___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions, "-trt:GetOSDOptions", NULL)
  4058. || soap_body_end_out(soap)
  4059. || soap_envelope_end_out(soap))
  4060. return soap->error;
  4061. }
  4062. if (soap_end_count(soap))
  4063. return soap->error;
  4064. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4065. || soap_envelope_begin_out(soap)
  4066. || soap_putheader(soap)
  4067. || soap_body_begin_out(soap)
  4068. || soap_put___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions, "-trt:GetOSDOptions", NULL)
  4069. || soap_body_end_out(soap)
  4070. || soap_envelope_end_out(soap)
  4071. || soap_end_send(soap))
  4072. return soap_closesock(soap);
  4073. if (!trt__GetOSDOptionsResponse)
  4074. return soap_closesock(soap);
  4075. trt__GetOSDOptionsResponse->soap_default(soap);
  4076. if (soap_begin_recv(soap)
  4077. || soap_envelope_begin_in(soap)
  4078. || soap_recv_header(soap)
  4079. || soap_body_begin_in(soap))
  4080. return soap_closesock(soap);
  4081. trt__GetOSDOptionsResponse->soap_get(soap, "trt:GetOSDOptionsResponse", "");
  4082. if (soap->error)
  4083. return soap_recv_fault(soap, 0);
  4084. if (soap_body_end_in(soap)
  4085. || soap_envelope_end_in(soap)
  4086. || soap_end_recv(soap))
  4087. return soap_closesock(soap);
  4088. return soap_closesock(soap);
  4089. }
  4090. int MediaBindingProxy::SetOSD(const char *endpoint, const char *soap_action, _trt__SetOSD *trt__SetOSD, _trt__SetOSDResponse *trt__SetOSDResponse)
  4091. { struct soap *soap = this;
  4092. struct __trt__SetOSD soap_tmp___trt__SetOSD;
  4093. if (endpoint)
  4094. soap_endpoint = endpoint;
  4095. if (soap_action == NULL)
  4096. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetOSD";
  4097. soap_begin(soap);
  4098. soap->encodingStyle = NULL;
  4099. soap_tmp___trt__SetOSD.trt__SetOSD = trt__SetOSD;
  4100. soap_set_version(soap, 2); /* SOAP1.2 */
  4101. soap_serializeheader(soap);
  4102. soap_serialize___trt__SetOSD(soap, &soap_tmp___trt__SetOSD);
  4103. if (soap_begin_count(soap))
  4104. return soap->error;
  4105. if (soap->mode & SOAP_IO_LENGTH)
  4106. { if (soap_envelope_begin_out(soap)
  4107. || soap_putheader(soap)
  4108. || soap_body_begin_out(soap)
  4109. || soap_put___trt__SetOSD(soap, &soap_tmp___trt__SetOSD, "-trt:SetOSD", NULL)
  4110. || soap_body_end_out(soap)
  4111. || soap_envelope_end_out(soap))
  4112. return soap->error;
  4113. }
  4114. if (soap_end_count(soap))
  4115. return soap->error;
  4116. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4117. || soap_envelope_begin_out(soap)
  4118. || soap_putheader(soap)
  4119. || soap_body_begin_out(soap)
  4120. || soap_put___trt__SetOSD(soap, &soap_tmp___trt__SetOSD, "-trt:SetOSD", NULL)
  4121. || soap_body_end_out(soap)
  4122. || soap_envelope_end_out(soap)
  4123. || soap_end_send(soap))
  4124. return soap_closesock(soap);
  4125. if (!trt__SetOSDResponse)
  4126. return soap_closesock(soap);
  4127. trt__SetOSDResponse->soap_default(soap);
  4128. if (soap_begin_recv(soap)
  4129. || soap_envelope_begin_in(soap)
  4130. || soap_recv_header(soap)
  4131. || soap_body_begin_in(soap))
  4132. return soap_closesock(soap);
  4133. trt__SetOSDResponse->soap_get(soap, "trt:SetOSDResponse", "");
  4134. if (soap->error)
  4135. return soap_recv_fault(soap, 0);
  4136. if (soap_body_end_in(soap)
  4137. || soap_envelope_end_in(soap)
  4138. || soap_end_recv(soap))
  4139. return soap_closesock(soap);
  4140. return soap_closesock(soap);
  4141. }
  4142. int MediaBindingProxy::CreateOSD(const char *endpoint, const char *soap_action, _trt__CreateOSD *trt__CreateOSD, _trt__CreateOSDResponse *trt__CreateOSDResponse)
  4143. { struct soap *soap = this;
  4144. struct __trt__CreateOSD soap_tmp___trt__CreateOSD;
  4145. if (endpoint)
  4146. soap_endpoint = endpoint;
  4147. if (soap_action == NULL)
  4148. soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateOSD";
  4149. soap_begin(soap);
  4150. soap->encodingStyle = NULL;
  4151. soap_tmp___trt__CreateOSD.trt__CreateOSD = trt__CreateOSD;
  4152. soap_set_version(soap, 2); /* SOAP1.2 */
  4153. soap_serializeheader(soap);
  4154. soap_serialize___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD);
  4155. if (soap_begin_count(soap))
  4156. return soap->error;
  4157. if (soap->mode & SOAP_IO_LENGTH)
  4158. { if (soap_envelope_begin_out(soap)
  4159. || soap_putheader(soap)
  4160. || soap_body_begin_out(soap)
  4161. || soap_put___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD, "-trt:CreateOSD", NULL)
  4162. || soap_body_end_out(soap)
  4163. || soap_envelope_end_out(soap))
  4164. return soap->error;
  4165. }
  4166. if (soap_end_count(soap))
  4167. return soap->error;
  4168. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4169. || soap_envelope_begin_out(soap)
  4170. || soap_putheader(soap)
  4171. || soap_body_begin_out(soap)
  4172. || soap_put___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD, "-trt:CreateOSD", NULL)
  4173. || soap_body_end_out(soap)
  4174. || soap_envelope_end_out(soap)
  4175. || soap_end_send(soap))
  4176. return soap_closesock(soap);
  4177. if (!trt__CreateOSDResponse)
  4178. return soap_closesock(soap);
  4179. trt__CreateOSDResponse->soap_default(soap);
  4180. if (soap_begin_recv(soap)
  4181. || soap_envelope_begin_in(soap)
  4182. || soap_recv_header(soap)
  4183. || soap_body_begin_in(soap))
  4184. return soap_closesock(soap);
  4185. trt__CreateOSDResponse->soap_get(soap, "trt:CreateOSDResponse", "");
  4186. if (soap->error)
  4187. return soap_recv_fault(soap, 0);
  4188. if (soap_body_end_in(soap)
  4189. || soap_envelope_end_in(soap)
  4190. || soap_end_recv(soap))
  4191. return soap_closesock(soap);
  4192. return soap_closesock(soap);
  4193. }
  4194. int MediaBindingProxy::DeleteOSD(const char *endpoint, const char *soap_action, _trt__DeleteOSD *trt__DeleteOSD, _trt__DeleteOSDResponse *trt__DeleteOSDResponse)
  4195. { struct soap *soap = this;
  4196. struct __trt__DeleteOSD soap_tmp___trt__DeleteOSD;
  4197. if (endpoint)
  4198. soap_endpoint = endpoint;
  4199. if (soap_action == NULL)
  4200. soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteOSD";
  4201. soap_begin(soap);
  4202. soap->encodingStyle = NULL;
  4203. soap_tmp___trt__DeleteOSD.trt__DeleteOSD = trt__DeleteOSD;
  4204. soap_set_version(soap, 2); /* SOAP1.2 */
  4205. soap_serializeheader(soap);
  4206. soap_serialize___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD);
  4207. if (soap_begin_count(soap))
  4208. return soap->error;
  4209. if (soap->mode & SOAP_IO_LENGTH)
  4210. { if (soap_envelope_begin_out(soap)
  4211. || soap_putheader(soap)
  4212. || soap_body_begin_out(soap)
  4213. || soap_put___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD, "-trt:DeleteOSD", NULL)
  4214. || soap_body_end_out(soap)
  4215. || soap_envelope_end_out(soap))
  4216. return soap->error;
  4217. }
  4218. if (soap_end_count(soap))
  4219. return soap->error;
  4220. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4221. || soap_envelope_begin_out(soap)
  4222. || soap_putheader(soap)
  4223. || soap_body_begin_out(soap)
  4224. || soap_put___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD, "-trt:DeleteOSD", NULL)
  4225. || soap_body_end_out(soap)
  4226. || soap_envelope_end_out(soap)
  4227. || soap_end_send(soap))
  4228. return soap_closesock(soap);
  4229. if (!trt__DeleteOSDResponse)
  4230. return soap_closesock(soap);
  4231. trt__DeleteOSDResponse->soap_default(soap);
  4232. if (soap_begin_recv(soap)
  4233. || soap_envelope_begin_in(soap)
  4234. || soap_recv_header(soap)
  4235. || soap_body_begin_in(soap))
  4236. return soap_closesock(soap);
  4237. trt__DeleteOSDResponse->soap_get(soap, "trt:DeleteOSDResponse", "");
  4238. if (soap->error)
  4239. return soap_recv_fault(soap, 0);
  4240. if (soap_body_end_in(soap)
  4241. || soap_envelope_end_in(soap)
  4242. || soap_end_recv(soap))
  4243. return soap_closesock(soap);
  4244. return soap_closesock(soap);
  4245. }
  4246. int MediaBindingProxy::GetServiceCapabilities_(const char *endpoint, const char *soap_action, _trt__GetServiceCapabilities *trt__GetServiceCapabilities, _trt__GetServiceCapabilitiesResponse *trt__GetServiceCapabilitiesResponse)
  4247. { struct soap *soap = this;
  4248. struct __trt__GetServiceCapabilities_ soap_tmp___trt__GetServiceCapabilities_;
  4249. if (endpoint)
  4250. soap_endpoint = endpoint;
  4251. if (soap_action == NULL)
  4252. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetServiceCapabilities";
  4253. soap_begin(soap);
  4254. soap->encodingStyle = NULL;
  4255. soap_tmp___trt__GetServiceCapabilities_.trt__GetServiceCapabilities = trt__GetServiceCapabilities;
  4256. soap_set_version(soap, 2); /* SOAP1.2 */
  4257. soap_serializeheader(soap);
  4258. soap_serialize___trt__GetServiceCapabilities_(soap, &soap_tmp___trt__GetServiceCapabilities_);
  4259. if (soap_begin_count(soap))
  4260. return soap->error;
  4261. if (soap->mode & SOAP_IO_LENGTH)
  4262. { if (soap_envelope_begin_out(soap)
  4263. || soap_putheader(soap)
  4264. || soap_body_begin_out(soap)
  4265. || soap_put___trt__GetServiceCapabilities_(soap, &soap_tmp___trt__GetServiceCapabilities_, "-trt:GetServiceCapabilities", NULL)
  4266. || soap_body_end_out(soap)
  4267. || soap_envelope_end_out(soap))
  4268. return soap->error;
  4269. }
  4270. if (soap_end_count(soap))
  4271. return soap->error;
  4272. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4273. || soap_envelope_begin_out(soap)
  4274. || soap_putheader(soap)
  4275. || soap_body_begin_out(soap)
  4276. || soap_put___trt__GetServiceCapabilities_(soap, &soap_tmp___trt__GetServiceCapabilities_, "-trt:GetServiceCapabilities", NULL)
  4277. || soap_body_end_out(soap)
  4278. || soap_envelope_end_out(soap)
  4279. || soap_end_send(soap))
  4280. return soap_closesock(soap);
  4281. if (!trt__GetServiceCapabilitiesResponse)
  4282. return soap_closesock(soap);
  4283. trt__GetServiceCapabilitiesResponse->soap_default(soap);
  4284. if (soap_begin_recv(soap)
  4285. || soap_envelope_begin_in(soap)
  4286. || soap_recv_header(soap)
  4287. || soap_body_begin_in(soap))
  4288. return soap_closesock(soap);
  4289. trt__GetServiceCapabilitiesResponse->soap_get(soap, "trt:GetServiceCapabilitiesResponse", "");
  4290. if (soap->error)
  4291. return soap_recv_fault(soap, 0);
  4292. if (soap_body_end_in(soap)
  4293. || soap_envelope_end_in(soap)
  4294. || soap_end_recv(soap))
  4295. return soap_closesock(soap);
  4296. return soap_closesock(soap);
  4297. }
  4298. int MediaBindingProxy::GetVideoSources_(const char *endpoint, const char *soap_action, _trt__GetVideoSources *trt__GetVideoSources, _trt__GetVideoSourcesResponse *trt__GetVideoSourcesResponse)
  4299. { struct soap *soap = this;
  4300. struct __trt__GetVideoSources_ soap_tmp___trt__GetVideoSources_;
  4301. if (endpoint)
  4302. soap_endpoint = endpoint;
  4303. if (soap_action == NULL)
  4304. soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSources/";
  4305. soap_begin(soap);
  4306. soap->encodingStyle = NULL;
  4307. soap_tmp___trt__GetVideoSources_.trt__GetVideoSources = trt__GetVideoSources;
  4308. soap_set_version(soap, 2); /* SOAP1.2 */
  4309. soap_serializeheader(soap);
  4310. soap_serialize___trt__GetVideoSources_(soap, &soap_tmp___trt__GetVideoSources_);
  4311. if (soap_begin_count(soap))
  4312. return soap->error;
  4313. if (soap->mode & SOAP_IO_LENGTH)
  4314. { if (soap_envelope_begin_out(soap)
  4315. || soap_putheader(soap)
  4316. || soap_body_begin_out(soap)
  4317. || soap_put___trt__GetVideoSources_(soap, &soap_tmp___trt__GetVideoSources_, "-trt:GetVideoSources", NULL)
  4318. || soap_body_end_out(soap)
  4319. || soap_envelope_end_out(soap))
  4320. return soap->error;
  4321. }
  4322. if (soap_end_count(soap))
  4323. return soap->error;
  4324. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4325. || soap_envelope_begin_out(soap)
  4326. || soap_putheader(soap)
  4327. || soap_body_begin_out(soap)
  4328. || soap_put___trt__GetVideoSources_(soap, &soap_tmp___trt__GetVideoSources_, "-trt:GetVideoSources", NULL)
  4329. || soap_body_end_out(soap)
  4330. || soap_envelope_end_out(soap)
  4331. || soap_end_send(soap))
  4332. return soap_closesock(soap);
  4333. if (!trt__GetVideoSourcesResponse)
  4334. return soap_closesock(soap);
  4335. trt__GetVideoSourcesResponse->soap_default(soap);
  4336. if (soap_begin_recv(soap)
  4337. || soap_envelope_begin_in(soap)
  4338. || soap_recv_header(soap)
  4339. || soap_body_begin_in(soap))
  4340. return soap_closesock(soap);
  4341. trt__GetVideoSourcesResponse->soap_get(soap, "trt:GetVideoSourcesResponse", "");
  4342. if (soap->error)
  4343. return soap_recv_fault(soap, 0);
  4344. if (soap_body_end_in(soap)
  4345. || soap_envelope_end_in(soap)
  4346. || soap_end_recv(soap))
  4347. return soap_closesock(soap);
  4348. return soap_closesock(soap);
  4349. }
  4350. int MediaBindingProxy::GetAudioSources_(const char *endpoint, const char *soap_action, _trt__GetAudioSources *trt__GetAudioSources, _trt__GetAudioSourcesResponse *trt__GetAudioSourcesResponse)
  4351. { struct soap *soap = this;
  4352. struct __trt__GetAudioSources_ soap_tmp___trt__GetAudioSources_;
  4353. if (endpoint)
  4354. soap_endpoint = endpoint;
  4355. if (soap_action == NULL)
  4356. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSources";
  4357. soap_begin(soap);
  4358. soap->encodingStyle = NULL;
  4359. soap_tmp___trt__GetAudioSources_.trt__GetAudioSources = trt__GetAudioSources;
  4360. soap_set_version(soap, 2); /* SOAP1.2 */
  4361. soap_serializeheader(soap);
  4362. soap_serialize___trt__GetAudioSources_(soap, &soap_tmp___trt__GetAudioSources_);
  4363. if (soap_begin_count(soap))
  4364. return soap->error;
  4365. if (soap->mode & SOAP_IO_LENGTH)
  4366. { if (soap_envelope_begin_out(soap)
  4367. || soap_putheader(soap)
  4368. || soap_body_begin_out(soap)
  4369. || soap_put___trt__GetAudioSources_(soap, &soap_tmp___trt__GetAudioSources_, "-trt:GetAudioSources", NULL)
  4370. || soap_body_end_out(soap)
  4371. || soap_envelope_end_out(soap))
  4372. return soap->error;
  4373. }
  4374. if (soap_end_count(soap))
  4375. return soap->error;
  4376. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4377. || soap_envelope_begin_out(soap)
  4378. || soap_putheader(soap)
  4379. || soap_body_begin_out(soap)
  4380. || soap_put___trt__GetAudioSources_(soap, &soap_tmp___trt__GetAudioSources_, "-trt:GetAudioSources", NULL)
  4381. || soap_body_end_out(soap)
  4382. || soap_envelope_end_out(soap)
  4383. || soap_end_send(soap))
  4384. return soap_closesock(soap);
  4385. if (!trt__GetAudioSourcesResponse)
  4386. return soap_closesock(soap);
  4387. trt__GetAudioSourcesResponse->soap_default(soap);
  4388. if (soap_begin_recv(soap)
  4389. || soap_envelope_begin_in(soap)
  4390. || soap_recv_header(soap)
  4391. || soap_body_begin_in(soap))
  4392. return soap_closesock(soap);
  4393. trt__GetAudioSourcesResponse->soap_get(soap, "trt:GetAudioSourcesResponse", "");
  4394. if (soap->error)
  4395. return soap_recv_fault(soap, 0);
  4396. if (soap_body_end_in(soap)
  4397. || soap_envelope_end_in(soap)
  4398. || soap_end_recv(soap))
  4399. return soap_closesock(soap);
  4400. return soap_closesock(soap);
  4401. }
  4402. int MediaBindingProxy::GetAudioOutputs_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputs *trt__GetAudioOutputs, _trt__GetAudioOutputsResponse *trt__GetAudioOutputsResponse)
  4403. { struct soap *soap = this;
  4404. struct __trt__GetAudioOutputs_ soap_tmp___trt__GetAudioOutputs_;
  4405. if (endpoint)
  4406. soap_endpoint = endpoint;
  4407. if (soap_action == NULL)
  4408. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputs";
  4409. soap_begin(soap);
  4410. soap->encodingStyle = NULL;
  4411. soap_tmp___trt__GetAudioOutputs_.trt__GetAudioOutputs = trt__GetAudioOutputs;
  4412. soap_set_version(soap, 2); /* SOAP1.2 */
  4413. soap_serializeheader(soap);
  4414. soap_serialize___trt__GetAudioOutputs_(soap, &soap_tmp___trt__GetAudioOutputs_);
  4415. if (soap_begin_count(soap))
  4416. return soap->error;
  4417. if (soap->mode & SOAP_IO_LENGTH)
  4418. { if (soap_envelope_begin_out(soap)
  4419. || soap_putheader(soap)
  4420. || soap_body_begin_out(soap)
  4421. || soap_put___trt__GetAudioOutputs_(soap, &soap_tmp___trt__GetAudioOutputs_, "-trt:GetAudioOutputs", NULL)
  4422. || soap_body_end_out(soap)
  4423. || soap_envelope_end_out(soap))
  4424. return soap->error;
  4425. }
  4426. if (soap_end_count(soap))
  4427. return soap->error;
  4428. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4429. || soap_envelope_begin_out(soap)
  4430. || soap_putheader(soap)
  4431. || soap_body_begin_out(soap)
  4432. || soap_put___trt__GetAudioOutputs_(soap, &soap_tmp___trt__GetAudioOutputs_, "-trt:GetAudioOutputs", NULL)
  4433. || soap_body_end_out(soap)
  4434. || soap_envelope_end_out(soap)
  4435. || soap_end_send(soap))
  4436. return soap_closesock(soap);
  4437. if (!trt__GetAudioOutputsResponse)
  4438. return soap_closesock(soap);
  4439. trt__GetAudioOutputsResponse->soap_default(soap);
  4440. if (soap_begin_recv(soap)
  4441. || soap_envelope_begin_in(soap)
  4442. || soap_recv_header(soap)
  4443. || soap_body_begin_in(soap))
  4444. return soap_closesock(soap);
  4445. trt__GetAudioOutputsResponse->soap_get(soap, "trt:GetAudioOutputsResponse", "");
  4446. if (soap->error)
  4447. return soap_recv_fault(soap, 0);
  4448. if (soap_body_end_in(soap)
  4449. || soap_envelope_end_in(soap)
  4450. || soap_end_recv(soap))
  4451. return soap_closesock(soap);
  4452. return soap_closesock(soap);
  4453. }
  4454. int MediaBindingProxy::CreateProfile_(const char *endpoint, const char *soap_action, _trt__CreateProfile *trt__CreateProfile, _trt__CreateProfileResponse *trt__CreateProfileResponse)
  4455. { struct soap *soap = this;
  4456. struct __trt__CreateProfile_ soap_tmp___trt__CreateProfile_;
  4457. if (endpoint)
  4458. soap_endpoint = endpoint;
  4459. if (soap_action == NULL)
  4460. soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateProfile";
  4461. soap_begin(soap);
  4462. soap->encodingStyle = NULL;
  4463. soap_tmp___trt__CreateProfile_.trt__CreateProfile = trt__CreateProfile;
  4464. soap_set_version(soap, 2); /* SOAP1.2 */
  4465. soap_serializeheader(soap);
  4466. soap_serialize___trt__CreateProfile_(soap, &soap_tmp___trt__CreateProfile_);
  4467. if (soap_begin_count(soap))
  4468. return soap->error;
  4469. if (soap->mode & SOAP_IO_LENGTH)
  4470. { if (soap_envelope_begin_out(soap)
  4471. || soap_putheader(soap)
  4472. || soap_body_begin_out(soap)
  4473. || soap_put___trt__CreateProfile_(soap, &soap_tmp___trt__CreateProfile_, "-trt:CreateProfile", NULL)
  4474. || soap_body_end_out(soap)
  4475. || soap_envelope_end_out(soap))
  4476. return soap->error;
  4477. }
  4478. if (soap_end_count(soap))
  4479. return soap->error;
  4480. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4481. || soap_envelope_begin_out(soap)
  4482. || soap_putheader(soap)
  4483. || soap_body_begin_out(soap)
  4484. || soap_put___trt__CreateProfile_(soap, &soap_tmp___trt__CreateProfile_, "-trt:CreateProfile", NULL)
  4485. || soap_body_end_out(soap)
  4486. || soap_envelope_end_out(soap)
  4487. || soap_end_send(soap))
  4488. return soap_closesock(soap);
  4489. if (!trt__CreateProfileResponse)
  4490. return soap_closesock(soap);
  4491. trt__CreateProfileResponse->soap_default(soap);
  4492. if (soap_begin_recv(soap)
  4493. || soap_envelope_begin_in(soap)
  4494. || soap_recv_header(soap)
  4495. || soap_body_begin_in(soap))
  4496. return soap_closesock(soap);
  4497. trt__CreateProfileResponse->soap_get(soap, "trt:CreateProfileResponse", "");
  4498. if (soap->error)
  4499. return soap_recv_fault(soap, 0);
  4500. if (soap_body_end_in(soap)
  4501. || soap_envelope_end_in(soap)
  4502. || soap_end_recv(soap))
  4503. return soap_closesock(soap);
  4504. return soap_closesock(soap);
  4505. }
  4506. int MediaBindingProxy::GetProfile_(const char *endpoint, const char *soap_action, _trt__GetProfile *trt__GetProfile, _trt__GetProfileResponse *trt__GetProfileResponse)
  4507. { struct soap *soap = this;
  4508. struct __trt__GetProfile_ soap_tmp___trt__GetProfile_;
  4509. if (endpoint)
  4510. soap_endpoint = endpoint;
  4511. if (soap_action == NULL)
  4512. soap_action = "http://www.onvif.org/ver10/media/wsdlGetProfile/";
  4513. soap_begin(soap);
  4514. soap->encodingStyle = NULL;
  4515. soap_tmp___trt__GetProfile_.trt__GetProfile = trt__GetProfile;
  4516. soap_set_version(soap, 2); /* SOAP1.2 */
  4517. soap_serializeheader(soap);
  4518. soap_serialize___trt__GetProfile_(soap, &soap_tmp___trt__GetProfile_);
  4519. if (soap_begin_count(soap))
  4520. return soap->error;
  4521. if (soap->mode & SOAP_IO_LENGTH)
  4522. { if (soap_envelope_begin_out(soap)
  4523. || soap_putheader(soap)
  4524. || soap_body_begin_out(soap)
  4525. || soap_put___trt__GetProfile_(soap, &soap_tmp___trt__GetProfile_, "-trt:GetProfile", NULL)
  4526. || soap_body_end_out(soap)
  4527. || soap_envelope_end_out(soap))
  4528. return soap->error;
  4529. }
  4530. if (soap_end_count(soap))
  4531. return soap->error;
  4532. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4533. || soap_envelope_begin_out(soap)
  4534. || soap_putheader(soap)
  4535. || soap_body_begin_out(soap)
  4536. || soap_put___trt__GetProfile_(soap, &soap_tmp___trt__GetProfile_, "-trt:GetProfile", NULL)
  4537. || soap_body_end_out(soap)
  4538. || soap_envelope_end_out(soap)
  4539. || soap_end_send(soap))
  4540. return soap_closesock(soap);
  4541. if (!trt__GetProfileResponse)
  4542. return soap_closesock(soap);
  4543. trt__GetProfileResponse->soap_default(soap);
  4544. if (soap_begin_recv(soap)
  4545. || soap_envelope_begin_in(soap)
  4546. || soap_recv_header(soap)
  4547. || soap_body_begin_in(soap))
  4548. return soap_closesock(soap);
  4549. trt__GetProfileResponse->soap_get(soap, "trt:GetProfileResponse", "");
  4550. if (soap->error)
  4551. return soap_recv_fault(soap, 0);
  4552. if (soap_body_end_in(soap)
  4553. || soap_envelope_end_in(soap)
  4554. || soap_end_recv(soap))
  4555. return soap_closesock(soap);
  4556. return soap_closesock(soap);
  4557. }
  4558. int MediaBindingProxy::GetProfiles_(const char *endpoint, const char *soap_action, _trt__GetProfiles *trt__GetProfiles, _trt__GetProfilesResponse *trt__GetProfilesResponse)
  4559. { struct soap *soap = this;
  4560. struct __trt__GetProfiles_ soap_tmp___trt__GetProfiles_;
  4561. if (endpoint)
  4562. soap_endpoint = endpoint;
  4563. if (soap_action == NULL)
  4564. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetProfiles";
  4565. soap_begin(soap);
  4566. soap->encodingStyle = NULL;
  4567. soap_tmp___trt__GetProfiles_.trt__GetProfiles = trt__GetProfiles;
  4568. soap_set_version(soap, 2); /* SOAP1.2 */
  4569. soap_serializeheader(soap);
  4570. soap_serialize___trt__GetProfiles_(soap, &soap_tmp___trt__GetProfiles_);
  4571. if (soap_begin_count(soap))
  4572. return soap->error;
  4573. if (soap->mode & SOAP_IO_LENGTH)
  4574. { if (soap_envelope_begin_out(soap)
  4575. || soap_putheader(soap)
  4576. || soap_body_begin_out(soap)
  4577. || soap_put___trt__GetProfiles_(soap, &soap_tmp___trt__GetProfiles_, "-trt:GetProfiles", NULL)
  4578. || soap_body_end_out(soap)
  4579. || soap_envelope_end_out(soap))
  4580. return soap->error;
  4581. }
  4582. if (soap_end_count(soap))
  4583. return soap->error;
  4584. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4585. || soap_envelope_begin_out(soap)
  4586. || soap_putheader(soap)
  4587. || soap_body_begin_out(soap)
  4588. || soap_put___trt__GetProfiles_(soap, &soap_tmp___trt__GetProfiles_, "-trt:GetProfiles", NULL)
  4589. || soap_body_end_out(soap)
  4590. || soap_envelope_end_out(soap)
  4591. || soap_end_send(soap))
  4592. return soap_closesock(soap);
  4593. if (!trt__GetProfilesResponse)
  4594. return soap_closesock(soap);
  4595. trt__GetProfilesResponse->soap_default(soap);
  4596. if (soap_begin_recv(soap)
  4597. || soap_envelope_begin_in(soap)
  4598. || soap_recv_header(soap)
  4599. || soap_body_begin_in(soap))
  4600. return soap_closesock(soap);
  4601. trt__GetProfilesResponse->soap_get(soap, "trt:GetProfilesResponse", "");
  4602. if (soap->error)
  4603. return soap_recv_fault(soap, 0);
  4604. if (soap_body_end_in(soap)
  4605. || soap_envelope_end_in(soap)
  4606. || soap_end_recv(soap))
  4607. return soap_closesock(soap);
  4608. return soap_closesock(soap);
  4609. }
  4610. int MediaBindingProxy::AddVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__AddVideoEncoderConfiguration *trt__AddVideoEncoderConfiguration, _trt__AddVideoEncoderConfigurationResponse *trt__AddVideoEncoderConfigurationResponse)
  4611. { struct soap *soap = this;
  4612. struct __trt__AddVideoEncoderConfiguration_ soap_tmp___trt__AddVideoEncoderConfiguration_;
  4613. if (endpoint)
  4614. soap_endpoint = endpoint;
  4615. if (soap_action == NULL)
  4616. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoEncoderConfiguration";
  4617. soap_begin(soap);
  4618. soap->encodingStyle = NULL;
  4619. soap_tmp___trt__AddVideoEncoderConfiguration_.trt__AddVideoEncoderConfiguration = trt__AddVideoEncoderConfiguration;
  4620. soap_set_version(soap, 2); /* SOAP1.2 */
  4621. soap_serializeheader(soap);
  4622. soap_serialize___trt__AddVideoEncoderConfiguration_(soap, &soap_tmp___trt__AddVideoEncoderConfiguration_);
  4623. if (soap_begin_count(soap))
  4624. return soap->error;
  4625. if (soap->mode & SOAP_IO_LENGTH)
  4626. { if (soap_envelope_begin_out(soap)
  4627. || soap_putheader(soap)
  4628. || soap_body_begin_out(soap)
  4629. || soap_put___trt__AddVideoEncoderConfiguration_(soap, &soap_tmp___trt__AddVideoEncoderConfiguration_, "-trt:AddVideoEncoderConfiguration", NULL)
  4630. || soap_body_end_out(soap)
  4631. || soap_envelope_end_out(soap))
  4632. return soap->error;
  4633. }
  4634. if (soap_end_count(soap))
  4635. return soap->error;
  4636. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4637. || soap_envelope_begin_out(soap)
  4638. || soap_putheader(soap)
  4639. || soap_body_begin_out(soap)
  4640. || soap_put___trt__AddVideoEncoderConfiguration_(soap, &soap_tmp___trt__AddVideoEncoderConfiguration_, "-trt:AddVideoEncoderConfiguration", NULL)
  4641. || soap_body_end_out(soap)
  4642. || soap_envelope_end_out(soap)
  4643. || soap_end_send(soap))
  4644. return soap_closesock(soap);
  4645. if (!trt__AddVideoEncoderConfigurationResponse)
  4646. return soap_closesock(soap);
  4647. trt__AddVideoEncoderConfigurationResponse->soap_default(soap);
  4648. if (soap_begin_recv(soap)
  4649. || soap_envelope_begin_in(soap)
  4650. || soap_recv_header(soap)
  4651. || soap_body_begin_in(soap))
  4652. return soap_closesock(soap);
  4653. trt__AddVideoEncoderConfigurationResponse->soap_get(soap, "trt:AddVideoEncoderConfigurationResponse", "");
  4654. if (soap->error)
  4655. return soap_recv_fault(soap, 0);
  4656. if (soap_body_end_in(soap)
  4657. || soap_envelope_end_in(soap)
  4658. || soap_end_recv(soap))
  4659. return soap_closesock(soap);
  4660. return soap_closesock(soap);
  4661. }
  4662. int MediaBindingProxy::AddVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__AddVideoSourceConfiguration *trt__AddVideoSourceConfiguration, _trt__AddVideoSourceConfigurationResponse *trt__AddVideoSourceConfigurationResponse)
  4663. { struct soap *soap = this;
  4664. struct __trt__AddVideoSourceConfiguration_ soap_tmp___trt__AddVideoSourceConfiguration_;
  4665. if (endpoint)
  4666. soap_endpoint = endpoint;
  4667. if (soap_action == NULL)
  4668. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoSourceConfiguration";
  4669. soap_begin(soap);
  4670. soap->encodingStyle = NULL;
  4671. soap_tmp___trt__AddVideoSourceConfiguration_.trt__AddVideoSourceConfiguration = trt__AddVideoSourceConfiguration;
  4672. soap_set_version(soap, 2); /* SOAP1.2 */
  4673. soap_serializeheader(soap);
  4674. soap_serialize___trt__AddVideoSourceConfiguration_(soap, &soap_tmp___trt__AddVideoSourceConfiguration_);
  4675. if (soap_begin_count(soap))
  4676. return soap->error;
  4677. if (soap->mode & SOAP_IO_LENGTH)
  4678. { if (soap_envelope_begin_out(soap)
  4679. || soap_putheader(soap)
  4680. || soap_body_begin_out(soap)
  4681. || soap_put___trt__AddVideoSourceConfiguration_(soap, &soap_tmp___trt__AddVideoSourceConfiguration_, "-trt:AddVideoSourceConfiguration", NULL)
  4682. || soap_body_end_out(soap)
  4683. || soap_envelope_end_out(soap))
  4684. return soap->error;
  4685. }
  4686. if (soap_end_count(soap))
  4687. return soap->error;
  4688. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4689. || soap_envelope_begin_out(soap)
  4690. || soap_putheader(soap)
  4691. || soap_body_begin_out(soap)
  4692. || soap_put___trt__AddVideoSourceConfiguration_(soap, &soap_tmp___trt__AddVideoSourceConfiguration_, "-trt:AddVideoSourceConfiguration", NULL)
  4693. || soap_body_end_out(soap)
  4694. || soap_envelope_end_out(soap)
  4695. || soap_end_send(soap))
  4696. return soap_closesock(soap);
  4697. if (!trt__AddVideoSourceConfigurationResponse)
  4698. return soap_closesock(soap);
  4699. trt__AddVideoSourceConfigurationResponse->soap_default(soap);
  4700. if (soap_begin_recv(soap)
  4701. || soap_envelope_begin_in(soap)
  4702. || soap_recv_header(soap)
  4703. || soap_body_begin_in(soap))
  4704. return soap_closesock(soap);
  4705. trt__AddVideoSourceConfigurationResponse->soap_get(soap, "trt:AddVideoSourceConfigurationResponse", "");
  4706. if (soap->error)
  4707. return soap_recv_fault(soap, 0);
  4708. if (soap_body_end_in(soap)
  4709. || soap_envelope_end_in(soap)
  4710. || soap_end_recv(soap))
  4711. return soap_closesock(soap);
  4712. return soap_closesock(soap);
  4713. }
  4714. int MediaBindingProxy::AddAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioEncoderConfiguration *trt__AddAudioEncoderConfiguration, _trt__AddAudioEncoderConfigurationResponse *trt__AddAudioEncoderConfigurationResponse)
  4715. { struct soap *soap = this;
  4716. struct __trt__AddAudioEncoderConfiguration_ soap_tmp___trt__AddAudioEncoderConfiguration_;
  4717. if (endpoint)
  4718. soap_endpoint = endpoint;
  4719. if (soap_action == NULL)
  4720. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioEncoderConfiguration";
  4721. soap_begin(soap);
  4722. soap->encodingStyle = NULL;
  4723. soap_tmp___trt__AddAudioEncoderConfiguration_.trt__AddAudioEncoderConfiguration = trt__AddAudioEncoderConfiguration;
  4724. soap_set_version(soap, 2); /* SOAP1.2 */
  4725. soap_serializeheader(soap);
  4726. soap_serialize___trt__AddAudioEncoderConfiguration_(soap, &soap_tmp___trt__AddAudioEncoderConfiguration_);
  4727. if (soap_begin_count(soap))
  4728. return soap->error;
  4729. if (soap->mode & SOAP_IO_LENGTH)
  4730. { if (soap_envelope_begin_out(soap)
  4731. || soap_putheader(soap)
  4732. || soap_body_begin_out(soap)
  4733. || soap_put___trt__AddAudioEncoderConfiguration_(soap, &soap_tmp___trt__AddAudioEncoderConfiguration_, "-trt:AddAudioEncoderConfiguration", NULL)
  4734. || soap_body_end_out(soap)
  4735. || soap_envelope_end_out(soap))
  4736. return soap->error;
  4737. }
  4738. if (soap_end_count(soap))
  4739. return soap->error;
  4740. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4741. || soap_envelope_begin_out(soap)
  4742. || soap_putheader(soap)
  4743. || soap_body_begin_out(soap)
  4744. || soap_put___trt__AddAudioEncoderConfiguration_(soap, &soap_tmp___trt__AddAudioEncoderConfiguration_, "-trt:AddAudioEncoderConfiguration", NULL)
  4745. || soap_body_end_out(soap)
  4746. || soap_envelope_end_out(soap)
  4747. || soap_end_send(soap))
  4748. return soap_closesock(soap);
  4749. if (!trt__AddAudioEncoderConfigurationResponse)
  4750. return soap_closesock(soap);
  4751. trt__AddAudioEncoderConfigurationResponse->soap_default(soap);
  4752. if (soap_begin_recv(soap)
  4753. || soap_envelope_begin_in(soap)
  4754. || soap_recv_header(soap)
  4755. || soap_body_begin_in(soap))
  4756. return soap_closesock(soap);
  4757. trt__AddAudioEncoderConfigurationResponse->soap_get(soap, "trt:AddAudioEncoderConfigurationResponse", "");
  4758. if (soap->error)
  4759. return soap_recv_fault(soap, 0);
  4760. if (soap_body_end_in(soap)
  4761. || soap_envelope_end_in(soap)
  4762. || soap_end_recv(soap))
  4763. return soap_closesock(soap);
  4764. return soap_closesock(soap);
  4765. }
  4766. int MediaBindingProxy::AddAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioSourceConfiguration *trt__AddAudioSourceConfiguration, _trt__AddAudioSourceConfigurationResponse *trt__AddAudioSourceConfigurationResponse)
  4767. { struct soap *soap = this;
  4768. struct __trt__AddAudioSourceConfiguration_ soap_tmp___trt__AddAudioSourceConfiguration_;
  4769. if (endpoint)
  4770. soap_endpoint = endpoint;
  4771. if (soap_action == NULL)
  4772. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioSourceConfiguration";
  4773. soap_begin(soap);
  4774. soap->encodingStyle = NULL;
  4775. soap_tmp___trt__AddAudioSourceConfiguration_.trt__AddAudioSourceConfiguration = trt__AddAudioSourceConfiguration;
  4776. soap_set_version(soap, 2); /* SOAP1.2 */
  4777. soap_serializeheader(soap);
  4778. soap_serialize___trt__AddAudioSourceConfiguration_(soap, &soap_tmp___trt__AddAudioSourceConfiguration_);
  4779. if (soap_begin_count(soap))
  4780. return soap->error;
  4781. if (soap->mode & SOAP_IO_LENGTH)
  4782. { if (soap_envelope_begin_out(soap)
  4783. || soap_putheader(soap)
  4784. || soap_body_begin_out(soap)
  4785. || soap_put___trt__AddAudioSourceConfiguration_(soap, &soap_tmp___trt__AddAudioSourceConfiguration_, "-trt:AddAudioSourceConfiguration", NULL)
  4786. || soap_body_end_out(soap)
  4787. || soap_envelope_end_out(soap))
  4788. return soap->error;
  4789. }
  4790. if (soap_end_count(soap))
  4791. return soap->error;
  4792. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4793. || soap_envelope_begin_out(soap)
  4794. || soap_putheader(soap)
  4795. || soap_body_begin_out(soap)
  4796. || soap_put___trt__AddAudioSourceConfiguration_(soap, &soap_tmp___trt__AddAudioSourceConfiguration_, "-trt:AddAudioSourceConfiguration", NULL)
  4797. || soap_body_end_out(soap)
  4798. || soap_envelope_end_out(soap)
  4799. || soap_end_send(soap))
  4800. return soap_closesock(soap);
  4801. if (!trt__AddAudioSourceConfigurationResponse)
  4802. return soap_closesock(soap);
  4803. trt__AddAudioSourceConfigurationResponse->soap_default(soap);
  4804. if (soap_begin_recv(soap)
  4805. || soap_envelope_begin_in(soap)
  4806. || soap_recv_header(soap)
  4807. || soap_body_begin_in(soap))
  4808. return soap_closesock(soap);
  4809. trt__AddAudioSourceConfigurationResponse->soap_get(soap, "trt:AddAudioSourceConfigurationResponse", "");
  4810. if (soap->error)
  4811. return soap_recv_fault(soap, 0);
  4812. if (soap_body_end_in(soap)
  4813. || soap_envelope_end_in(soap)
  4814. || soap_end_recv(soap))
  4815. return soap_closesock(soap);
  4816. return soap_closesock(soap);
  4817. }
  4818. int MediaBindingProxy::AddPTZConfiguration_(const char *endpoint, const char *soap_action, _trt__AddPTZConfiguration *trt__AddPTZConfiguration, _trt__AddPTZConfigurationResponse *trt__AddPTZConfigurationResponse)
  4819. { struct soap *soap = this;
  4820. struct __trt__AddPTZConfiguration_ soap_tmp___trt__AddPTZConfiguration_;
  4821. if (endpoint)
  4822. soap_endpoint = endpoint;
  4823. if (soap_action == NULL)
  4824. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddPTZConfiguration";
  4825. soap_begin(soap);
  4826. soap->encodingStyle = NULL;
  4827. soap_tmp___trt__AddPTZConfiguration_.trt__AddPTZConfiguration = trt__AddPTZConfiguration;
  4828. soap_set_version(soap, 2); /* SOAP1.2 */
  4829. soap_serializeheader(soap);
  4830. soap_serialize___trt__AddPTZConfiguration_(soap, &soap_tmp___trt__AddPTZConfiguration_);
  4831. if (soap_begin_count(soap))
  4832. return soap->error;
  4833. if (soap->mode & SOAP_IO_LENGTH)
  4834. { if (soap_envelope_begin_out(soap)
  4835. || soap_putheader(soap)
  4836. || soap_body_begin_out(soap)
  4837. || soap_put___trt__AddPTZConfiguration_(soap, &soap_tmp___trt__AddPTZConfiguration_, "-trt:AddPTZConfiguration", NULL)
  4838. || soap_body_end_out(soap)
  4839. || soap_envelope_end_out(soap))
  4840. return soap->error;
  4841. }
  4842. if (soap_end_count(soap))
  4843. return soap->error;
  4844. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4845. || soap_envelope_begin_out(soap)
  4846. || soap_putheader(soap)
  4847. || soap_body_begin_out(soap)
  4848. || soap_put___trt__AddPTZConfiguration_(soap, &soap_tmp___trt__AddPTZConfiguration_, "-trt:AddPTZConfiguration", NULL)
  4849. || soap_body_end_out(soap)
  4850. || soap_envelope_end_out(soap)
  4851. || soap_end_send(soap))
  4852. return soap_closesock(soap);
  4853. if (!trt__AddPTZConfigurationResponse)
  4854. return soap_closesock(soap);
  4855. trt__AddPTZConfigurationResponse->soap_default(soap);
  4856. if (soap_begin_recv(soap)
  4857. || soap_envelope_begin_in(soap)
  4858. || soap_recv_header(soap)
  4859. || soap_body_begin_in(soap))
  4860. return soap_closesock(soap);
  4861. trt__AddPTZConfigurationResponse->soap_get(soap, "trt:AddPTZConfigurationResponse", "");
  4862. if (soap->error)
  4863. return soap_recv_fault(soap, 0);
  4864. if (soap_body_end_in(soap)
  4865. || soap_envelope_end_in(soap)
  4866. || soap_end_recv(soap))
  4867. return soap_closesock(soap);
  4868. return soap_closesock(soap);
  4869. }
  4870. int MediaBindingProxy::AddVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__AddVideoAnalyticsConfiguration *trt__AddVideoAnalyticsConfiguration, _trt__AddVideoAnalyticsConfigurationResponse *trt__AddVideoAnalyticsConfigurationResponse)
  4871. { struct soap *soap = this;
  4872. struct __trt__AddVideoAnalyticsConfiguration_ soap_tmp___trt__AddVideoAnalyticsConfiguration_;
  4873. if (endpoint)
  4874. soap_endpoint = endpoint;
  4875. if (soap_action == NULL)
  4876. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoAnalyticsConfiguration";
  4877. soap_begin(soap);
  4878. soap->encodingStyle = NULL;
  4879. soap_tmp___trt__AddVideoAnalyticsConfiguration_.trt__AddVideoAnalyticsConfiguration = trt__AddVideoAnalyticsConfiguration;
  4880. soap_set_version(soap, 2); /* SOAP1.2 */
  4881. soap_serializeheader(soap);
  4882. soap_serialize___trt__AddVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration_);
  4883. if (soap_begin_count(soap))
  4884. return soap->error;
  4885. if (soap->mode & SOAP_IO_LENGTH)
  4886. { if (soap_envelope_begin_out(soap)
  4887. || soap_putheader(soap)
  4888. || soap_body_begin_out(soap)
  4889. || soap_put___trt__AddVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration_, "-trt:AddVideoAnalyticsConfiguration", NULL)
  4890. || soap_body_end_out(soap)
  4891. || soap_envelope_end_out(soap))
  4892. return soap->error;
  4893. }
  4894. if (soap_end_count(soap))
  4895. return soap->error;
  4896. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4897. || soap_envelope_begin_out(soap)
  4898. || soap_putheader(soap)
  4899. || soap_body_begin_out(soap)
  4900. || soap_put___trt__AddVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration_, "-trt:AddVideoAnalyticsConfiguration", NULL)
  4901. || soap_body_end_out(soap)
  4902. || soap_envelope_end_out(soap)
  4903. || soap_end_send(soap))
  4904. return soap_closesock(soap);
  4905. if (!trt__AddVideoAnalyticsConfigurationResponse)
  4906. return soap_closesock(soap);
  4907. trt__AddVideoAnalyticsConfigurationResponse->soap_default(soap);
  4908. if (soap_begin_recv(soap)
  4909. || soap_envelope_begin_in(soap)
  4910. || soap_recv_header(soap)
  4911. || soap_body_begin_in(soap))
  4912. return soap_closesock(soap);
  4913. trt__AddVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:AddVideoAnalyticsConfigurationResponse", "");
  4914. if (soap->error)
  4915. return soap_recv_fault(soap, 0);
  4916. if (soap_body_end_in(soap)
  4917. || soap_envelope_end_in(soap)
  4918. || soap_end_recv(soap))
  4919. return soap_closesock(soap);
  4920. return soap_closesock(soap);
  4921. }
  4922. int MediaBindingProxy::AddMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__AddMetadataConfiguration *trt__AddMetadataConfiguration, _trt__AddMetadataConfigurationResponse *trt__AddMetadataConfigurationResponse)
  4923. { struct soap *soap = this;
  4924. struct __trt__AddMetadataConfiguration_ soap_tmp___trt__AddMetadataConfiguration_;
  4925. if (endpoint)
  4926. soap_endpoint = endpoint;
  4927. if (soap_action == NULL)
  4928. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddMetadataConfiguration";
  4929. soap_begin(soap);
  4930. soap->encodingStyle = NULL;
  4931. soap_tmp___trt__AddMetadataConfiguration_.trt__AddMetadataConfiguration = trt__AddMetadataConfiguration;
  4932. soap_set_version(soap, 2); /* SOAP1.2 */
  4933. soap_serializeheader(soap);
  4934. soap_serialize___trt__AddMetadataConfiguration_(soap, &soap_tmp___trt__AddMetadataConfiguration_);
  4935. if (soap_begin_count(soap))
  4936. return soap->error;
  4937. if (soap->mode & SOAP_IO_LENGTH)
  4938. { if (soap_envelope_begin_out(soap)
  4939. || soap_putheader(soap)
  4940. || soap_body_begin_out(soap)
  4941. || soap_put___trt__AddMetadataConfiguration_(soap, &soap_tmp___trt__AddMetadataConfiguration_, "-trt:AddMetadataConfiguration", NULL)
  4942. || soap_body_end_out(soap)
  4943. || soap_envelope_end_out(soap))
  4944. return soap->error;
  4945. }
  4946. if (soap_end_count(soap))
  4947. return soap->error;
  4948. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  4949. || soap_envelope_begin_out(soap)
  4950. || soap_putheader(soap)
  4951. || soap_body_begin_out(soap)
  4952. || soap_put___trt__AddMetadataConfiguration_(soap, &soap_tmp___trt__AddMetadataConfiguration_, "-trt:AddMetadataConfiguration", NULL)
  4953. || soap_body_end_out(soap)
  4954. || soap_envelope_end_out(soap)
  4955. || soap_end_send(soap))
  4956. return soap_closesock(soap);
  4957. if (!trt__AddMetadataConfigurationResponse)
  4958. return soap_closesock(soap);
  4959. trt__AddMetadataConfigurationResponse->soap_default(soap);
  4960. if (soap_begin_recv(soap)
  4961. || soap_envelope_begin_in(soap)
  4962. || soap_recv_header(soap)
  4963. || soap_body_begin_in(soap))
  4964. return soap_closesock(soap);
  4965. trt__AddMetadataConfigurationResponse->soap_get(soap, "trt:AddMetadataConfigurationResponse", "");
  4966. if (soap->error)
  4967. return soap_recv_fault(soap, 0);
  4968. if (soap_body_end_in(soap)
  4969. || soap_envelope_end_in(soap)
  4970. || soap_end_recv(soap))
  4971. return soap_closesock(soap);
  4972. return soap_closesock(soap);
  4973. }
  4974. int MediaBindingProxy::AddAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioOutputConfiguration *trt__AddAudioOutputConfiguration, _trt__AddAudioOutputConfigurationResponse *trt__AddAudioOutputConfigurationResponse)
  4975. { struct soap *soap = this;
  4976. struct __trt__AddAudioOutputConfiguration_ soap_tmp___trt__AddAudioOutputConfiguration_;
  4977. if (endpoint)
  4978. soap_endpoint = endpoint;
  4979. if (soap_action == NULL)
  4980. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioOutputConfiguration";
  4981. soap_begin(soap);
  4982. soap->encodingStyle = NULL;
  4983. soap_tmp___trt__AddAudioOutputConfiguration_.trt__AddAudioOutputConfiguration = trt__AddAudioOutputConfiguration;
  4984. soap_set_version(soap, 2); /* SOAP1.2 */
  4985. soap_serializeheader(soap);
  4986. soap_serialize___trt__AddAudioOutputConfiguration_(soap, &soap_tmp___trt__AddAudioOutputConfiguration_);
  4987. if (soap_begin_count(soap))
  4988. return soap->error;
  4989. if (soap->mode & SOAP_IO_LENGTH)
  4990. { if (soap_envelope_begin_out(soap)
  4991. || soap_putheader(soap)
  4992. || soap_body_begin_out(soap)
  4993. || soap_put___trt__AddAudioOutputConfiguration_(soap, &soap_tmp___trt__AddAudioOutputConfiguration_, "-trt:AddAudioOutputConfiguration", NULL)
  4994. || soap_body_end_out(soap)
  4995. || soap_envelope_end_out(soap))
  4996. return soap->error;
  4997. }
  4998. if (soap_end_count(soap))
  4999. return soap->error;
  5000. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5001. || soap_envelope_begin_out(soap)
  5002. || soap_putheader(soap)
  5003. || soap_body_begin_out(soap)
  5004. || soap_put___trt__AddAudioOutputConfiguration_(soap, &soap_tmp___trt__AddAudioOutputConfiguration_, "-trt:AddAudioOutputConfiguration", NULL)
  5005. || soap_body_end_out(soap)
  5006. || soap_envelope_end_out(soap)
  5007. || soap_end_send(soap))
  5008. return soap_closesock(soap);
  5009. if (!trt__AddAudioOutputConfigurationResponse)
  5010. return soap_closesock(soap);
  5011. trt__AddAudioOutputConfigurationResponse->soap_default(soap);
  5012. if (soap_begin_recv(soap)
  5013. || soap_envelope_begin_in(soap)
  5014. || soap_recv_header(soap)
  5015. || soap_body_begin_in(soap))
  5016. return soap_closesock(soap);
  5017. trt__AddAudioOutputConfigurationResponse->soap_get(soap, "trt:AddAudioOutputConfigurationResponse", "");
  5018. if (soap->error)
  5019. return soap_recv_fault(soap, 0);
  5020. if (soap_body_end_in(soap)
  5021. || soap_envelope_end_in(soap)
  5022. || soap_end_recv(soap))
  5023. return soap_closesock(soap);
  5024. return soap_closesock(soap);
  5025. }
  5026. int MediaBindingProxy::AddAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioDecoderConfiguration *trt__AddAudioDecoderConfiguration, _trt__AddAudioDecoderConfigurationResponse *trt__AddAudioDecoderConfigurationResponse)
  5027. { struct soap *soap = this;
  5028. struct __trt__AddAudioDecoderConfiguration_ soap_tmp___trt__AddAudioDecoderConfiguration_;
  5029. if (endpoint)
  5030. soap_endpoint = endpoint;
  5031. if (soap_action == NULL)
  5032. soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioDecoderConfiguration";
  5033. soap_begin(soap);
  5034. soap->encodingStyle = NULL;
  5035. soap_tmp___trt__AddAudioDecoderConfiguration_.trt__AddAudioDecoderConfiguration = trt__AddAudioDecoderConfiguration;
  5036. soap_set_version(soap, 2); /* SOAP1.2 */
  5037. soap_serializeheader(soap);
  5038. soap_serialize___trt__AddAudioDecoderConfiguration_(soap, &soap_tmp___trt__AddAudioDecoderConfiguration_);
  5039. if (soap_begin_count(soap))
  5040. return soap->error;
  5041. if (soap->mode & SOAP_IO_LENGTH)
  5042. { if (soap_envelope_begin_out(soap)
  5043. || soap_putheader(soap)
  5044. || soap_body_begin_out(soap)
  5045. || soap_put___trt__AddAudioDecoderConfiguration_(soap, &soap_tmp___trt__AddAudioDecoderConfiguration_, "-trt:AddAudioDecoderConfiguration", NULL)
  5046. || soap_body_end_out(soap)
  5047. || soap_envelope_end_out(soap))
  5048. return soap->error;
  5049. }
  5050. if (soap_end_count(soap))
  5051. return soap->error;
  5052. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5053. || soap_envelope_begin_out(soap)
  5054. || soap_putheader(soap)
  5055. || soap_body_begin_out(soap)
  5056. || soap_put___trt__AddAudioDecoderConfiguration_(soap, &soap_tmp___trt__AddAudioDecoderConfiguration_, "-trt:AddAudioDecoderConfiguration", NULL)
  5057. || soap_body_end_out(soap)
  5058. || soap_envelope_end_out(soap)
  5059. || soap_end_send(soap))
  5060. return soap_closesock(soap);
  5061. if (!trt__AddAudioDecoderConfigurationResponse)
  5062. return soap_closesock(soap);
  5063. trt__AddAudioDecoderConfigurationResponse->soap_default(soap);
  5064. if (soap_begin_recv(soap)
  5065. || soap_envelope_begin_in(soap)
  5066. || soap_recv_header(soap)
  5067. || soap_body_begin_in(soap))
  5068. return soap_closesock(soap);
  5069. trt__AddAudioDecoderConfigurationResponse->soap_get(soap, "trt:AddAudioDecoderConfigurationResponse", "");
  5070. if (soap->error)
  5071. return soap_recv_fault(soap, 0);
  5072. if (soap_body_end_in(soap)
  5073. || soap_envelope_end_in(soap)
  5074. || soap_end_recv(soap))
  5075. return soap_closesock(soap);
  5076. return soap_closesock(soap);
  5077. }
  5078. int MediaBindingProxy::RemoveVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveVideoEncoderConfiguration *trt__RemoveVideoEncoderConfiguration, _trt__RemoveVideoEncoderConfigurationResponse *trt__RemoveVideoEncoderConfigurationResponse)
  5079. { struct soap *soap = this;
  5080. struct __trt__RemoveVideoEncoderConfiguration_ soap_tmp___trt__RemoveVideoEncoderConfiguration_;
  5081. if (endpoint)
  5082. soap_endpoint = endpoint;
  5083. if (soap_action == NULL)
  5084. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoEncoderConfiguration";
  5085. soap_begin(soap);
  5086. soap->encodingStyle = NULL;
  5087. soap_tmp___trt__RemoveVideoEncoderConfiguration_.trt__RemoveVideoEncoderConfiguration = trt__RemoveVideoEncoderConfiguration;
  5088. soap_set_version(soap, 2); /* SOAP1.2 */
  5089. soap_serializeheader(soap);
  5090. soap_serialize___trt__RemoveVideoEncoderConfiguration_(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration_);
  5091. if (soap_begin_count(soap))
  5092. return soap->error;
  5093. if (soap->mode & SOAP_IO_LENGTH)
  5094. { if (soap_envelope_begin_out(soap)
  5095. || soap_putheader(soap)
  5096. || soap_body_begin_out(soap)
  5097. || soap_put___trt__RemoveVideoEncoderConfiguration_(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration_, "-trt:RemoveVideoEncoderConfiguration", NULL)
  5098. || soap_body_end_out(soap)
  5099. || soap_envelope_end_out(soap))
  5100. return soap->error;
  5101. }
  5102. if (soap_end_count(soap))
  5103. return soap->error;
  5104. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5105. || soap_envelope_begin_out(soap)
  5106. || soap_putheader(soap)
  5107. || soap_body_begin_out(soap)
  5108. || soap_put___trt__RemoveVideoEncoderConfiguration_(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration_, "-trt:RemoveVideoEncoderConfiguration", NULL)
  5109. || soap_body_end_out(soap)
  5110. || soap_envelope_end_out(soap)
  5111. || soap_end_send(soap))
  5112. return soap_closesock(soap);
  5113. if (!trt__RemoveVideoEncoderConfigurationResponse)
  5114. return soap_closesock(soap);
  5115. trt__RemoveVideoEncoderConfigurationResponse->soap_default(soap);
  5116. if (soap_begin_recv(soap)
  5117. || soap_envelope_begin_in(soap)
  5118. || soap_recv_header(soap)
  5119. || soap_body_begin_in(soap))
  5120. return soap_closesock(soap);
  5121. trt__RemoveVideoEncoderConfigurationResponse->soap_get(soap, "trt:RemoveVideoEncoderConfigurationResponse", "");
  5122. if (soap->error)
  5123. return soap_recv_fault(soap, 0);
  5124. if (soap_body_end_in(soap)
  5125. || soap_envelope_end_in(soap)
  5126. || soap_end_recv(soap))
  5127. return soap_closesock(soap);
  5128. return soap_closesock(soap);
  5129. }
  5130. int MediaBindingProxy::RemoveVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveVideoSourceConfiguration *trt__RemoveVideoSourceConfiguration, _trt__RemoveVideoSourceConfigurationResponse *trt__RemoveVideoSourceConfigurationResponse)
  5131. { struct soap *soap = this;
  5132. struct __trt__RemoveVideoSourceConfiguration_ soap_tmp___trt__RemoveVideoSourceConfiguration_;
  5133. if (endpoint)
  5134. soap_endpoint = endpoint;
  5135. if (soap_action == NULL)
  5136. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoSourceConfiguration";
  5137. soap_begin(soap);
  5138. soap->encodingStyle = NULL;
  5139. soap_tmp___trt__RemoveVideoSourceConfiguration_.trt__RemoveVideoSourceConfiguration = trt__RemoveVideoSourceConfiguration;
  5140. soap_set_version(soap, 2); /* SOAP1.2 */
  5141. soap_serializeheader(soap);
  5142. soap_serialize___trt__RemoveVideoSourceConfiguration_(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration_);
  5143. if (soap_begin_count(soap))
  5144. return soap->error;
  5145. if (soap->mode & SOAP_IO_LENGTH)
  5146. { if (soap_envelope_begin_out(soap)
  5147. || soap_putheader(soap)
  5148. || soap_body_begin_out(soap)
  5149. || soap_put___trt__RemoveVideoSourceConfiguration_(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration_, "-trt:RemoveVideoSourceConfiguration", NULL)
  5150. || soap_body_end_out(soap)
  5151. || soap_envelope_end_out(soap))
  5152. return soap->error;
  5153. }
  5154. if (soap_end_count(soap))
  5155. return soap->error;
  5156. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5157. || soap_envelope_begin_out(soap)
  5158. || soap_putheader(soap)
  5159. || soap_body_begin_out(soap)
  5160. || soap_put___trt__RemoveVideoSourceConfiguration_(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration_, "-trt:RemoveVideoSourceConfiguration", NULL)
  5161. || soap_body_end_out(soap)
  5162. || soap_envelope_end_out(soap)
  5163. || soap_end_send(soap))
  5164. return soap_closesock(soap);
  5165. if (!trt__RemoveVideoSourceConfigurationResponse)
  5166. return soap_closesock(soap);
  5167. trt__RemoveVideoSourceConfigurationResponse->soap_default(soap);
  5168. if (soap_begin_recv(soap)
  5169. || soap_envelope_begin_in(soap)
  5170. || soap_recv_header(soap)
  5171. || soap_body_begin_in(soap))
  5172. return soap_closesock(soap);
  5173. trt__RemoveVideoSourceConfigurationResponse->soap_get(soap, "trt:RemoveVideoSourceConfigurationResponse", "");
  5174. if (soap->error)
  5175. return soap_recv_fault(soap, 0);
  5176. if (soap_body_end_in(soap)
  5177. || soap_envelope_end_in(soap)
  5178. || soap_end_recv(soap))
  5179. return soap_closesock(soap);
  5180. return soap_closesock(soap);
  5181. }
  5182. int MediaBindingProxy::RemoveAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioEncoderConfiguration *trt__RemoveAudioEncoderConfiguration, _trt__RemoveAudioEncoderConfigurationResponse *trt__RemoveAudioEncoderConfigurationResponse)
  5183. { struct soap *soap = this;
  5184. struct __trt__RemoveAudioEncoderConfiguration_ soap_tmp___trt__RemoveAudioEncoderConfiguration_;
  5185. if (endpoint)
  5186. soap_endpoint = endpoint;
  5187. if (soap_action == NULL)
  5188. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioEncoderConfiguration";
  5189. soap_begin(soap);
  5190. soap->encodingStyle = NULL;
  5191. soap_tmp___trt__RemoveAudioEncoderConfiguration_.trt__RemoveAudioEncoderConfiguration = trt__RemoveAudioEncoderConfiguration;
  5192. soap_set_version(soap, 2); /* SOAP1.2 */
  5193. soap_serializeheader(soap);
  5194. soap_serialize___trt__RemoveAudioEncoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration_);
  5195. if (soap_begin_count(soap))
  5196. return soap->error;
  5197. if (soap->mode & SOAP_IO_LENGTH)
  5198. { if (soap_envelope_begin_out(soap)
  5199. || soap_putheader(soap)
  5200. || soap_body_begin_out(soap)
  5201. || soap_put___trt__RemoveAudioEncoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration_, "-trt:RemoveAudioEncoderConfiguration", NULL)
  5202. || soap_body_end_out(soap)
  5203. || soap_envelope_end_out(soap))
  5204. return soap->error;
  5205. }
  5206. if (soap_end_count(soap))
  5207. return soap->error;
  5208. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5209. || soap_envelope_begin_out(soap)
  5210. || soap_putheader(soap)
  5211. || soap_body_begin_out(soap)
  5212. || soap_put___trt__RemoveAudioEncoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration_, "-trt:RemoveAudioEncoderConfiguration", NULL)
  5213. || soap_body_end_out(soap)
  5214. || soap_envelope_end_out(soap)
  5215. || soap_end_send(soap))
  5216. return soap_closesock(soap);
  5217. if (!trt__RemoveAudioEncoderConfigurationResponse)
  5218. return soap_closesock(soap);
  5219. trt__RemoveAudioEncoderConfigurationResponse->soap_default(soap);
  5220. if (soap_begin_recv(soap)
  5221. || soap_envelope_begin_in(soap)
  5222. || soap_recv_header(soap)
  5223. || soap_body_begin_in(soap))
  5224. return soap_closesock(soap);
  5225. trt__RemoveAudioEncoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioEncoderConfigurationResponse", "");
  5226. if (soap->error)
  5227. return soap_recv_fault(soap, 0);
  5228. if (soap_body_end_in(soap)
  5229. || soap_envelope_end_in(soap)
  5230. || soap_end_recv(soap))
  5231. return soap_closesock(soap);
  5232. return soap_closesock(soap);
  5233. }
  5234. int MediaBindingProxy::RemoveAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioSourceConfiguration *trt__RemoveAudioSourceConfiguration, _trt__RemoveAudioSourceConfigurationResponse *trt__RemoveAudioSourceConfigurationResponse)
  5235. { struct soap *soap = this;
  5236. struct __trt__RemoveAudioSourceConfiguration_ soap_tmp___trt__RemoveAudioSourceConfiguration_;
  5237. if (endpoint)
  5238. soap_endpoint = endpoint;
  5239. if (soap_action == NULL)
  5240. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioSourceConfiguration";
  5241. soap_begin(soap);
  5242. soap->encodingStyle = NULL;
  5243. soap_tmp___trt__RemoveAudioSourceConfiguration_.trt__RemoveAudioSourceConfiguration = trt__RemoveAudioSourceConfiguration;
  5244. soap_set_version(soap, 2); /* SOAP1.2 */
  5245. soap_serializeheader(soap);
  5246. soap_serialize___trt__RemoveAudioSourceConfiguration_(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration_);
  5247. if (soap_begin_count(soap))
  5248. return soap->error;
  5249. if (soap->mode & SOAP_IO_LENGTH)
  5250. { if (soap_envelope_begin_out(soap)
  5251. || soap_putheader(soap)
  5252. || soap_body_begin_out(soap)
  5253. || soap_put___trt__RemoveAudioSourceConfiguration_(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration_, "-trt:RemoveAudioSourceConfiguration", NULL)
  5254. || soap_body_end_out(soap)
  5255. || soap_envelope_end_out(soap))
  5256. return soap->error;
  5257. }
  5258. if (soap_end_count(soap))
  5259. return soap->error;
  5260. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5261. || soap_envelope_begin_out(soap)
  5262. || soap_putheader(soap)
  5263. || soap_body_begin_out(soap)
  5264. || soap_put___trt__RemoveAudioSourceConfiguration_(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration_, "-trt:RemoveAudioSourceConfiguration", NULL)
  5265. || soap_body_end_out(soap)
  5266. || soap_envelope_end_out(soap)
  5267. || soap_end_send(soap))
  5268. return soap_closesock(soap);
  5269. if (!trt__RemoveAudioSourceConfigurationResponse)
  5270. return soap_closesock(soap);
  5271. trt__RemoveAudioSourceConfigurationResponse->soap_default(soap);
  5272. if (soap_begin_recv(soap)
  5273. || soap_envelope_begin_in(soap)
  5274. || soap_recv_header(soap)
  5275. || soap_body_begin_in(soap))
  5276. return soap_closesock(soap);
  5277. trt__RemoveAudioSourceConfigurationResponse->soap_get(soap, "trt:RemoveAudioSourceConfigurationResponse", "");
  5278. if (soap->error)
  5279. return soap_recv_fault(soap, 0);
  5280. if (soap_body_end_in(soap)
  5281. || soap_envelope_end_in(soap)
  5282. || soap_end_recv(soap))
  5283. return soap_closesock(soap);
  5284. return soap_closesock(soap);
  5285. }
  5286. int MediaBindingProxy::RemovePTZConfiguration_(const char *endpoint, const char *soap_action, _trt__RemovePTZConfiguration *trt__RemovePTZConfiguration, _trt__RemovePTZConfigurationResponse *trt__RemovePTZConfigurationResponse)
  5287. { struct soap *soap = this;
  5288. struct __trt__RemovePTZConfiguration_ soap_tmp___trt__RemovePTZConfiguration_;
  5289. if (endpoint)
  5290. soap_endpoint = endpoint;
  5291. if (soap_action == NULL)
  5292. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemovePTZConfiguration";
  5293. soap_begin(soap);
  5294. soap->encodingStyle = NULL;
  5295. soap_tmp___trt__RemovePTZConfiguration_.trt__RemovePTZConfiguration = trt__RemovePTZConfiguration;
  5296. soap_set_version(soap, 2); /* SOAP1.2 */
  5297. soap_serializeheader(soap);
  5298. soap_serialize___trt__RemovePTZConfiguration_(soap, &soap_tmp___trt__RemovePTZConfiguration_);
  5299. if (soap_begin_count(soap))
  5300. return soap->error;
  5301. if (soap->mode & SOAP_IO_LENGTH)
  5302. { if (soap_envelope_begin_out(soap)
  5303. || soap_putheader(soap)
  5304. || soap_body_begin_out(soap)
  5305. || soap_put___trt__RemovePTZConfiguration_(soap, &soap_tmp___trt__RemovePTZConfiguration_, "-trt:RemovePTZConfiguration", NULL)
  5306. || soap_body_end_out(soap)
  5307. || soap_envelope_end_out(soap))
  5308. return soap->error;
  5309. }
  5310. if (soap_end_count(soap))
  5311. return soap->error;
  5312. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5313. || soap_envelope_begin_out(soap)
  5314. || soap_putheader(soap)
  5315. || soap_body_begin_out(soap)
  5316. || soap_put___trt__RemovePTZConfiguration_(soap, &soap_tmp___trt__RemovePTZConfiguration_, "-trt:RemovePTZConfiguration", NULL)
  5317. || soap_body_end_out(soap)
  5318. || soap_envelope_end_out(soap)
  5319. || soap_end_send(soap))
  5320. return soap_closesock(soap);
  5321. if (!trt__RemovePTZConfigurationResponse)
  5322. return soap_closesock(soap);
  5323. trt__RemovePTZConfigurationResponse->soap_default(soap);
  5324. if (soap_begin_recv(soap)
  5325. || soap_envelope_begin_in(soap)
  5326. || soap_recv_header(soap)
  5327. || soap_body_begin_in(soap))
  5328. return soap_closesock(soap);
  5329. trt__RemovePTZConfigurationResponse->soap_get(soap, "trt:RemovePTZConfigurationResponse", "");
  5330. if (soap->error)
  5331. return soap_recv_fault(soap, 0);
  5332. if (soap_body_end_in(soap)
  5333. || soap_envelope_end_in(soap)
  5334. || soap_end_recv(soap))
  5335. return soap_closesock(soap);
  5336. return soap_closesock(soap);
  5337. }
  5338. int MediaBindingProxy::RemoveVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveVideoAnalyticsConfiguration *trt__RemoveVideoAnalyticsConfiguration, _trt__RemoveVideoAnalyticsConfigurationResponse *trt__RemoveVideoAnalyticsConfigurationResponse)
  5339. { struct soap *soap = this;
  5340. struct __trt__RemoveVideoAnalyticsConfiguration_ soap_tmp___trt__RemoveVideoAnalyticsConfiguration_;
  5341. if (endpoint)
  5342. soap_endpoint = endpoint;
  5343. if (soap_action == NULL)
  5344. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoAnalyticsConfiguration";
  5345. soap_begin(soap);
  5346. soap->encodingStyle = NULL;
  5347. soap_tmp___trt__RemoveVideoAnalyticsConfiguration_.trt__RemoveVideoAnalyticsConfiguration = trt__RemoveVideoAnalyticsConfiguration;
  5348. soap_set_version(soap, 2); /* SOAP1.2 */
  5349. soap_serializeheader(soap);
  5350. soap_serialize___trt__RemoveVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration_);
  5351. if (soap_begin_count(soap))
  5352. return soap->error;
  5353. if (soap->mode & SOAP_IO_LENGTH)
  5354. { if (soap_envelope_begin_out(soap)
  5355. || soap_putheader(soap)
  5356. || soap_body_begin_out(soap)
  5357. || soap_put___trt__RemoveVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration_, "-trt:RemoveVideoAnalyticsConfiguration", NULL)
  5358. || soap_body_end_out(soap)
  5359. || soap_envelope_end_out(soap))
  5360. return soap->error;
  5361. }
  5362. if (soap_end_count(soap))
  5363. return soap->error;
  5364. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5365. || soap_envelope_begin_out(soap)
  5366. || soap_putheader(soap)
  5367. || soap_body_begin_out(soap)
  5368. || soap_put___trt__RemoveVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration_, "-trt:RemoveVideoAnalyticsConfiguration", NULL)
  5369. || soap_body_end_out(soap)
  5370. || soap_envelope_end_out(soap)
  5371. || soap_end_send(soap))
  5372. return soap_closesock(soap);
  5373. if (!trt__RemoveVideoAnalyticsConfigurationResponse)
  5374. return soap_closesock(soap);
  5375. trt__RemoveVideoAnalyticsConfigurationResponse->soap_default(soap);
  5376. if (soap_begin_recv(soap)
  5377. || soap_envelope_begin_in(soap)
  5378. || soap_recv_header(soap)
  5379. || soap_body_begin_in(soap))
  5380. return soap_closesock(soap);
  5381. trt__RemoveVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:RemoveVideoAnalyticsConfigurationResponse", "");
  5382. if (soap->error)
  5383. return soap_recv_fault(soap, 0);
  5384. if (soap_body_end_in(soap)
  5385. || soap_envelope_end_in(soap)
  5386. || soap_end_recv(soap))
  5387. return soap_closesock(soap);
  5388. return soap_closesock(soap);
  5389. }
  5390. int MediaBindingProxy::RemoveMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveMetadataConfiguration *trt__RemoveMetadataConfiguration, _trt__RemoveMetadataConfigurationResponse *trt__RemoveMetadataConfigurationResponse)
  5391. { struct soap *soap = this;
  5392. struct __trt__RemoveMetadataConfiguration_ soap_tmp___trt__RemoveMetadataConfiguration_;
  5393. if (endpoint)
  5394. soap_endpoint = endpoint;
  5395. if (soap_action == NULL)
  5396. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveMetadataConfiguration";
  5397. soap_begin(soap);
  5398. soap->encodingStyle = NULL;
  5399. soap_tmp___trt__RemoveMetadataConfiguration_.trt__RemoveMetadataConfiguration = trt__RemoveMetadataConfiguration;
  5400. soap_set_version(soap, 2); /* SOAP1.2 */
  5401. soap_serializeheader(soap);
  5402. soap_serialize___trt__RemoveMetadataConfiguration_(soap, &soap_tmp___trt__RemoveMetadataConfiguration_);
  5403. if (soap_begin_count(soap))
  5404. return soap->error;
  5405. if (soap->mode & SOAP_IO_LENGTH)
  5406. { if (soap_envelope_begin_out(soap)
  5407. || soap_putheader(soap)
  5408. || soap_body_begin_out(soap)
  5409. || soap_put___trt__RemoveMetadataConfiguration_(soap, &soap_tmp___trt__RemoveMetadataConfiguration_, "-trt:RemoveMetadataConfiguration", NULL)
  5410. || soap_body_end_out(soap)
  5411. || soap_envelope_end_out(soap))
  5412. return soap->error;
  5413. }
  5414. if (soap_end_count(soap))
  5415. return soap->error;
  5416. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5417. || soap_envelope_begin_out(soap)
  5418. || soap_putheader(soap)
  5419. || soap_body_begin_out(soap)
  5420. || soap_put___trt__RemoveMetadataConfiguration_(soap, &soap_tmp___trt__RemoveMetadataConfiguration_, "-trt:RemoveMetadataConfiguration", NULL)
  5421. || soap_body_end_out(soap)
  5422. || soap_envelope_end_out(soap)
  5423. || soap_end_send(soap))
  5424. return soap_closesock(soap);
  5425. if (!trt__RemoveMetadataConfigurationResponse)
  5426. return soap_closesock(soap);
  5427. trt__RemoveMetadataConfigurationResponse->soap_default(soap);
  5428. if (soap_begin_recv(soap)
  5429. || soap_envelope_begin_in(soap)
  5430. || soap_recv_header(soap)
  5431. || soap_body_begin_in(soap))
  5432. return soap_closesock(soap);
  5433. trt__RemoveMetadataConfigurationResponse->soap_get(soap, "trt:RemoveMetadataConfigurationResponse", "");
  5434. if (soap->error)
  5435. return soap_recv_fault(soap, 0);
  5436. if (soap_body_end_in(soap)
  5437. || soap_envelope_end_in(soap)
  5438. || soap_end_recv(soap))
  5439. return soap_closesock(soap);
  5440. return soap_closesock(soap);
  5441. }
  5442. int MediaBindingProxy::RemoveAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioOutputConfiguration *trt__RemoveAudioOutputConfiguration, _trt__RemoveAudioOutputConfigurationResponse *trt__RemoveAudioOutputConfigurationResponse)
  5443. { struct soap *soap = this;
  5444. struct __trt__RemoveAudioOutputConfiguration_ soap_tmp___trt__RemoveAudioOutputConfiguration_;
  5445. if (endpoint)
  5446. soap_endpoint = endpoint;
  5447. if (soap_action == NULL)
  5448. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioOutputConfiguration";
  5449. soap_begin(soap);
  5450. soap->encodingStyle = NULL;
  5451. soap_tmp___trt__RemoveAudioOutputConfiguration_.trt__RemoveAudioOutputConfiguration = trt__RemoveAudioOutputConfiguration;
  5452. soap_set_version(soap, 2); /* SOAP1.2 */
  5453. soap_serializeheader(soap);
  5454. soap_serialize___trt__RemoveAudioOutputConfiguration_(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration_);
  5455. if (soap_begin_count(soap))
  5456. return soap->error;
  5457. if (soap->mode & SOAP_IO_LENGTH)
  5458. { if (soap_envelope_begin_out(soap)
  5459. || soap_putheader(soap)
  5460. || soap_body_begin_out(soap)
  5461. || soap_put___trt__RemoveAudioOutputConfiguration_(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration_, "-trt:RemoveAudioOutputConfiguration", NULL)
  5462. || soap_body_end_out(soap)
  5463. || soap_envelope_end_out(soap))
  5464. return soap->error;
  5465. }
  5466. if (soap_end_count(soap))
  5467. return soap->error;
  5468. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5469. || soap_envelope_begin_out(soap)
  5470. || soap_putheader(soap)
  5471. || soap_body_begin_out(soap)
  5472. || soap_put___trt__RemoveAudioOutputConfiguration_(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration_, "-trt:RemoveAudioOutputConfiguration", NULL)
  5473. || soap_body_end_out(soap)
  5474. || soap_envelope_end_out(soap)
  5475. || soap_end_send(soap))
  5476. return soap_closesock(soap);
  5477. if (!trt__RemoveAudioOutputConfigurationResponse)
  5478. return soap_closesock(soap);
  5479. trt__RemoveAudioOutputConfigurationResponse->soap_default(soap);
  5480. if (soap_begin_recv(soap)
  5481. || soap_envelope_begin_in(soap)
  5482. || soap_recv_header(soap)
  5483. || soap_body_begin_in(soap))
  5484. return soap_closesock(soap);
  5485. trt__RemoveAudioOutputConfigurationResponse->soap_get(soap, "trt:RemoveAudioOutputConfigurationResponse", "");
  5486. if (soap->error)
  5487. return soap_recv_fault(soap, 0);
  5488. if (soap_body_end_in(soap)
  5489. || soap_envelope_end_in(soap)
  5490. || soap_end_recv(soap))
  5491. return soap_closesock(soap);
  5492. return soap_closesock(soap);
  5493. }
  5494. int MediaBindingProxy::RemoveAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioDecoderConfiguration *trt__RemoveAudioDecoderConfiguration, _trt__RemoveAudioDecoderConfigurationResponse *trt__RemoveAudioDecoderConfigurationResponse)
  5495. { struct soap *soap = this;
  5496. struct __trt__RemoveAudioDecoderConfiguration_ soap_tmp___trt__RemoveAudioDecoderConfiguration_;
  5497. if (endpoint)
  5498. soap_endpoint = endpoint;
  5499. if (soap_action == NULL)
  5500. soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioDecoderConfiguration";
  5501. soap_begin(soap);
  5502. soap->encodingStyle = NULL;
  5503. soap_tmp___trt__RemoveAudioDecoderConfiguration_.trt__RemoveAudioDecoderConfiguration = trt__RemoveAudioDecoderConfiguration;
  5504. soap_set_version(soap, 2); /* SOAP1.2 */
  5505. soap_serializeheader(soap);
  5506. soap_serialize___trt__RemoveAudioDecoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration_);
  5507. if (soap_begin_count(soap))
  5508. return soap->error;
  5509. if (soap->mode & SOAP_IO_LENGTH)
  5510. { if (soap_envelope_begin_out(soap)
  5511. || soap_putheader(soap)
  5512. || soap_body_begin_out(soap)
  5513. || soap_put___trt__RemoveAudioDecoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration_, "-trt:RemoveAudioDecoderConfiguration", NULL)
  5514. || soap_body_end_out(soap)
  5515. || soap_envelope_end_out(soap))
  5516. return soap->error;
  5517. }
  5518. if (soap_end_count(soap))
  5519. return soap->error;
  5520. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5521. || soap_envelope_begin_out(soap)
  5522. || soap_putheader(soap)
  5523. || soap_body_begin_out(soap)
  5524. || soap_put___trt__RemoveAudioDecoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration_, "-trt:RemoveAudioDecoderConfiguration", NULL)
  5525. || soap_body_end_out(soap)
  5526. || soap_envelope_end_out(soap)
  5527. || soap_end_send(soap))
  5528. return soap_closesock(soap);
  5529. if (!trt__RemoveAudioDecoderConfigurationResponse)
  5530. return soap_closesock(soap);
  5531. trt__RemoveAudioDecoderConfigurationResponse->soap_default(soap);
  5532. if (soap_begin_recv(soap)
  5533. || soap_envelope_begin_in(soap)
  5534. || soap_recv_header(soap)
  5535. || soap_body_begin_in(soap))
  5536. return soap_closesock(soap);
  5537. trt__RemoveAudioDecoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioDecoderConfigurationResponse", "");
  5538. if (soap->error)
  5539. return soap_recv_fault(soap, 0);
  5540. if (soap_body_end_in(soap)
  5541. || soap_envelope_end_in(soap)
  5542. || soap_end_recv(soap))
  5543. return soap_closesock(soap);
  5544. return soap_closesock(soap);
  5545. }
  5546. int MediaBindingProxy::DeleteProfile_(const char *endpoint, const char *soap_action, _trt__DeleteProfile *trt__DeleteProfile, _trt__DeleteProfileResponse *trt__DeleteProfileResponse)
  5547. { struct soap *soap = this;
  5548. struct __trt__DeleteProfile_ soap_tmp___trt__DeleteProfile_;
  5549. if (endpoint)
  5550. soap_endpoint = endpoint;
  5551. if (soap_action == NULL)
  5552. soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteProfile";
  5553. soap_begin(soap);
  5554. soap->encodingStyle = NULL;
  5555. soap_tmp___trt__DeleteProfile_.trt__DeleteProfile = trt__DeleteProfile;
  5556. soap_set_version(soap, 2); /* SOAP1.2 */
  5557. soap_serializeheader(soap);
  5558. soap_serialize___trt__DeleteProfile_(soap, &soap_tmp___trt__DeleteProfile_);
  5559. if (soap_begin_count(soap))
  5560. return soap->error;
  5561. if (soap->mode & SOAP_IO_LENGTH)
  5562. { if (soap_envelope_begin_out(soap)
  5563. || soap_putheader(soap)
  5564. || soap_body_begin_out(soap)
  5565. || soap_put___trt__DeleteProfile_(soap, &soap_tmp___trt__DeleteProfile_, "-trt:DeleteProfile", NULL)
  5566. || soap_body_end_out(soap)
  5567. || soap_envelope_end_out(soap))
  5568. return soap->error;
  5569. }
  5570. if (soap_end_count(soap))
  5571. return soap->error;
  5572. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5573. || soap_envelope_begin_out(soap)
  5574. || soap_putheader(soap)
  5575. || soap_body_begin_out(soap)
  5576. || soap_put___trt__DeleteProfile_(soap, &soap_tmp___trt__DeleteProfile_, "-trt:DeleteProfile", NULL)
  5577. || soap_body_end_out(soap)
  5578. || soap_envelope_end_out(soap)
  5579. || soap_end_send(soap))
  5580. return soap_closesock(soap);
  5581. if (!trt__DeleteProfileResponse)
  5582. return soap_closesock(soap);
  5583. trt__DeleteProfileResponse->soap_default(soap);
  5584. if (soap_begin_recv(soap)
  5585. || soap_envelope_begin_in(soap)
  5586. || soap_recv_header(soap)
  5587. || soap_body_begin_in(soap))
  5588. return soap_closesock(soap);
  5589. trt__DeleteProfileResponse->soap_get(soap, "trt:DeleteProfileResponse", "");
  5590. if (soap->error)
  5591. return soap_recv_fault(soap, 0);
  5592. if (soap_body_end_in(soap)
  5593. || soap_envelope_end_in(soap)
  5594. || soap_end_recv(soap))
  5595. return soap_closesock(soap);
  5596. return soap_closesock(soap);
  5597. }
  5598. int MediaBindingProxy::GetVideoSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurations *trt__GetVideoSourceConfigurations, _trt__GetVideoSourceConfigurationsResponse *trt__GetVideoSourceConfigurationsResponse)
  5599. { struct soap *soap = this;
  5600. struct __trt__GetVideoSourceConfigurations_ soap_tmp___trt__GetVideoSourceConfigurations_;
  5601. if (endpoint)
  5602. soap_endpoint = endpoint;
  5603. if (soap_action == NULL)
  5604. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurations";
  5605. soap_begin(soap);
  5606. soap->encodingStyle = NULL;
  5607. soap_tmp___trt__GetVideoSourceConfigurations_.trt__GetVideoSourceConfigurations = trt__GetVideoSourceConfigurations;
  5608. soap_set_version(soap, 2); /* SOAP1.2 */
  5609. soap_serializeheader(soap);
  5610. soap_serialize___trt__GetVideoSourceConfigurations_(soap, &soap_tmp___trt__GetVideoSourceConfigurations_);
  5611. if (soap_begin_count(soap))
  5612. return soap->error;
  5613. if (soap->mode & SOAP_IO_LENGTH)
  5614. { if (soap_envelope_begin_out(soap)
  5615. || soap_putheader(soap)
  5616. || soap_body_begin_out(soap)
  5617. || soap_put___trt__GetVideoSourceConfigurations_(soap, &soap_tmp___trt__GetVideoSourceConfigurations_, "-trt:GetVideoSourceConfigurations", NULL)
  5618. || soap_body_end_out(soap)
  5619. || soap_envelope_end_out(soap))
  5620. return soap->error;
  5621. }
  5622. if (soap_end_count(soap))
  5623. return soap->error;
  5624. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5625. || soap_envelope_begin_out(soap)
  5626. || soap_putheader(soap)
  5627. || soap_body_begin_out(soap)
  5628. || soap_put___trt__GetVideoSourceConfigurations_(soap, &soap_tmp___trt__GetVideoSourceConfigurations_, "-trt:GetVideoSourceConfigurations", NULL)
  5629. || soap_body_end_out(soap)
  5630. || soap_envelope_end_out(soap)
  5631. || soap_end_send(soap))
  5632. return soap_closesock(soap);
  5633. if (!trt__GetVideoSourceConfigurationsResponse)
  5634. return soap_closesock(soap);
  5635. trt__GetVideoSourceConfigurationsResponse->soap_default(soap);
  5636. if (soap_begin_recv(soap)
  5637. || soap_envelope_begin_in(soap)
  5638. || soap_recv_header(soap)
  5639. || soap_body_begin_in(soap))
  5640. return soap_closesock(soap);
  5641. trt__GetVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationsResponse", "");
  5642. if (soap->error)
  5643. return soap_recv_fault(soap, 0);
  5644. if (soap_body_end_in(soap)
  5645. || soap_envelope_end_in(soap)
  5646. || soap_end_recv(soap))
  5647. return soap_closesock(soap);
  5648. return soap_closesock(soap);
  5649. }
  5650. int MediaBindingProxy::GetVideoEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurations *trt__GetVideoEncoderConfigurations, _trt__GetVideoEncoderConfigurationsResponse *trt__GetVideoEncoderConfigurationsResponse)
  5651. { struct soap *soap = this;
  5652. struct __trt__GetVideoEncoderConfigurations_ soap_tmp___trt__GetVideoEncoderConfigurations_;
  5653. if (endpoint)
  5654. soap_endpoint = endpoint;
  5655. if (soap_action == NULL)
  5656. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurations";
  5657. soap_begin(soap);
  5658. soap->encodingStyle = NULL;
  5659. soap_tmp___trt__GetVideoEncoderConfigurations_.trt__GetVideoEncoderConfigurations = trt__GetVideoEncoderConfigurations;
  5660. soap_set_version(soap, 2); /* SOAP1.2 */
  5661. soap_serializeheader(soap);
  5662. soap_serialize___trt__GetVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetVideoEncoderConfigurations_);
  5663. if (soap_begin_count(soap))
  5664. return soap->error;
  5665. if (soap->mode & SOAP_IO_LENGTH)
  5666. { if (soap_envelope_begin_out(soap)
  5667. || soap_putheader(soap)
  5668. || soap_body_begin_out(soap)
  5669. || soap_put___trt__GetVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetVideoEncoderConfigurations_, "-trt:GetVideoEncoderConfigurations", NULL)
  5670. || soap_body_end_out(soap)
  5671. || soap_envelope_end_out(soap))
  5672. return soap->error;
  5673. }
  5674. if (soap_end_count(soap))
  5675. return soap->error;
  5676. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5677. || soap_envelope_begin_out(soap)
  5678. || soap_putheader(soap)
  5679. || soap_body_begin_out(soap)
  5680. || soap_put___trt__GetVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetVideoEncoderConfigurations_, "-trt:GetVideoEncoderConfigurations", NULL)
  5681. || soap_body_end_out(soap)
  5682. || soap_envelope_end_out(soap)
  5683. || soap_end_send(soap))
  5684. return soap_closesock(soap);
  5685. if (!trt__GetVideoEncoderConfigurationsResponse)
  5686. return soap_closesock(soap);
  5687. trt__GetVideoEncoderConfigurationsResponse->soap_default(soap);
  5688. if (soap_begin_recv(soap)
  5689. || soap_envelope_begin_in(soap)
  5690. || soap_recv_header(soap)
  5691. || soap_body_begin_in(soap))
  5692. return soap_closesock(soap);
  5693. trt__GetVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationsResponse", "");
  5694. if (soap->error)
  5695. return soap_recv_fault(soap, 0);
  5696. if (soap_body_end_in(soap)
  5697. || soap_envelope_end_in(soap)
  5698. || soap_end_recv(soap))
  5699. return soap_closesock(soap);
  5700. return soap_closesock(soap);
  5701. }
  5702. int MediaBindingProxy::GetAudioSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurations *trt__GetAudioSourceConfigurations, _trt__GetAudioSourceConfigurationsResponse *trt__GetAudioSourceConfigurationsResponse)
  5703. { struct soap *soap = this;
  5704. struct __trt__GetAudioSourceConfigurations_ soap_tmp___trt__GetAudioSourceConfigurations_;
  5705. if (endpoint)
  5706. soap_endpoint = endpoint;
  5707. if (soap_action == NULL)
  5708. soap_action = "http://www.onvif.org/ver10/media/wsdlGetAudioSourceConfigurations/";
  5709. soap_begin(soap);
  5710. soap->encodingStyle = NULL;
  5711. soap_tmp___trt__GetAudioSourceConfigurations_.trt__GetAudioSourceConfigurations = trt__GetAudioSourceConfigurations;
  5712. soap_set_version(soap, 2); /* SOAP1.2 */
  5713. soap_serializeheader(soap);
  5714. soap_serialize___trt__GetAudioSourceConfigurations_(soap, &soap_tmp___trt__GetAudioSourceConfigurations_);
  5715. if (soap_begin_count(soap))
  5716. return soap->error;
  5717. if (soap->mode & SOAP_IO_LENGTH)
  5718. { if (soap_envelope_begin_out(soap)
  5719. || soap_putheader(soap)
  5720. || soap_body_begin_out(soap)
  5721. || soap_put___trt__GetAudioSourceConfigurations_(soap, &soap_tmp___trt__GetAudioSourceConfigurations_, "-trt:GetAudioSourceConfigurations", NULL)
  5722. || soap_body_end_out(soap)
  5723. || soap_envelope_end_out(soap))
  5724. return soap->error;
  5725. }
  5726. if (soap_end_count(soap))
  5727. return soap->error;
  5728. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5729. || soap_envelope_begin_out(soap)
  5730. || soap_putheader(soap)
  5731. || soap_body_begin_out(soap)
  5732. || soap_put___trt__GetAudioSourceConfigurations_(soap, &soap_tmp___trt__GetAudioSourceConfigurations_, "-trt:GetAudioSourceConfigurations", NULL)
  5733. || soap_body_end_out(soap)
  5734. || soap_envelope_end_out(soap)
  5735. || soap_end_send(soap))
  5736. return soap_closesock(soap);
  5737. if (!trt__GetAudioSourceConfigurationsResponse)
  5738. return soap_closesock(soap);
  5739. trt__GetAudioSourceConfigurationsResponse->soap_default(soap);
  5740. if (soap_begin_recv(soap)
  5741. || soap_envelope_begin_in(soap)
  5742. || soap_recv_header(soap)
  5743. || soap_body_begin_in(soap))
  5744. return soap_closesock(soap);
  5745. trt__GetAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationsResponse", "");
  5746. if (soap->error)
  5747. return soap_recv_fault(soap, 0);
  5748. if (soap_body_end_in(soap)
  5749. || soap_envelope_end_in(soap)
  5750. || soap_end_recv(soap))
  5751. return soap_closesock(soap);
  5752. return soap_closesock(soap);
  5753. }
  5754. int MediaBindingProxy::GetAudioEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurations *trt__GetAudioEncoderConfigurations, _trt__GetAudioEncoderConfigurationsResponse *trt__GetAudioEncoderConfigurationsResponse)
  5755. { struct soap *soap = this;
  5756. struct __trt__GetAudioEncoderConfigurations_ soap_tmp___trt__GetAudioEncoderConfigurations_;
  5757. if (endpoint)
  5758. soap_endpoint = endpoint;
  5759. if (soap_action == NULL)
  5760. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurations";
  5761. soap_begin(soap);
  5762. soap->encodingStyle = NULL;
  5763. soap_tmp___trt__GetAudioEncoderConfigurations_.trt__GetAudioEncoderConfigurations = trt__GetAudioEncoderConfigurations;
  5764. soap_set_version(soap, 2); /* SOAP1.2 */
  5765. soap_serializeheader(soap);
  5766. soap_serialize___trt__GetAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetAudioEncoderConfigurations_);
  5767. if (soap_begin_count(soap))
  5768. return soap->error;
  5769. if (soap->mode & SOAP_IO_LENGTH)
  5770. { if (soap_envelope_begin_out(soap)
  5771. || soap_putheader(soap)
  5772. || soap_body_begin_out(soap)
  5773. || soap_put___trt__GetAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetAudioEncoderConfigurations_, "-trt:GetAudioEncoderConfigurations", NULL)
  5774. || soap_body_end_out(soap)
  5775. || soap_envelope_end_out(soap))
  5776. return soap->error;
  5777. }
  5778. if (soap_end_count(soap))
  5779. return soap->error;
  5780. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5781. || soap_envelope_begin_out(soap)
  5782. || soap_putheader(soap)
  5783. || soap_body_begin_out(soap)
  5784. || soap_put___trt__GetAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetAudioEncoderConfigurations_, "-trt:GetAudioEncoderConfigurations", NULL)
  5785. || soap_body_end_out(soap)
  5786. || soap_envelope_end_out(soap)
  5787. || soap_end_send(soap))
  5788. return soap_closesock(soap);
  5789. if (!trt__GetAudioEncoderConfigurationsResponse)
  5790. return soap_closesock(soap);
  5791. trt__GetAudioEncoderConfigurationsResponse->soap_default(soap);
  5792. if (soap_begin_recv(soap)
  5793. || soap_envelope_begin_in(soap)
  5794. || soap_recv_header(soap)
  5795. || soap_body_begin_in(soap))
  5796. return soap_closesock(soap);
  5797. trt__GetAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationsResponse", "");
  5798. if (soap->error)
  5799. return soap_recv_fault(soap, 0);
  5800. if (soap_body_end_in(soap)
  5801. || soap_envelope_end_in(soap)
  5802. || soap_end_recv(soap))
  5803. return soap_closesock(soap);
  5804. return soap_closesock(soap);
  5805. }
  5806. int MediaBindingProxy::GetVideoAnalyticsConfigurations_(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfigurations *trt__GetVideoAnalyticsConfigurations, _trt__GetVideoAnalyticsConfigurationsResponse *trt__GetVideoAnalyticsConfigurationsResponse)
  5807. { struct soap *soap = this;
  5808. struct __trt__GetVideoAnalyticsConfigurations_ soap_tmp___trt__GetVideoAnalyticsConfigurations_;
  5809. if (endpoint)
  5810. soap_endpoint = endpoint;
  5811. if (soap_action == NULL)
  5812. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfigurations";
  5813. soap_begin(soap);
  5814. soap->encodingStyle = NULL;
  5815. soap_tmp___trt__GetVideoAnalyticsConfigurations_.trt__GetVideoAnalyticsConfigurations = trt__GetVideoAnalyticsConfigurations;
  5816. soap_set_version(soap, 2); /* SOAP1.2 */
  5817. soap_serializeheader(soap);
  5818. soap_serialize___trt__GetVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations_);
  5819. if (soap_begin_count(soap))
  5820. return soap->error;
  5821. if (soap->mode & SOAP_IO_LENGTH)
  5822. { if (soap_envelope_begin_out(soap)
  5823. || soap_putheader(soap)
  5824. || soap_body_begin_out(soap)
  5825. || soap_put___trt__GetVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations_, "-trt:GetVideoAnalyticsConfigurations", NULL)
  5826. || soap_body_end_out(soap)
  5827. || soap_envelope_end_out(soap))
  5828. return soap->error;
  5829. }
  5830. if (soap_end_count(soap))
  5831. return soap->error;
  5832. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5833. || soap_envelope_begin_out(soap)
  5834. || soap_putheader(soap)
  5835. || soap_body_begin_out(soap)
  5836. || soap_put___trt__GetVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations_, "-trt:GetVideoAnalyticsConfigurations", NULL)
  5837. || soap_body_end_out(soap)
  5838. || soap_envelope_end_out(soap)
  5839. || soap_end_send(soap))
  5840. return soap_closesock(soap);
  5841. if (!trt__GetVideoAnalyticsConfigurationsResponse)
  5842. return soap_closesock(soap);
  5843. trt__GetVideoAnalyticsConfigurationsResponse->soap_default(soap);
  5844. if (soap_begin_recv(soap)
  5845. || soap_envelope_begin_in(soap)
  5846. || soap_recv_header(soap)
  5847. || soap_body_begin_in(soap))
  5848. return soap_closesock(soap);
  5849. trt__GetVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationsResponse", "");
  5850. if (soap->error)
  5851. return soap_recv_fault(soap, 0);
  5852. if (soap_body_end_in(soap)
  5853. || soap_envelope_end_in(soap)
  5854. || soap_end_recv(soap))
  5855. return soap_closesock(soap);
  5856. return soap_closesock(soap);
  5857. }
  5858. int MediaBindingProxy::GetMetadataConfigurations_(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurations *trt__GetMetadataConfigurations, _trt__GetMetadataConfigurationsResponse *trt__GetMetadataConfigurationsResponse)
  5859. { struct soap *soap = this;
  5860. struct __trt__GetMetadataConfigurations_ soap_tmp___trt__GetMetadataConfigurations_;
  5861. if (endpoint)
  5862. soap_endpoint = endpoint;
  5863. if (soap_action == NULL)
  5864. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurations";
  5865. soap_begin(soap);
  5866. soap->encodingStyle = NULL;
  5867. soap_tmp___trt__GetMetadataConfigurations_.trt__GetMetadataConfigurations = trt__GetMetadataConfigurations;
  5868. soap_set_version(soap, 2); /* SOAP1.2 */
  5869. soap_serializeheader(soap);
  5870. soap_serialize___trt__GetMetadataConfigurations_(soap, &soap_tmp___trt__GetMetadataConfigurations_);
  5871. if (soap_begin_count(soap))
  5872. return soap->error;
  5873. if (soap->mode & SOAP_IO_LENGTH)
  5874. { if (soap_envelope_begin_out(soap)
  5875. || soap_putheader(soap)
  5876. || soap_body_begin_out(soap)
  5877. || soap_put___trt__GetMetadataConfigurations_(soap, &soap_tmp___trt__GetMetadataConfigurations_, "-trt:GetMetadataConfigurations", NULL)
  5878. || soap_body_end_out(soap)
  5879. || soap_envelope_end_out(soap))
  5880. return soap->error;
  5881. }
  5882. if (soap_end_count(soap))
  5883. return soap->error;
  5884. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5885. || soap_envelope_begin_out(soap)
  5886. || soap_putheader(soap)
  5887. || soap_body_begin_out(soap)
  5888. || soap_put___trt__GetMetadataConfigurations_(soap, &soap_tmp___trt__GetMetadataConfigurations_, "-trt:GetMetadataConfigurations", NULL)
  5889. || soap_body_end_out(soap)
  5890. || soap_envelope_end_out(soap)
  5891. || soap_end_send(soap))
  5892. return soap_closesock(soap);
  5893. if (!trt__GetMetadataConfigurationsResponse)
  5894. return soap_closesock(soap);
  5895. trt__GetMetadataConfigurationsResponse->soap_default(soap);
  5896. if (soap_begin_recv(soap)
  5897. || soap_envelope_begin_in(soap)
  5898. || soap_recv_header(soap)
  5899. || soap_body_begin_in(soap))
  5900. return soap_closesock(soap);
  5901. trt__GetMetadataConfigurationsResponse->soap_get(soap, "trt:GetMetadataConfigurationsResponse", "");
  5902. if (soap->error)
  5903. return soap_recv_fault(soap, 0);
  5904. if (soap_body_end_in(soap)
  5905. || soap_envelope_end_in(soap)
  5906. || soap_end_recv(soap))
  5907. return soap_closesock(soap);
  5908. return soap_closesock(soap);
  5909. }
  5910. int MediaBindingProxy::GetAudioOutputConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurations *trt__GetAudioOutputConfigurations, _trt__GetAudioOutputConfigurationsResponse *trt__GetAudioOutputConfigurationsResponse)
  5911. { struct soap *soap = this;
  5912. struct __trt__GetAudioOutputConfigurations_ soap_tmp___trt__GetAudioOutputConfigurations_;
  5913. if (endpoint)
  5914. soap_endpoint = endpoint;
  5915. if (soap_action == NULL)
  5916. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurations";
  5917. soap_begin(soap);
  5918. soap->encodingStyle = NULL;
  5919. soap_tmp___trt__GetAudioOutputConfigurations_.trt__GetAudioOutputConfigurations = trt__GetAudioOutputConfigurations;
  5920. soap_set_version(soap, 2); /* SOAP1.2 */
  5921. soap_serializeheader(soap);
  5922. soap_serialize___trt__GetAudioOutputConfigurations_(soap, &soap_tmp___trt__GetAudioOutputConfigurations_);
  5923. if (soap_begin_count(soap))
  5924. return soap->error;
  5925. if (soap->mode & SOAP_IO_LENGTH)
  5926. { if (soap_envelope_begin_out(soap)
  5927. || soap_putheader(soap)
  5928. || soap_body_begin_out(soap)
  5929. || soap_put___trt__GetAudioOutputConfigurations_(soap, &soap_tmp___trt__GetAudioOutputConfigurations_, "-trt:GetAudioOutputConfigurations", NULL)
  5930. || soap_body_end_out(soap)
  5931. || soap_envelope_end_out(soap))
  5932. return soap->error;
  5933. }
  5934. if (soap_end_count(soap))
  5935. return soap->error;
  5936. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5937. || soap_envelope_begin_out(soap)
  5938. || soap_putheader(soap)
  5939. || soap_body_begin_out(soap)
  5940. || soap_put___trt__GetAudioOutputConfigurations_(soap, &soap_tmp___trt__GetAudioOutputConfigurations_, "-trt:GetAudioOutputConfigurations", NULL)
  5941. || soap_body_end_out(soap)
  5942. || soap_envelope_end_out(soap)
  5943. || soap_end_send(soap))
  5944. return soap_closesock(soap);
  5945. if (!trt__GetAudioOutputConfigurationsResponse)
  5946. return soap_closesock(soap);
  5947. trt__GetAudioOutputConfigurationsResponse->soap_default(soap);
  5948. if (soap_begin_recv(soap)
  5949. || soap_envelope_begin_in(soap)
  5950. || soap_recv_header(soap)
  5951. || soap_body_begin_in(soap))
  5952. return soap_closesock(soap);
  5953. trt__GetAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationsResponse", "");
  5954. if (soap->error)
  5955. return soap_recv_fault(soap, 0);
  5956. if (soap_body_end_in(soap)
  5957. || soap_envelope_end_in(soap)
  5958. || soap_end_recv(soap))
  5959. return soap_closesock(soap);
  5960. return soap_closesock(soap);
  5961. }
  5962. int MediaBindingProxy::GetAudioDecoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurations *trt__GetAudioDecoderConfigurations, _trt__GetAudioDecoderConfigurationsResponse *trt__GetAudioDecoderConfigurationsResponse)
  5963. { struct soap *soap = this;
  5964. struct __trt__GetAudioDecoderConfigurations_ soap_tmp___trt__GetAudioDecoderConfigurations_;
  5965. if (endpoint)
  5966. soap_endpoint = endpoint;
  5967. if (soap_action == NULL)
  5968. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurations";
  5969. soap_begin(soap);
  5970. soap->encodingStyle = NULL;
  5971. soap_tmp___trt__GetAudioDecoderConfigurations_.trt__GetAudioDecoderConfigurations = trt__GetAudioDecoderConfigurations;
  5972. soap_set_version(soap, 2); /* SOAP1.2 */
  5973. soap_serializeheader(soap);
  5974. soap_serialize___trt__GetAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetAudioDecoderConfigurations_);
  5975. if (soap_begin_count(soap))
  5976. return soap->error;
  5977. if (soap->mode & SOAP_IO_LENGTH)
  5978. { if (soap_envelope_begin_out(soap)
  5979. || soap_putheader(soap)
  5980. || soap_body_begin_out(soap)
  5981. || soap_put___trt__GetAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetAudioDecoderConfigurations_, "-trt:GetAudioDecoderConfigurations", NULL)
  5982. || soap_body_end_out(soap)
  5983. || soap_envelope_end_out(soap))
  5984. return soap->error;
  5985. }
  5986. if (soap_end_count(soap))
  5987. return soap->error;
  5988. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  5989. || soap_envelope_begin_out(soap)
  5990. || soap_putheader(soap)
  5991. || soap_body_begin_out(soap)
  5992. || soap_put___trt__GetAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetAudioDecoderConfigurations_, "-trt:GetAudioDecoderConfigurations", NULL)
  5993. || soap_body_end_out(soap)
  5994. || soap_envelope_end_out(soap)
  5995. || soap_end_send(soap))
  5996. return soap_closesock(soap);
  5997. if (!trt__GetAudioDecoderConfigurationsResponse)
  5998. return soap_closesock(soap);
  5999. trt__GetAudioDecoderConfigurationsResponse->soap_default(soap);
  6000. if (soap_begin_recv(soap)
  6001. || soap_envelope_begin_in(soap)
  6002. || soap_recv_header(soap)
  6003. || soap_body_begin_in(soap))
  6004. return soap_closesock(soap);
  6005. trt__GetAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationsResponse", "");
  6006. if (soap->error)
  6007. return soap_recv_fault(soap, 0);
  6008. if (soap_body_end_in(soap)
  6009. || soap_envelope_end_in(soap)
  6010. || soap_end_recv(soap))
  6011. return soap_closesock(soap);
  6012. return soap_closesock(soap);
  6013. }
  6014. int MediaBindingProxy::GetVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfiguration *trt__GetVideoSourceConfiguration, _trt__GetVideoSourceConfigurationResponse *trt__GetVideoSourceConfigurationResponse)
  6015. { struct soap *soap = this;
  6016. struct __trt__GetVideoSourceConfiguration_ soap_tmp___trt__GetVideoSourceConfiguration_;
  6017. if (endpoint)
  6018. soap_endpoint = endpoint;
  6019. if (soap_action == NULL)
  6020. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfiguration";
  6021. soap_begin(soap);
  6022. soap->encodingStyle = NULL;
  6023. soap_tmp___trt__GetVideoSourceConfiguration_.trt__GetVideoSourceConfiguration = trt__GetVideoSourceConfiguration;
  6024. soap_set_version(soap, 2); /* SOAP1.2 */
  6025. soap_serializeheader(soap);
  6026. soap_serialize___trt__GetVideoSourceConfiguration_(soap, &soap_tmp___trt__GetVideoSourceConfiguration_);
  6027. if (soap_begin_count(soap))
  6028. return soap->error;
  6029. if (soap->mode & SOAP_IO_LENGTH)
  6030. { if (soap_envelope_begin_out(soap)
  6031. || soap_putheader(soap)
  6032. || soap_body_begin_out(soap)
  6033. || soap_put___trt__GetVideoSourceConfiguration_(soap, &soap_tmp___trt__GetVideoSourceConfiguration_, "-trt:GetVideoSourceConfiguration", NULL)
  6034. || soap_body_end_out(soap)
  6035. || soap_envelope_end_out(soap))
  6036. return soap->error;
  6037. }
  6038. if (soap_end_count(soap))
  6039. return soap->error;
  6040. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6041. || soap_envelope_begin_out(soap)
  6042. || soap_putheader(soap)
  6043. || soap_body_begin_out(soap)
  6044. || soap_put___trt__GetVideoSourceConfiguration_(soap, &soap_tmp___trt__GetVideoSourceConfiguration_, "-trt:GetVideoSourceConfiguration", NULL)
  6045. || soap_body_end_out(soap)
  6046. || soap_envelope_end_out(soap)
  6047. || soap_end_send(soap))
  6048. return soap_closesock(soap);
  6049. if (!trt__GetVideoSourceConfigurationResponse)
  6050. return soap_closesock(soap);
  6051. trt__GetVideoSourceConfigurationResponse->soap_default(soap);
  6052. if (soap_begin_recv(soap)
  6053. || soap_envelope_begin_in(soap)
  6054. || soap_recv_header(soap)
  6055. || soap_body_begin_in(soap))
  6056. return soap_closesock(soap);
  6057. trt__GetVideoSourceConfigurationResponse->soap_get(soap, "trt:GetVideoSourceConfigurationResponse", "");
  6058. if (soap->error)
  6059. return soap_recv_fault(soap, 0);
  6060. if (soap_body_end_in(soap)
  6061. || soap_envelope_end_in(soap)
  6062. || soap_end_recv(soap))
  6063. return soap_closesock(soap);
  6064. return soap_closesock(soap);
  6065. }
  6066. int MediaBindingProxy::GetVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfiguration *trt__GetVideoEncoderConfiguration, _trt__GetVideoEncoderConfigurationResponse *trt__GetVideoEncoderConfigurationResponse)
  6067. { struct soap *soap = this;
  6068. struct __trt__GetVideoEncoderConfiguration_ soap_tmp___trt__GetVideoEncoderConfiguration_;
  6069. if (endpoint)
  6070. soap_endpoint = endpoint;
  6071. if (soap_action == NULL)
  6072. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfiguration";
  6073. soap_begin(soap);
  6074. soap->encodingStyle = NULL;
  6075. soap_tmp___trt__GetVideoEncoderConfiguration_.trt__GetVideoEncoderConfiguration = trt__GetVideoEncoderConfiguration;
  6076. soap_set_version(soap, 2); /* SOAP1.2 */
  6077. soap_serializeheader(soap);
  6078. soap_serialize___trt__GetVideoEncoderConfiguration_(soap, &soap_tmp___trt__GetVideoEncoderConfiguration_);
  6079. if (soap_begin_count(soap))
  6080. return soap->error;
  6081. if (soap->mode & SOAP_IO_LENGTH)
  6082. { if (soap_envelope_begin_out(soap)
  6083. || soap_putheader(soap)
  6084. || soap_body_begin_out(soap)
  6085. || soap_put___trt__GetVideoEncoderConfiguration_(soap, &soap_tmp___trt__GetVideoEncoderConfiguration_, "-trt:GetVideoEncoderConfiguration", NULL)
  6086. || soap_body_end_out(soap)
  6087. || soap_envelope_end_out(soap))
  6088. return soap->error;
  6089. }
  6090. if (soap_end_count(soap))
  6091. return soap->error;
  6092. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6093. || soap_envelope_begin_out(soap)
  6094. || soap_putheader(soap)
  6095. || soap_body_begin_out(soap)
  6096. || soap_put___trt__GetVideoEncoderConfiguration_(soap, &soap_tmp___trt__GetVideoEncoderConfiguration_, "-trt:GetVideoEncoderConfiguration", NULL)
  6097. || soap_body_end_out(soap)
  6098. || soap_envelope_end_out(soap)
  6099. || soap_end_send(soap))
  6100. return soap_closesock(soap);
  6101. if (!trt__GetVideoEncoderConfigurationResponse)
  6102. return soap_closesock(soap);
  6103. trt__GetVideoEncoderConfigurationResponse->soap_default(soap);
  6104. if (soap_begin_recv(soap)
  6105. || soap_envelope_begin_in(soap)
  6106. || soap_recv_header(soap)
  6107. || soap_body_begin_in(soap))
  6108. return soap_closesock(soap);
  6109. trt__GetVideoEncoderConfigurationResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationResponse", "");
  6110. if (soap->error)
  6111. return soap_recv_fault(soap, 0);
  6112. if (soap_body_end_in(soap)
  6113. || soap_envelope_end_in(soap)
  6114. || soap_end_recv(soap))
  6115. return soap_closesock(soap);
  6116. return soap_closesock(soap);
  6117. }
  6118. int MediaBindingProxy::GetAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfiguration *trt__GetAudioSourceConfiguration, _trt__GetAudioSourceConfigurationResponse *trt__GetAudioSourceConfigurationResponse)
  6119. { struct soap *soap = this;
  6120. struct __trt__GetAudioSourceConfiguration_ soap_tmp___trt__GetAudioSourceConfiguration_;
  6121. if (endpoint)
  6122. soap_endpoint = endpoint;
  6123. if (soap_action == NULL)
  6124. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfiguration";
  6125. soap_begin(soap);
  6126. soap->encodingStyle = NULL;
  6127. soap_tmp___trt__GetAudioSourceConfiguration_.trt__GetAudioSourceConfiguration = trt__GetAudioSourceConfiguration;
  6128. soap_set_version(soap, 2); /* SOAP1.2 */
  6129. soap_serializeheader(soap);
  6130. soap_serialize___trt__GetAudioSourceConfiguration_(soap, &soap_tmp___trt__GetAudioSourceConfiguration_);
  6131. if (soap_begin_count(soap))
  6132. return soap->error;
  6133. if (soap->mode & SOAP_IO_LENGTH)
  6134. { if (soap_envelope_begin_out(soap)
  6135. || soap_putheader(soap)
  6136. || soap_body_begin_out(soap)
  6137. || soap_put___trt__GetAudioSourceConfiguration_(soap, &soap_tmp___trt__GetAudioSourceConfiguration_, "-trt:GetAudioSourceConfiguration", NULL)
  6138. || soap_body_end_out(soap)
  6139. || soap_envelope_end_out(soap))
  6140. return soap->error;
  6141. }
  6142. if (soap_end_count(soap))
  6143. return soap->error;
  6144. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6145. || soap_envelope_begin_out(soap)
  6146. || soap_putheader(soap)
  6147. || soap_body_begin_out(soap)
  6148. || soap_put___trt__GetAudioSourceConfiguration_(soap, &soap_tmp___trt__GetAudioSourceConfiguration_, "-trt:GetAudioSourceConfiguration", NULL)
  6149. || soap_body_end_out(soap)
  6150. || soap_envelope_end_out(soap)
  6151. || soap_end_send(soap))
  6152. return soap_closesock(soap);
  6153. if (!trt__GetAudioSourceConfigurationResponse)
  6154. return soap_closesock(soap);
  6155. trt__GetAudioSourceConfigurationResponse->soap_default(soap);
  6156. if (soap_begin_recv(soap)
  6157. || soap_envelope_begin_in(soap)
  6158. || soap_recv_header(soap)
  6159. || soap_body_begin_in(soap))
  6160. return soap_closesock(soap);
  6161. trt__GetAudioSourceConfigurationResponse->soap_get(soap, "trt:GetAudioSourceConfigurationResponse", "");
  6162. if (soap->error)
  6163. return soap_recv_fault(soap, 0);
  6164. if (soap_body_end_in(soap)
  6165. || soap_envelope_end_in(soap)
  6166. || soap_end_recv(soap))
  6167. return soap_closesock(soap);
  6168. return soap_closesock(soap);
  6169. }
  6170. int MediaBindingProxy::GetAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfiguration *trt__GetAudioEncoderConfiguration, _trt__GetAudioEncoderConfigurationResponse *trt__GetAudioEncoderConfigurationResponse)
  6171. { struct soap *soap = this;
  6172. struct __trt__GetAudioEncoderConfiguration_ soap_tmp___trt__GetAudioEncoderConfiguration_;
  6173. if (endpoint)
  6174. soap_endpoint = endpoint;
  6175. if (soap_action == NULL)
  6176. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfiguration";
  6177. soap_begin(soap);
  6178. soap->encodingStyle = NULL;
  6179. soap_tmp___trt__GetAudioEncoderConfiguration_.trt__GetAudioEncoderConfiguration = trt__GetAudioEncoderConfiguration;
  6180. soap_set_version(soap, 2); /* SOAP1.2 */
  6181. soap_serializeheader(soap);
  6182. soap_serialize___trt__GetAudioEncoderConfiguration_(soap, &soap_tmp___trt__GetAudioEncoderConfiguration_);
  6183. if (soap_begin_count(soap))
  6184. return soap->error;
  6185. if (soap->mode & SOAP_IO_LENGTH)
  6186. { if (soap_envelope_begin_out(soap)
  6187. || soap_putheader(soap)
  6188. || soap_body_begin_out(soap)
  6189. || soap_put___trt__GetAudioEncoderConfiguration_(soap, &soap_tmp___trt__GetAudioEncoderConfiguration_, "-trt:GetAudioEncoderConfiguration", NULL)
  6190. || soap_body_end_out(soap)
  6191. || soap_envelope_end_out(soap))
  6192. return soap->error;
  6193. }
  6194. if (soap_end_count(soap))
  6195. return soap->error;
  6196. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6197. || soap_envelope_begin_out(soap)
  6198. || soap_putheader(soap)
  6199. || soap_body_begin_out(soap)
  6200. || soap_put___trt__GetAudioEncoderConfiguration_(soap, &soap_tmp___trt__GetAudioEncoderConfiguration_, "-trt:GetAudioEncoderConfiguration", NULL)
  6201. || soap_body_end_out(soap)
  6202. || soap_envelope_end_out(soap)
  6203. || soap_end_send(soap))
  6204. return soap_closesock(soap);
  6205. if (!trt__GetAudioEncoderConfigurationResponse)
  6206. return soap_closesock(soap);
  6207. trt__GetAudioEncoderConfigurationResponse->soap_default(soap);
  6208. if (soap_begin_recv(soap)
  6209. || soap_envelope_begin_in(soap)
  6210. || soap_recv_header(soap)
  6211. || soap_body_begin_in(soap))
  6212. return soap_closesock(soap);
  6213. trt__GetAudioEncoderConfigurationResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationResponse", "");
  6214. if (soap->error)
  6215. return soap_recv_fault(soap, 0);
  6216. if (soap_body_end_in(soap)
  6217. || soap_envelope_end_in(soap)
  6218. || soap_end_recv(soap))
  6219. return soap_closesock(soap);
  6220. return soap_closesock(soap);
  6221. }
  6222. int MediaBindingProxy::GetVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfiguration *trt__GetVideoAnalyticsConfiguration, _trt__GetVideoAnalyticsConfigurationResponse *trt__GetVideoAnalyticsConfigurationResponse)
  6223. { struct soap *soap = this;
  6224. struct __trt__GetVideoAnalyticsConfiguration_ soap_tmp___trt__GetVideoAnalyticsConfiguration_;
  6225. if (endpoint)
  6226. soap_endpoint = endpoint;
  6227. if (soap_action == NULL)
  6228. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfiguration";
  6229. soap_begin(soap);
  6230. soap->encodingStyle = NULL;
  6231. soap_tmp___trt__GetVideoAnalyticsConfiguration_.trt__GetVideoAnalyticsConfiguration = trt__GetVideoAnalyticsConfiguration;
  6232. soap_set_version(soap, 2); /* SOAP1.2 */
  6233. soap_serializeheader(soap);
  6234. soap_serialize___trt__GetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration_);
  6235. if (soap_begin_count(soap))
  6236. return soap->error;
  6237. if (soap->mode & SOAP_IO_LENGTH)
  6238. { if (soap_envelope_begin_out(soap)
  6239. || soap_putheader(soap)
  6240. || soap_body_begin_out(soap)
  6241. || soap_put___trt__GetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration_, "-trt:GetVideoAnalyticsConfiguration", NULL)
  6242. || soap_body_end_out(soap)
  6243. || soap_envelope_end_out(soap))
  6244. return soap->error;
  6245. }
  6246. if (soap_end_count(soap))
  6247. return soap->error;
  6248. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6249. || soap_envelope_begin_out(soap)
  6250. || soap_putheader(soap)
  6251. || soap_body_begin_out(soap)
  6252. || soap_put___trt__GetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration_, "-trt:GetVideoAnalyticsConfiguration", NULL)
  6253. || soap_body_end_out(soap)
  6254. || soap_envelope_end_out(soap)
  6255. || soap_end_send(soap))
  6256. return soap_closesock(soap);
  6257. if (!trt__GetVideoAnalyticsConfigurationResponse)
  6258. return soap_closesock(soap);
  6259. trt__GetVideoAnalyticsConfigurationResponse->soap_default(soap);
  6260. if (soap_begin_recv(soap)
  6261. || soap_envelope_begin_in(soap)
  6262. || soap_recv_header(soap)
  6263. || soap_body_begin_in(soap))
  6264. return soap_closesock(soap);
  6265. trt__GetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationResponse", "");
  6266. if (soap->error)
  6267. return soap_recv_fault(soap, 0);
  6268. if (soap_body_end_in(soap)
  6269. || soap_envelope_end_in(soap)
  6270. || soap_end_recv(soap))
  6271. return soap_closesock(soap);
  6272. return soap_closesock(soap);
  6273. }
  6274. int MediaBindingProxy::GetMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__GetMetadataConfiguration *trt__GetMetadataConfiguration, _trt__GetMetadataConfigurationResponse *trt__GetMetadataConfigurationResponse)
  6275. { struct soap *soap = this;
  6276. struct __trt__GetMetadataConfiguration_ soap_tmp___trt__GetMetadataConfiguration_;
  6277. if (endpoint)
  6278. soap_endpoint = endpoint;
  6279. if (soap_action == NULL)
  6280. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfiguration";
  6281. soap_begin(soap);
  6282. soap->encodingStyle = NULL;
  6283. soap_tmp___trt__GetMetadataConfiguration_.trt__GetMetadataConfiguration = trt__GetMetadataConfiguration;
  6284. soap_set_version(soap, 2); /* SOAP1.2 */
  6285. soap_serializeheader(soap);
  6286. soap_serialize___trt__GetMetadataConfiguration_(soap, &soap_tmp___trt__GetMetadataConfiguration_);
  6287. if (soap_begin_count(soap))
  6288. return soap->error;
  6289. if (soap->mode & SOAP_IO_LENGTH)
  6290. { if (soap_envelope_begin_out(soap)
  6291. || soap_putheader(soap)
  6292. || soap_body_begin_out(soap)
  6293. || soap_put___trt__GetMetadataConfiguration_(soap, &soap_tmp___trt__GetMetadataConfiguration_, "-trt:GetMetadataConfiguration", NULL)
  6294. || soap_body_end_out(soap)
  6295. || soap_envelope_end_out(soap))
  6296. return soap->error;
  6297. }
  6298. if (soap_end_count(soap))
  6299. return soap->error;
  6300. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6301. || soap_envelope_begin_out(soap)
  6302. || soap_putheader(soap)
  6303. || soap_body_begin_out(soap)
  6304. || soap_put___trt__GetMetadataConfiguration_(soap, &soap_tmp___trt__GetMetadataConfiguration_, "-trt:GetMetadataConfiguration", NULL)
  6305. || soap_body_end_out(soap)
  6306. || soap_envelope_end_out(soap)
  6307. || soap_end_send(soap))
  6308. return soap_closesock(soap);
  6309. if (!trt__GetMetadataConfigurationResponse)
  6310. return soap_closesock(soap);
  6311. trt__GetMetadataConfigurationResponse->soap_default(soap);
  6312. if (soap_begin_recv(soap)
  6313. || soap_envelope_begin_in(soap)
  6314. || soap_recv_header(soap)
  6315. || soap_body_begin_in(soap))
  6316. return soap_closesock(soap);
  6317. trt__GetMetadataConfigurationResponse->soap_get(soap, "trt:GetMetadataConfigurationResponse", "");
  6318. if (soap->error)
  6319. return soap_recv_fault(soap, 0);
  6320. if (soap_body_end_in(soap)
  6321. || soap_envelope_end_in(soap)
  6322. || soap_end_recv(soap))
  6323. return soap_closesock(soap);
  6324. return soap_closesock(soap);
  6325. }
  6326. int MediaBindingProxy::GetAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfiguration *trt__GetAudioOutputConfiguration, _trt__GetAudioOutputConfigurationResponse *trt__GetAudioOutputConfigurationResponse)
  6327. { struct soap *soap = this;
  6328. struct __trt__GetAudioOutputConfiguration_ soap_tmp___trt__GetAudioOutputConfiguration_;
  6329. if (endpoint)
  6330. soap_endpoint = endpoint;
  6331. if (soap_action == NULL)
  6332. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfiguration";
  6333. soap_begin(soap);
  6334. soap->encodingStyle = NULL;
  6335. soap_tmp___trt__GetAudioOutputConfiguration_.trt__GetAudioOutputConfiguration = trt__GetAudioOutputConfiguration;
  6336. soap_set_version(soap, 2); /* SOAP1.2 */
  6337. soap_serializeheader(soap);
  6338. soap_serialize___trt__GetAudioOutputConfiguration_(soap, &soap_tmp___trt__GetAudioOutputConfiguration_);
  6339. if (soap_begin_count(soap))
  6340. return soap->error;
  6341. if (soap->mode & SOAP_IO_LENGTH)
  6342. { if (soap_envelope_begin_out(soap)
  6343. || soap_putheader(soap)
  6344. || soap_body_begin_out(soap)
  6345. || soap_put___trt__GetAudioOutputConfiguration_(soap, &soap_tmp___trt__GetAudioOutputConfiguration_, "-trt:GetAudioOutputConfiguration", NULL)
  6346. || soap_body_end_out(soap)
  6347. || soap_envelope_end_out(soap))
  6348. return soap->error;
  6349. }
  6350. if (soap_end_count(soap))
  6351. return soap->error;
  6352. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6353. || soap_envelope_begin_out(soap)
  6354. || soap_putheader(soap)
  6355. || soap_body_begin_out(soap)
  6356. || soap_put___trt__GetAudioOutputConfiguration_(soap, &soap_tmp___trt__GetAudioOutputConfiguration_, "-trt:GetAudioOutputConfiguration", NULL)
  6357. || soap_body_end_out(soap)
  6358. || soap_envelope_end_out(soap)
  6359. || soap_end_send(soap))
  6360. return soap_closesock(soap);
  6361. if (!trt__GetAudioOutputConfigurationResponse)
  6362. return soap_closesock(soap);
  6363. trt__GetAudioOutputConfigurationResponse->soap_default(soap);
  6364. if (soap_begin_recv(soap)
  6365. || soap_envelope_begin_in(soap)
  6366. || soap_recv_header(soap)
  6367. || soap_body_begin_in(soap))
  6368. return soap_closesock(soap);
  6369. trt__GetAudioOutputConfigurationResponse->soap_get(soap, "trt:GetAudioOutputConfigurationResponse", "");
  6370. if (soap->error)
  6371. return soap_recv_fault(soap, 0);
  6372. if (soap_body_end_in(soap)
  6373. || soap_envelope_end_in(soap)
  6374. || soap_end_recv(soap))
  6375. return soap_closesock(soap);
  6376. return soap_closesock(soap);
  6377. }
  6378. int MediaBindingProxy::GetAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfiguration *trt__GetAudioDecoderConfiguration, _trt__GetAudioDecoderConfigurationResponse *trt__GetAudioDecoderConfigurationResponse)
  6379. { struct soap *soap = this;
  6380. struct __trt__GetAudioDecoderConfiguration_ soap_tmp___trt__GetAudioDecoderConfiguration_;
  6381. if (endpoint)
  6382. soap_endpoint = endpoint;
  6383. if (soap_action == NULL)
  6384. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfiguration";
  6385. soap_begin(soap);
  6386. soap->encodingStyle = NULL;
  6387. soap_tmp___trt__GetAudioDecoderConfiguration_.trt__GetAudioDecoderConfiguration = trt__GetAudioDecoderConfiguration;
  6388. soap_set_version(soap, 2); /* SOAP1.2 */
  6389. soap_serializeheader(soap);
  6390. soap_serialize___trt__GetAudioDecoderConfiguration_(soap, &soap_tmp___trt__GetAudioDecoderConfiguration_);
  6391. if (soap_begin_count(soap))
  6392. return soap->error;
  6393. if (soap->mode & SOAP_IO_LENGTH)
  6394. { if (soap_envelope_begin_out(soap)
  6395. || soap_putheader(soap)
  6396. || soap_body_begin_out(soap)
  6397. || soap_put___trt__GetAudioDecoderConfiguration_(soap, &soap_tmp___trt__GetAudioDecoderConfiguration_, "-trt:GetAudioDecoderConfiguration", NULL)
  6398. || soap_body_end_out(soap)
  6399. || soap_envelope_end_out(soap))
  6400. return soap->error;
  6401. }
  6402. if (soap_end_count(soap))
  6403. return soap->error;
  6404. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6405. || soap_envelope_begin_out(soap)
  6406. || soap_putheader(soap)
  6407. || soap_body_begin_out(soap)
  6408. || soap_put___trt__GetAudioDecoderConfiguration_(soap, &soap_tmp___trt__GetAudioDecoderConfiguration_, "-trt:GetAudioDecoderConfiguration", NULL)
  6409. || soap_body_end_out(soap)
  6410. || soap_envelope_end_out(soap)
  6411. || soap_end_send(soap))
  6412. return soap_closesock(soap);
  6413. if (!trt__GetAudioDecoderConfigurationResponse)
  6414. return soap_closesock(soap);
  6415. trt__GetAudioDecoderConfigurationResponse->soap_default(soap);
  6416. if (soap_begin_recv(soap)
  6417. || soap_envelope_begin_in(soap)
  6418. || soap_recv_header(soap)
  6419. || soap_body_begin_in(soap))
  6420. return soap_closesock(soap);
  6421. trt__GetAudioDecoderConfigurationResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationResponse", "");
  6422. if (soap->error)
  6423. return soap_recv_fault(soap, 0);
  6424. if (soap_body_end_in(soap)
  6425. || soap_envelope_end_in(soap)
  6426. || soap_end_recv(soap))
  6427. return soap_closesock(soap);
  6428. return soap_closesock(soap);
  6429. }
  6430. int MediaBindingProxy::GetCompatibleVideoEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoEncoderConfigurations *trt__GetCompatibleVideoEncoderConfigurations, _trt__GetCompatibleVideoEncoderConfigurationsResponse *trt__GetCompatibleVideoEncoderConfigurationsResponse)
  6431. { struct soap *soap = this;
  6432. struct __trt__GetCompatibleVideoEncoderConfigurations_ soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_;
  6433. if (endpoint)
  6434. soap_endpoint = endpoint;
  6435. if (soap_action == NULL)
  6436. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoEncoderConfigurations";
  6437. soap_begin(soap);
  6438. soap->encodingStyle = NULL;
  6439. soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_.trt__GetCompatibleVideoEncoderConfigurations = trt__GetCompatibleVideoEncoderConfigurations;
  6440. soap_set_version(soap, 2); /* SOAP1.2 */
  6441. soap_serializeheader(soap);
  6442. soap_serialize___trt__GetCompatibleVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_);
  6443. if (soap_begin_count(soap))
  6444. return soap->error;
  6445. if (soap->mode & SOAP_IO_LENGTH)
  6446. { if (soap_envelope_begin_out(soap)
  6447. || soap_putheader(soap)
  6448. || soap_body_begin_out(soap)
  6449. || soap_put___trt__GetCompatibleVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_, "-trt:GetCompatibleVideoEncoderConfigurations", NULL)
  6450. || soap_body_end_out(soap)
  6451. || soap_envelope_end_out(soap))
  6452. return soap->error;
  6453. }
  6454. if (soap_end_count(soap))
  6455. return soap->error;
  6456. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6457. || soap_envelope_begin_out(soap)
  6458. || soap_putheader(soap)
  6459. || soap_body_begin_out(soap)
  6460. || soap_put___trt__GetCompatibleVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_, "-trt:GetCompatibleVideoEncoderConfigurations", NULL)
  6461. || soap_body_end_out(soap)
  6462. || soap_envelope_end_out(soap)
  6463. || soap_end_send(soap))
  6464. return soap_closesock(soap);
  6465. if (!trt__GetCompatibleVideoEncoderConfigurationsResponse)
  6466. return soap_closesock(soap);
  6467. trt__GetCompatibleVideoEncoderConfigurationsResponse->soap_default(soap);
  6468. if (soap_begin_recv(soap)
  6469. || soap_envelope_begin_in(soap)
  6470. || soap_recv_header(soap)
  6471. || soap_body_begin_in(soap))
  6472. return soap_closesock(soap);
  6473. trt__GetCompatibleVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoEncoderConfigurationsResponse", "");
  6474. if (soap->error)
  6475. return soap_recv_fault(soap, 0);
  6476. if (soap_body_end_in(soap)
  6477. || soap_envelope_end_in(soap)
  6478. || soap_end_recv(soap))
  6479. return soap_closesock(soap);
  6480. return soap_closesock(soap);
  6481. }
  6482. int MediaBindingProxy::GetCompatibleVideoSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoSourceConfigurations *trt__GetCompatibleVideoSourceConfigurations, _trt__GetCompatibleVideoSourceConfigurationsResponse *trt__GetCompatibleVideoSourceConfigurationsResponse)
  6483. { struct soap *soap = this;
  6484. struct __trt__GetCompatibleVideoSourceConfigurations_ soap_tmp___trt__GetCompatibleVideoSourceConfigurations_;
  6485. if (endpoint)
  6486. soap_endpoint = endpoint;
  6487. if (soap_action == NULL)
  6488. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoSourceConfigurations";
  6489. soap_begin(soap);
  6490. soap->encodingStyle = NULL;
  6491. soap_tmp___trt__GetCompatibleVideoSourceConfigurations_.trt__GetCompatibleVideoSourceConfigurations = trt__GetCompatibleVideoSourceConfigurations;
  6492. soap_set_version(soap, 2); /* SOAP1.2 */
  6493. soap_serializeheader(soap);
  6494. soap_serialize___trt__GetCompatibleVideoSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations_);
  6495. if (soap_begin_count(soap))
  6496. return soap->error;
  6497. if (soap->mode & SOAP_IO_LENGTH)
  6498. { if (soap_envelope_begin_out(soap)
  6499. || soap_putheader(soap)
  6500. || soap_body_begin_out(soap)
  6501. || soap_put___trt__GetCompatibleVideoSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations_, "-trt:GetCompatibleVideoSourceConfigurations", NULL)
  6502. || soap_body_end_out(soap)
  6503. || soap_envelope_end_out(soap))
  6504. return soap->error;
  6505. }
  6506. if (soap_end_count(soap))
  6507. return soap->error;
  6508. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6509. || soap_envelope_begin_out(soap)
  6510. || soap_putheader(soap)
  6511. || soap_body_begin_out(soap)
  6512. || soap_put___trt__GetCompatibleVideoSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations_, "-trt:GetCompatibleVideoSourceConfigurations", NULL)
  6513. || soap_body_end_out(soap)
  6514. || soap_envelope_end_out(soap)
  6515. || soap_end_send(soap))
  6516. return soap_closesock(soap);
  6517. if (!trt__GetCompatibleVideoSourceConfigurationsResponse)
  6518. return soap_closesock(soap);
  6519. trt__GetCompatibleVideoSourceConfigurationsResponse->soap_default(soap);
  6520. if (soap_begin_recv(soap)
  6521. || soap_envelope_begin_in(soap)
  6522. || soap_recv_header(soap)
  6523. || soap_body_begin_in(soap))
  6524. return soap_closesock(soap);
  6525. trt__GetCompatibleVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoSourceConfigurationsResponse", "");
  6526. if (soap->error)
  6527. return soap_recv_fault(soap, 0);
  6528. if (soap_body_end_in(soap)
  6529. || soap_envelope_end_in(soap)
  6530. || soap_end_recv(soap))
  6531. return soap_closesock(soap);
  6532. return soap_closesock(soap);
  6533. }
  6534. int MediaBindingProxy::GetCompatibleAudioEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioEncoderConfigurations *trt__GetCompatibleAudioEncoderConfigurations, _trt__GetCompatibleAudioEncoderConfigurationsResponse *trt__GetCompatibleAudioEncoderConfigurationsResponse)
  6535. { struct soap *soap = this;
  6536. struct __trt__GetCompatibleAudioEncoderConfigurations_ soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_;
  6537. if (endpoint)
  6538. soap_endpoint = endpoint;
  6539. if (soap_action == NULL)
  6540. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioEncoderConfigurations";
  6541. soap_begin(soap);
  6542. soap->encodingStyle = NULL;
  6543. soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_.trt__GetCompatibleAudioEncoderConfigurations = trt__GetCompatibleAudioEncoderConfigurations;
  6544. soap_set_version(soap, 2); /* SOAP1.2 */
  6545. soap_serializeheader(soap);
  6546. soap_serialize___trt__GetCompatibleAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_);
  6547. if (soap_begin_count(soap))
  6548. return soap->error;
  6549. if (soap->mode & SOAP_IO_LENGTH)
  6550. { if (soap_envelope_begin_out(soap)
  6551. || soap_putheader(soap)
  6552. || soap_body_begin_out(soap)
  6553. || soap_put___trt__GetCompatibleAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_, "-trt:GetCompatibleAudioEncoderConfigurations", NULL)
  6554. || soap_body_end_out(soap)
  6555. || soap_envelope_end_out(soap))
  6556. return soap->error;
  6557. }
  6558. if (soap_end_count(soap))
  6559. return soap->error;
  6560. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6561. || soap_envelope_begin_out(soap)
  6562. || soap_putheader(soap)
  6563. || soap_body_begin_out(soap)
  6564. || soap_put___trt__GetCompatibleAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_, "-trt:GetCompatibleAudioEncoderConfigurations", NULL)
  6565. || soap_body_end_out(soap)
  6566. || soap_envelope_end_out(soap)
  6567. || soap_end_send(soap))
  6568. return soap_closesock(soap);
  6569. if (!trt__GetCompatibleAudioEncoderConfigurationsResponse)
  6570. return soap_closesock(soap);
  6571. trt__GetCompatibleAudioEncoderConfigurationsResponse->soap_default(soap);
  6572. if (soap_begin_recv(soap)
  6573. || soap_envelope_begin_in(soap)
  6574. || soap_recv_header(soap)
  6575. || soap_body_begin_in(soap))
  6576. return soap_closesock(soap);
  6577. trt__GetCompatibleAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioEncoderConfigurationsResponse", "");
  6578. if (soap->error)
  6579. return soap_recv_fault(soap, 0);
  6580. if (soap_body_end_in(soap)
  6581. || soap_envelope_end_in(soap)
  6582. || soap_end_recv(soap))
  6583. return soap_closesock(soap);
  6584. return soap_closesock(soap);
  6585. }
  6586. int MediaBindingProxy::GetCompatibleAudioSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioSourceConfigurations *trt__GetCompatibleAudioSourceConfigurations, _trt__GetCompatibleAudioSourceConfigurationsResponse *trt__GetCompatibleAudioSourceConfigurationsResponse)
  6587. { struct soap *soap = this;
  6588. struct __trt__GetCompatibleAudioSourceConfigurations_ soap_tmp___trt__GetCompatibleAudioSourceConfigurations_;
  6589. if (endpoint)
  6590. soap_endpoint = endpoint;
  6591. if (soap_action == NULL)
  6592. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioSourceConfigurations";
  6593. soap_begin(soap);
  6594. soap->encodingStyle = NULL;
  6595. soap_tmp___trt__GetCompatibleAudioSourceConfigurations_.trt__GetCompatibleAudioSourceConfigurations = trt__GetCompatibleAudioSourceConfigurations;
  6596. soap_set_version(soap, 2); /* SOAP1.2 */
  6597. soap_serializeheader(soap);
  6598. soap_serialize___trt__GetCompatibleAudioSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations_);
  6599. if (soap_begin_count(soap))
  6600. return soap->error;
  6601. if (soap->mode & SOAP_IO_LENGTH)
  6602. { if (soap_envelope_begin_out(soap)
  6603. || soap_putheader(soap)
  6604. || soap_body_begin_out(soap)
  6605. || soap_put___trt__GetCompatibleAudioSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations_, "-trt:GetCompatibleAudioSourceConfigurations", NULL)
  6606. || soap_body_end_out(soap)
  6607. || soap_envelope_end_out(soap))
  6608. return soap->error;
  6609. }
  6610. if (soap_end_count(soap))
  6611. return soap->error;
  6612. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6613. || soap_envelope_begin_out(soap)
  6614. || soap_putheader(soap)
  6615. || soap_body_begin_out(soap)
  6616. || soap_put___trt__GetCompatibleAudioSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations_, "-trt:GetCompatibleAudioSourceConfigurations", NULL)
  6617. || soap_body_end_out(soap)
  6618. || soap_envelope_end_out(soap)
  6619. || soap_end_send(soap))
  6620. return soap_closesock(soap);
  6621. if (!trt__GetCompatibleAudioSourceConfigurationsResponse)
  6622. return soap_closesock(soap);
  6623. trt__GetCompatibleAudioSourceConfigurationsResponse->soap_default(soap);
  6624. if (soap_begin_recv(soap)
  6625. || soap_envelope_begin_in(soap)
  6626. || soap_recv_header(soap)
  6627. || soap_body_begin_in(soap))
  6628. return soap_closesock(soap);
  6629. trt__GetCompatibleAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioSourceConfigurationsResponse", "");
  6630. if (soap->error)
  6631. return soap_recv_fault(soap, 0);
  6632. if (soap_body_end_in(soap)
  6633. || soap_envelope_end_in(soap)
  6634. || soap_end_recv(soap))
  6635. return soap_closesock(soap);
  6636. return soap_closesock(soap);
  6637. }
  6638. int MediaBindingProxy::GetCompatibleVideoAnalyticsConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoAnalyticsConfigurations *trt__GetCompatibleVideoAnalyticsConfigurations, _trt__GetCompatibleVideoAnalyticsConfigurationsResponse *trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
  6639. { struct soap *soap = this;
  6640. struct __trt__GetCompatibleVideoAnalyticsConfigurations_ soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_;
  6641. if (endpoint)
  6642. soap_endpoint = endpoint;
  6643. if (soap_action == NULL)
  6644. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoAnalyticsConfigurations";
  6645. soap_begin(soap);
  6646. soap->encodingStyle = NULL;
  6647. soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_.trt__GetCompatibleVideoAnalyticsConfigurations = trt__GetCompatibleVideoAnalyticsConfigurations;
  6648. soap_set_version(soap, 2); /* SOAP1.2 */
  6649. soap_serializeheader(soap);
  6650. soap_serialize___trt__GetCompatibleVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_);
  6651. if (soap_begin_count(soap))
  6652. return soap->error;
  6653. if (soap->mode & SOAP_IO_LENGTH)
  6654. { if (soap_envelope_begin_out(soap)
  6655. || soap_putheader(soap)
  6656. || soap_body_begin_out(soap)
  6657. || soap_put___trt__GetCompatibleVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_, "-trt:GetCompatibleVideoAnalyticsConfigurations", NULL)
  6658. || soap_body_end_out(soap)
  6659. || soap_envelope_end_out(soap))
  6660. return soap->error;
  6661. }
  6662. if (soap_end_count(soap))
  6663. return soap->error;
  6664. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6665. || soap_envelope_begin_out(soap)
  6666. || soap_putheader(soap)
  6667. || soap_body_begin_out(soap)
  6668. || soap_put___trt__GetCompatibleVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_, "-trt:GetCompatibleVideoAnalyticsConfigurations", NULL)
  6669. || soap_body_end_out(soap)
  6670. || soap_envelope_end_out(soap)
  6671. || soap_end_send(soap))
  6672. return soap_closesock(soap);
  6673. if (!trt__GetCompatibleVideoAnalyticsConfigurationsResponse)
  6674. return soap_closesock(soap);
  6675. trt__GetCompatibleVideoAnalyticsConfigurationsResponse->soap_default(soap);
  6676. if (soap_begin_recv(soap)
  6677. || soap_envelope_begin_in(soap)
  6678. || soap_recv_header(soap)
  6679. || soap_body_begin_in(soap))
  6680. return soap_closesock(soap);
  6681. trt__GetCompatibleVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoAnalyticsConfigurationsResponse", "");
  6682. if (soap->error)
  6683. return soap_recv_fault(soap, 0);
  6684. if (soap_body_end_in(soap)
  6685. || soap_envelope_end_in(soap)
  6686. || soap_end_recv(soap))
  6687. return soap_closesock(soap);
  6688. return soap_closesock(soap);
  6689. }
  6690. int MediaBindingProxy::GetCompatibleMetadataConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleMetadataConfigurations *trt__GetCompatibleMetadataConfigurations, _trt__GetCompatibleMetadataConfigurationsResponse *trt__GetCompatibleMetadataConfigurationsResponse)
  6691. { struct soap *soap = this;
  6692. struct __trt__GetCompatibleMetadataConfigurations_ soap_tmp___trt__GetCompatibleMetadataConfigurations_;
  6693. if (endpoint)
  6694. soap_endpoint = endpoint;
  6695. if (soap_action == NULL)
  6696. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleMetadataConfigurations";
  6697. soap_begin(soap);
  6698. soap->encodingStyle = NULL;
  6699. soap_tmp___trt__GetCompatibleMetadataConfigurations_.trt__GetCompatibleMetadataConfigurations = trt__GetCompatibleMetadataConfigurations;
  6700. soap_set_version(soap, 2); /* SOAP1.2 */
  6701. soap_serializeheader(soap);
  6702. soap_serialize___trt__GetCompatibleMetadataConfigurations_(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations_);
  6703. if (soap_begin_count(soap))
  6704. return soap->error;
  6705. if (soap->mode & SOAP_IO_LENGTH)
  6706. { if (soap_envelope_begin_out(soap)
  6707. || soap_putheader(soap)
  6708. || soap_body_begin_out(soap)
  6709. || soap_put___trt__GetCompatibleMetadataConfigurations_(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations_, "-trt:GetCompatibleMetadataConfigurations", NULL)
  6710. || soap_body_end_out(soap)
  6711. || soap_envelope_end_out(soap))
  6712. return soap->error;
  6713. }
  6714. if (soap_end_count(soap))
  6715. return soap->error;
  6716. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6717. || soap_envelope_begin_out(soap)
  6718. || soap_putheader(soap)
  6719. || soap_body_begin_out(soap)
  6720. || soap_put___trt__GetCompatibleMetadataConfigurations_(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations_, "-trt:GetCompatibleMetadataConfigurations", NULL)
  6721. || soap_body_end_out(soap)
  6722. || soap_envelope_end_out(soap)
  6723. || soap_end_send(soap))
  6724. return soap_closesock(soap);
  6725. if (!trt__GetCompatibleMetadataConfigurationsResponse)
  6726. return soap_closesock(soap);
  6727. trt__GetCompatibleMetadataConfigurationsResponse->soap_default(soap);
  6728. if (soap_begin_recv(soap)
  6729. || soap_envelope_begin_in(soap)
  6730. || soap_recv_header(soap)
  6731. || soap_body_begin_in(soap))
  6732. return soap_closesock(soap);
  6733. trt__GetCompatibleMetadataConfigurationsResponse->soap_get(soap, "trt:GetCompatibleMetadataConfigurationsResponse", "");
  6734. if (soap->error)
  6735. return soap_recv_fault(soap, 0);
  6736. if (soap_body_end_in(soap)
  6737. || soap_envelope_end_in(soap)
  6738. || soap_end_recv(soap))
  6739. return soap_closesock(soap);
  6740. return soap_closesock(soap);
  6741. }
  6742. int MediaBindingProxy::GetCompatibleAudioOutputConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioOutputConfigurations *trt__GetCompatibleAudioOutputConfigurations, _trt__GetCompatibleAudioOutputConfigurationsResponse *trt__GetCompatibleAudioOutputConfigurationsResponse)
  6743. { struct soap *soap = this;
  6744. struct __trt__GetCompatibleAudioOutputConfigurations_ soap_tmp___trt__GetCompatibleAudioOutputConfigurations_;
  6745. if (endpoint)
  6746. soap_endpoint = endpoint;
  6747. if (soap_action == NULL)
  6748. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioOutputConfigurations";
  6749. soap_begin(soap);
  6750. soap->encodingStyle = NULL;
  6751. soap_tmp___trt__GetCompatibleAudioOutputConfigurations_.trt__GetCompatibleAudioOutputConfigurations = trt__GetCompatibleAudioOutputConfigurations;
  6752. soap_set_version(soap, 2); /* SOAP1.2 */
  6753. soap_serializeheader(soap);
  6754. soap_serialize___trt__GetCompatibleAudioOutputConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations_);
  6755. if (soap_begin_count(soap))
  6756. return soap->error;
  6757. if (soap->mode & SOAP_IO_LENGTH)
  6758. { if (soap_envelope_begin_out(soap)
  6759. || soap_putheader(soap)
  6760. || soap_body_begin_out(soap)
  6761. || soap_put___trt__GetCompatibleAudioOutputConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations_, "-trt:GetCompatibleAudioOutputConfigurations", NULL)
  6762. || soap_body_end_out(soap)
  6763. || soap_envelope_end_out(soap))
  6764. return soap->error;
  6765. }
  6766. if (soap_end_count(soap))
  6767. return soap->error;
  6768. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6769. || soap_envelope_begin_out(soap)
  6770. || soap_putheader(soap)
  6771. || soap_body_begin_out(soap)
  6772. || soap_put___trt__GetCompatibleAudioOutputConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations_, "-trt:GetCompatibleAudioOutputConfigurations", NULL)
  6773. || soap_body_end_out(soap)
  6774. || soap_envelope_end_out(soap)
  6775. || soap_end_send(soap))
  6776. return soap_closesock(soap);
  6777. if (!trt__GetCompatibleAudioOutputConfigurationsResponse)
  6778. return soap_closesock(soap);
  6779. trt__GetCompatibleAudioOutputConfigurationsResponse->soap_default(soap);
  6780. if (soap_begin_recv(soap)
  6781. || soap_envelope_begin_in(soap)
  6782. || soap_recv_header(soap)
  6783. || soap_body_begin_in(soap))
  6784. return soap_closesock(soap);
  6785. trt__GetCompatibleAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioOutputConfigurationsResponse", "");
  6786. if (soap->error)
  6787. return soap_recv_fault(soap, 0);
  6788. if (soap_body_end_in(soap)
  6789. || soap_envelope_end_in(soap)
  6790. || soap_end_recv(soap))
  6791. return soap_closesock(soap);
  6792. return soap_closesock(soap);
  6793. }
  6794. int MediaBindingProxy::GetCompatibleAudioDecoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioDecoderConfigurations *trt__GetCompatibleAudioDecoderConfigurations, _trt__GetCompatibleAudioDecoderConfigurationsResponse *trt__GetCompatibleAudioDecoderConfigurationsResponse)
  6795. { struct soap *soap = this;
  6796. struct __trt__GetCompatibleAudioDecoderConfigurations_ soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_;
  6797. if (endpoint)
  6798. soap_endpoint = endpoint;
  6799. if (soap_action == NULL)
  6800. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioDecoderConfigurations";
  6801. soap_begin(soap);
  6802. soap->encodingStyle = NULL;
  6803. soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_.trt__GetCompatibleAudioDecoderConfigurations = trt__GetCompatibleAudioDecoderConfigurations;
  6804. soap_set_version(soap, 2); /* SOAP1.2 */
  6805. soap_serializeheader(soap);
  6806. soap_serialize___trt__GetCompatibleAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_);
  6807. if (soap_begin_count(soap))
  6808. return soap->error;
  6809. if (soap->mode & SOAP_IO_LENGTH)
  6810. { if (soap_envelope_begin_out(soap)
  6811. || soap_putheader(soap)
  6812. || soap_body_begin_out(soap)
  6813. || soap_put___trt__GetCompatibleAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_, "-trt:GetCompatibleAudioDecoderConfigurations", NULL)
  6814. || soap_body_end_out(soap)
  6815. || soap_envelope_end_out(soap))
  6816. return soap->error;
  6817. }
  6818. if (soap_end_count(soap))
  6819. return soap->error;
  6820. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6821. || soap_envelope_begin_out(soap)
  6822. || soap_putheader(soap)
  6823. || soap_body_begin_out(soap)
  6824. || soap_put___trt__GetCompatibleAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_, "-trt:GetCompatibleAudioDecoderConfigurations", NULL)
  6825. || soap_body_end_out(soap)
  6826. || soap_envelope_end_out(soap)
  6827. || soap_end_send(soap))
  6828. return soap_closesock(soap);
  6829. if (!trt__GetCompatibleAudioDecoderConfigurationsResponse)
  6830. return soap_closesock(soap);
  6831. trt__GetCompatibleAudioDecoderConfigurationsResponse->soap_default(soap);
  6832. if (soap_begin_recv(soap)
  6833. || soap_envelope_begin_in(soap)
  6834. || soap_recv_header(soap)
  6835. || soap_body_begin_in(soap))
  6836. return soap_closesock(soap);
  6837. trt__GetCompatibleAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioDecoderConfigurationsResponse", "");
  6838. if (soap->error)
  6839. return soap_recv_fault(soap, 0);
  6840. if (soap_body_end_in(soap)
  6841. || soap_envelope_end_in(soap)
  6842. || soap_end_recv(soap))
  6843. return soap_closesock(soap);
  6844. return soap_closesock(soap);
  6845. }
  6846. int MediaBindingProxy::SetVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__SetVideoSourceConfiguration *trt__SetVideoSourceConfiguration, _trt__SetVideoSourceConfigurationResponse *trt__SetVideoSourceConfigurationResponse)
  6847. { struct soap *soap = this;
  6848. struct __trt__SetVideoSourceConfiguration_ soap_tmp___trt__SetVideoSourceConfiguration_;
  6849. if (endpoint)
  6850. soap_endpoint = endpoint;
  6851. if (soap_action == NULL)
  6852. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceConfiguration";
  6853. soap_begin(soap);
  6854. soap->encodingStyle = NULL;
  6855. soap_tmp___trt__SetVideoSourceConfiguration_.trt__SetVideoSourceConfiguration = trt__SetVideoSourceConfiguration;
  6856. soap_set_version(soap, 2); /* SOAP1.2 */
  6857. soap_serializeheader(soap);
  6858. soap_serialize___trt__SetVideoSourceConfiguration_(soap, &soap_tmp___trt__SetVideoSourceConfiguration_);
  6859. if (soap_begin_count(soap))
  6860. return soap->error;
  6861. if (soap->mode & SOAP_IO_LENGTH)
  6862. { if (soap_envelope_begin_out(soap)
  6863. || soap_putheader(soap)
  6864. || soap_body_begin_out(soap)
  6865. || soap_put___trt__SetVideoSourceConfiguration_(soap, &soap_tmp___trt__SetVideoSourceConfiguration_, "-trt:SetVideoSourceConfiguration", NULL)
  6866. || soap_body_end_out(soap)
  6867. || soap_envelope_end_out(soap))
  6868. return soap->error;
  6869. }
  6870. if (soap_end_count(soap))
  6871. return soap->error;
  6872. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6873. || soap_envelope_begin_out(soap)
  6874. || soap_putheader(soap)
  6875. || soap_body_begin_out(soap)
  6876. || soap_put___trt__SetVideoSourceConfiguration_(soap, &soap_tmp___trt__SetVideoSourceConfiguration_, "-trt:SetVideoSourceConfiguration", NULL)
  6877. || soap_body_end_out(soap)
  6878. || soap_envelope_end_out(soap)
  6879. || soap_end_send(soap))
  6880. return soap_closesock(soap);
  6881. if (!trt__SetVideoSourceConfigurationResponse)
  6882. return soap_closesock(soap);
  6883. trt__SetVideoSourceConfigurationResponse->soap_default(soap);
  6884. if (soap_begin_recv(soap)
  6885. || soap_envelope_begin_in(soap)
  6886. || soap_recv_header(soap)
  6887. || soap_body_begin_in(soap))
  6888. return soap_closesock(soap);
  6889. trt__SetVideoSourceConfigurationResponse->soap_get(soap, "trt:SetVideoSourceConfigurationResponse", "");
  6890. if (soap->error)
  6891. return soap_recv_fault(soap, 0);
  6892. if (soap_body_end_in(soap)
  6893. || soap_envelope_end_in(soap)
  6894. || soap_end_recv(soap))
  6895. return soap_closesock(soap);
  6896. return soap_closesock(soap);
  6897. }
  6898. int MediaBindingProxy::SetVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__SetVideoEncoderConfiguration *trt__SetVideoEncoderConfiguration, _trt__SetVideoEncoderConfigurationResponse *trt__SetVideoEncoderConfigurationResponse)
  6899. { struct soap *soap = this;
  6900. struct __trt__SetVideoEncoderConfiguration_ soap_tmp___trt__SetVideoEncoderConfiguration_;
  6901. if (endpoint)
  6902. soap_endpoint = endpoint;
  6903. if (soap_action == NULL)
  6904. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoEncoderConfiguration";
  6905. soap_begin(soap);
  6906. soap->encodingStyle = NULL;
  6907. soap_tmp___trt__SetVideoEncoderConfiguration_.trt__SetVideoEncoderConfiguration = trt__SetVideoEncoderConfiguration;
  6908. soap_set_version(soap, 2); /* SOAP1.2 */
  6909. soap_serializeheader(soap);
  6910. soap_serialize___trt__SetVideoEncoderConfiguration_(soap, &soap_tmp___trt__SetVideoEncoderConfiguration_);
  6911. if (soap_begin_count(soap))
  6912. return soap->error;
  6913. if (soap->mode & SOAP_IO_LENGTH)
  6914. { if (soap_envelope_begin_out(soap)
  6915. || soap_putheader(soap)
  6916. || soap_body_begin_out(soap)
  6917. || soap_put___trt__SetVideoEncoderConfiguration_(soap, &soap_tmp___trt__SetVideoEncoderConfiguration_, "-trt:SetVideoEncoderConfiguration", NULL)
  6918. || soap_body_end_out(soap)
  6919. || soap_envelope_end_out(soap))
  6920. return soap->error;
  6921. }
  6922. if (soap_end_count(soap))
  6923. return soap->error;
  6924. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6925. || soap_envelope_begin_out(soap)
  6926. || soap_putheader(soap)
  6927. || soap_body_begin_out(soap)
  6928. || soap_put___trt__SetVideoEncoderConfiguration_(soap, &soap_tmp___trt__SetVideoEncoderConfiguration_, "-trt:SetVideoEncoderConfiguration", NULL)
  6929. || soap_body_end_out(soap)
  6930. || soap_envelope_end_out(soap)
  6931. || soap_end_send(soap))
  6932. return soap_closesock(soap);
  6933. if (!trt__SetVideoEncoderConfigurationResponse)
  6934. return soap_closesock(soap);
  6935. trt__SetVideoEncoderConfigurationResponse->soap_default(soap);
  6936. if (soap_begin_recv(soap)
  6937. || soap_envelope_begin_in(soap)
  6938. || soap_recv_header(soap)
  6939. || soap_body_begin_in(soap))
  6940. return soap_closesock(soap);
  6941. trt__SetVideoEncoderConfigurationResponse->soap_get(soap, "trt:SetVideoEncoderConfigurationResponse", "");
  6942. if (soap->error)
  6943. return soap_recv_fault(soap, 0);
  6944. if (soap_body_end_in(soap)
  6945. || soap_envelope_end_in(soap)
  6946. || soap_end_recv(soap))
  6947. return soap_closesock(soap);
  6948. return soap_closesock(soap);
  6949. }
  6950. int MediaBindingProxy::SetAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioSourceConfiguration *trt__SetAudioSourceConfiguration, _trt__SetAudioSourceConfigurationResponse *trt__SetAudioSourceConfigurationResponse)
  6951. { struct soap *soap = this;
  6952. struct __trt__SetAudioSourceConfiguration_ soap_tmp___trt__SetAudioSourceConfiguration_;
  6953. if (endpoint)
  6954. soap_endpoint = endpoint;
  6955. if (soap_action == NULL)
  6956. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioSourceConfiguration";
  6957. soap_begin(soap);
  6958. soap->encodingStyle = NULL;
  6959. soap_tmp___trt__SetAudioSourceConfiguration_.trt__SetAudioSourceConfiguration = trt__SetAudioSourceConfiguration;
  6960. soap_set_version(soap, 2); /* SOAP1.2 */
  6961. soap_serializeheader(soap);
  6962. soap_serialize___trt__SetAudioSourceConfiguration_(soap, &soap_tmp___trt__SetAudioSourceConfiguration_);
  6963. if (soap_begin_count(soap))
  6964. return soap->error;
  6965. if (soap->mode & SOAP_IO_LENGTH)
  6966. { if (soap_envelope_begin_out(soap)
  6967. || soap_putheader(soap)
  6968. || soap_body_begin_out(soap)
  6969. || soap_put___trt__SetAudioSourceConfiguration_(soap, &soap_tmp___trt__SetAudioSourceConfiguration_, "-trt:SetAudioSourceConfiguration", NULL)
  6970. || soap_body_end_out(soap)
  6971. || soap_envelope_end_out(soap))
  6972. return soap->error;
  6973. }
  6974. if (soap_end_count(soap))
  6975. return soap->error;
  6976. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  6977. || soap_envelope_begin_out(soap)
  6978. || soap_putheader(soap)
  6979. || soap_body_begin_out(soap)
  6980. || soap_put___trt__SetAudioSourceConfiguration_(soap, &soap_tmp___trt__SetAudioSourceConfiguration_, "-trt:SetAudioSourceConfiguration", NULL)
  6981. || soap_body_end_out(soap)
  6982. || soap_envelope_end_out(soap)
  6983. || soap_end_send(soap))
  6984. return soap_closesock(soap);
  6985. if (!trt__SetAudioSourceConfigurationResponse)
  6986. return soap_closesock(soap);
  6987. trt__SetAudioSourceConfigurationResponse->soap_default(soap);
  6988. if (soap_begin_recv(soap)
  6989. || soap_envelope_begin_in(soap)
  6990. || soap_recv_header(soap)
  6991. || soap_body_begin_in(soap))
  6992. return soap_closesock(soap);
  6993. trt__SetAudioSourceConfigurationResponse->soap_get(soap, "trt:SetAudioSourceConfigurationResponse", "");
  6994. if (soap->error)
  6995. return soap_recv_fault(soap, 0);
  6996. if (soap_body_end_in(soap)
  6997. || soap_envelope_end_in(soap)
  6998. || soap_end_recv(soap))
  6999. return soap_closesock(soap);
  7000. return soap_closesock(soap);
  7001. }
  7002. int MediaBindingProxy::SetAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioEncoderConfiguration *trt__SetAudioEncoderConfiguration, _trt__SetAudioEncoderConfigurationResponse *trt__SetAudioEncoderConfigurationResponse)
  7003. { struct soap *soap = this;
  7004. struct __trt__SetAudioEncoderConfiguration_ soap_tmp___trt__SetAudioEncoderConfiguration_;
  7005. if (endpoint)
  7006. soap_endpoint = endpoint;
  7007. if (soap_action == NULL)
  7008. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioEncoderConfiguration";
  7009. soap_begin(soap);
  7010. soap->encodingStyle = NULL;
  7011. soap_tmp___trt__SetAudioEncoderConfiguration_.trt__SetAudioEncoderConfiguration = trt__SetAudioEncoderConfiguration;
  7012. soap_set_version(soap, 2); /* SOAP1.2 */
  7013. soap_serializeheader(soap);
  7014. soap_serialize___trt__SetAudioEncoderConfiguration_(soap, &soap_tmp___trt__SetAudioEncoderConfiguration_);
  7015. if (soap_begin_count(soap))
  7016. return soap->error;
  7017. if (soap->mode & SOAP_IO_LENGTH)
  7018. { if (soap_envelope_begin_out(soap)
  7019. || soap_putheader(soap)
  7020. || soap_body_begin_out(soap)
  7021. || soap_put___trt__SetAudioEncoderConfiguration_(soap, &soap_tmp___trt__SetAudioEncoderConfiguration_, "-trt:SetAudioEncoderConfiguration", NULL)
  7022. || soap_body_end_out(soap)
  7023. || soap_envelope_end_out(soap))
  7024. return soap->error;
  7025. }
  7026. if (soap_end_count(soap))
  7027. return soap->error;
  7028. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7029. || soap_envelope_begin_out(soap)
  7030. || soap_putheader(soap)
  7031. || soap_body_begin_out(soap)
  7032. || soap_put___trt__SetAudioEncoderConfiguration_(soap, &soap_tmp___trt__SetAudioEncoderConfiguration_, "-trt:SetAudioEncoderConfiguration", NULL)
  7033. || soap_body_end_out(soap)
  7034. || soap_envelope_end_out(soap)
  7035. || soap_end_send(soap))
  7036. return soap_closesock(soap);
  7037. if (!trt__SetAudioEncoderConfigurationResponse)
  7038. return soap_closesock(soap);
  7039. trt__SetAudioEncoderConfigurationResponse->soap_default(soap);
  7040. if (soap_begin_recv(soap)
  7041. || soap_envelope_begin_in(soap)
  7042. || soap_recv_header(soap)
  7043. || soap_body_begin_in(soap))
  7044. return soap_closesock(soap);
  7045. trt__SetAudioEncoderConfigurationResponse->soap_get(soap, "trt:SetAudioEncoderConfigurationResponse", "");
  7046. if (soap->error)
  7047. return soap_recv_fault(soap, 0);
  7048. if (soap_body_end_in(soap)
  7049. || soap_envelope_end_in(soap)
  7050. || soap_end_recv(soap))
  7051. return soap_closesock(soap);
  7052. return soap_closesock(soap);
  7053. }
  7054. int MediaBindingProxy::SetVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__SetVideoAnalyticsConfiguration *trt__SetVideoAnalyticsConfiguration, _trt__SetVideoAnalyticsConfigurationResponse *trt__SetVideoAnalyticsConfigurationResponse)
  7055. { struct soap *soap = this;
  7056. struct __trt__SetVideoAnalyticsConfiguration_ soap_tmp___trt__SetVideoAnalyticsConfiguration_;
  7057. if (endpoint)
  7058. soap_endpoint = endpoint;
  7059. if (soap_action == NULL)
  7060. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoAnalyticsConfiguration";
  7061. soap_begin(soap);
  7062. soap->encodingStyle = NULL;
  7063. soap_tmp___trt__SetVideoAnalyticsConfiguration_.trt__SetVideoAnalyticsConfiguration = trt__SetVideoAnalyticsConfiguration;
  7064. soap_set_version(soap, 2); /* SOAP1.2 */
  7065. soap_serializeheader(soap);
  7066. soap_serialize___trt__SetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration_);
  7067. if (soap_begin_count(soap))
  7068. return soap->error;
  7069. if (soap->mode & SOAP_IO_LENGTH)
  7070. { if (soap_envelope_begin_out(soap)
  7071. || soap_putheader(soap)
  7072. || soap_body_begin_out(soap)
  7073. || soap_put___trt__SetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration_, "-trt:SetVideoAnalyticsConfiguration", NULL)
  7074. || soap_body_end_out(soap)
  7075. || soap_envelope_end_out(soap))
  7076. return soap->error;
  7077. }
  7078. if (soap_end_count(soap))
  7079. return soap->error;
  7080. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7081. || soap_envelope_begin_out(soap)
  7082. || soap_putheader(soap)
  7083. || soap_body_begin_out(soap)
  7084. || soap_put___trt__SetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration_, "-trt:SetVideoAnalyticsConfiguration", NULL)
  7085. || soap_body_end_out(soap)
  7086. || soap_envelope_end_out(soap)
  7087. || soap_end_send(soap))
  7088. return soap_closesock(soap);
  7089. if (!trt__SetVideoAnalyticsConfigurationResponse)
  7090. return soap_closesock(soap);
  7091. trt__SetVideoAnalyticsConfigurationResponse->soap_default(soap);
  7092. if (soap_begin_recv(soap)
  7093. || soap_envelope_begin_in(soap)
  7094. || soap_recv_header(soap)
  7095. || soap_body_begin_in(soap))
  7096. return soap_closesock(soap);
  7097. trt__SetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:SetVideoAnalyticsConfigurationResponse", "");
  7098. if (soap->error)
  7099. return soap_recv_fault(soap, 0);
  7100. if (soap_body_end_in(soap)
  7101. || soap_envelope_end_in(soap)
  7102. || soap_end_recv(soap))
  7103. return soap_closesock(soap);
  7104. return soap_closesock(soap);
  7105. }
  7106. int MediaBindingProxy::SetMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__SetMetadataConfiguration *trt__SetMetadataConfiguration, _trt__SetMetadataConfigurationResponse *trt__SetMetadataConfigurationResponse)
  7107. { struct soap *soap = this;
  7108. struct __trt__SetMetadataConfiguration_ soap_tmp___trt__SetMetadataConfiguration_;
  7109. if (endpoint)
  7110. soap_endpoint = endpoint;
  7111. if (soap_action == NULL)
  7112. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetMetadataConfiguration";
  7113. soap_begin(soap);
  7114. soap->encodingStyle = NULL;
  7115. soap_tmp___trt__SetMetadataConfiguration_.trt__SetMetadataConfiguration = trt__SetMetadataConfiguration;
  7116. soap_set_version(soap, 2); /* SOAP1.2 */
  7117. soap_serializeheader(soap);
  7118. soap_serialize___trt__SetMetadataConfiguration_(soap, &soap_tmp___trt__SetMetadataConfiguration_);
  7119. if (soap_begin_count(soap))
  7120. return soap->error;
  7121. if (soap->mode & SOAP_IO_LENGTH)
  7122. { if (soap_envelope_begin_out(soap)
  7123. || soap_putheader(soap)
  7124. || soap_body_begin_out(soap)
  7125. || soap_put___trt__SetMetadataConfiguration_(soap, &soap_tmp___trt__SetMetadataConfiguration_, "-trt:SetMetadataConfiguration", NULL)
  7126. || soap_body_end_out(soap)
  7127. || soap_envelope_end_out(soap))
  7128. return soap->error;
  7129. }
  7130. if (soap_end_count(soap))
  7131. return soap->error;
  7132. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7133. || soap_envelope_begin_out(soap)
  7134. || soap_putheader(soap)
  7135. || soap_body_begin_out(soap)
  7136. || soap_put___trt__SetMetadataConfiguration_(soap, &soap_tmp___trt__SetMetadataConfiguration_, "-trt:SetMetadataConfiguration", NULL)
  7137. || soap_body_end_out(soap)
  7138. || soap_envelope_end_out(soap)
  7139. || soap_end_send(soap))
  7140. return soap_closesock(soap);
  7141. if (!trt__SetMetadataConfigurationResponse)
  7142. return soap_closesock(soap);
  7143. trt__SetMetadataConfigurationResponse->soap_default(soap);
  7144. if (soap_begin_recv(soap)
  7145. || soap_envelope_begin_in(soap)
  7146. || soap_recv_header(soap)
  7147. || soap_body_begin_in(soap))
  7148. return soap_closesock(soap);
  7149. trt__SetMetadataConfigurationResponse->soap_get(soap, "trt:SetMetadataConfigurationResponse", "");
  7150. if (soap->error)
  7151. return soap_recv_fault(soap, 0);
  7152. if (soap_body_end_in(soap)
  7153. || soap_envelope_end_in(soap)
  7154. || soap_end_recv(soap))
  7155. return soap_closesock(soap);
  7156. return soap_closesock(soap);
  7157. }
  7158. int MediaBindingProxy::SetAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioOutputConfiguration *trt__SetAudioOutputConfiguration, _trt__SetAudioOutputConfigurationResponse *trt__SetAudioOutputConfigurationResponse)
  7159. { struct soap *soap = this;
  7160. struct __trt__SetAudioOutputConfiguration_ soap_tmp___trt__SetAudioOutputConfiguration_;
  7161. if (endpoint)
  7162. soap_endpoint = endpoint;
  7163. if (soap_action == NULL)
  7164. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioOutputConfiguration";
  7165. soap_begin(soap);
  7166. soap->encodingStyle = NULL;
  7167. soap_tmp___trt__SetAudioOutputConfiguration_.trt__SetAudioOutputConfiguration = trt__SetAudioOutputConfiguration;
  7168. soap_set_version(soap, 2); /* SOAP1.2 */
  7169. soap_serializeheader(soap);
  7170. soap_serialize___trt__SetAudioOutputConfiguration_(soap, &soap_tmp___trt__SetAudioOutputConfiguration_);
  7171. if (soap_begin_count(soap))
  7172. return soap->error;
  7173. if (soap->mode & SOAP_IO_LENGTH)
  7174. { if (soap_envelope_begin_out(soap)
  7175. || soap_putheader(soap)
  7176. || soap_body_begin_out(soap)
  7177. || soap_put___trt__SetAudioOutputConfiguration_(soap, &soap_tmp___trt__SetAudioOutputConfiguration_, "-trt:SetAudioOutputConfiguration", NULL)
  7178. || soap_body_end_out(soap)
  7179. || soap_envelope_end_out(soap))
  7180. return soap->error;
  7181. }
  7182. if (soap_end_count(soap))
  7183. return soap->error;
  7184. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7185. || soap_envelope_begin_out(soap)
  7186. || soap_putheader(soap)
  7187. || soap_body_begin_out(soap)
  7188. || soap_put___trt__SetAudioOutputConfiguration_(soap, &soap_tmp___trt__SetAudioOutputConfiguration_, "-trt:SetAudioOutputConfiguration", NULL)
  7189. || soap_body_end_out(soap)
  7190. || soap_envelope_end_out(soap)
  7191. || soap_end_send(soap))
  7192. return soap_closesock(soap);
  7193. if (!trt__SetAudioOutputConfigurationResponse)
  7194. return soap_closesock(soap);
  7195. trt__SetAudioOutputConfigurationResponse->soap_default(soap);
  7196. if (soap_begin_recv(soap)
  7197. || soap_envelope_begin_in(soap)
  7198. || soap_recv_header(soap)
  7199. || soap_body_begin_in(soap))
  7200. return soap_closesock(soap);
  7201. trt__SetAudioOutputConfigurationResponse->soap_get(soap, "trt:SetAudioOutputConfigurationResponse", "");
  7202. if (soap->error)
  7203. return soap_recv_fault(soap, 0);
  7204. if (soap_body_end_in(soap)
  7205. || soap_envelope_end_in(soap)
  7206. || soap_end_recv(soap))
  7207. return soap_closesock(soap);
  7208. return soap_closesock(soap);
  7209. }
  7210. int MediaBindingProxy::SetAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioDecoderConfiguration *trt__SetAudioDecoderConfiguration, _trt__SetAudioDecoderConfigurationResponse *trt__SetAudioDecoderConfigurationResponse)
  7211. { struct soap *soap = this;
  7212. struct __trt__SetAudioDecoderConfiguration_ soap_tmp___trt__SetAudioDecoderConfiguration_;
  7213. if (endpoint)
  7214. soap_endpoint = endpoint;
  7215. if (soap_action == NULL)
  7216. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioDecoderConfiguration";
  7217. soap_begin(soap);
  7218. soap->encodingStyle = NULL;
  7219. soap_tmp___trt__SetAudioDecoderConfiguration_.trt__SetAudioDecoderConfiguration = trt__SetAudioDecoderConfiguration;
  7220. soap_set_version(soap, 2); /* SOAP1.2 */
  7221. soap_serializeheader(soap);
  7222. soap_serialize___trt__SetAudioDecoderConfiguration_(soap, &soap_tmp___trt__SetAudioDecoderConfiguration_);
  7223. if (soap_begin_count(soap))
  7224. return soap->error;
  7225. if (soap->mode & SOAP_IO_LENGTH)
  7226. { if (soap_envelope_begin_out(soap)
  7227. || soap_putheader(soap)
  7228. || soap_body_begin_out(soap)
  7229. || soap_put___trt__SetAudioDecoderConfiguration_(soap, &soap_tmp___trt__SetAudioDecoderConfiguration_, "-trt:SetAudioDecoderConfiguration", NULL)
  7230. || soap_body_end_out(soap)
  7231. || soap_envelope_end_out(soap))
  7232. return soap->error;
  7233. }
  7234. if (soap_end_count(soap))
  7235. return soap->error;
  7236. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7237. || soap_envelope_begin_out(soap)
  7238. || soap_putheader(soap)
  7239. || soap_body_begin_out(soap)
  7240. || soap_put___trt__SetAudioDecoderConfiguration_(soap, &soap_tmp___trt__SetAudioDecoderConfiguration_, "-trt:SetAudioDecoderConfiguration", NULL)
  7241. || soap_body_end_out(soap)
  7242. || soap_envelope_end_out(soap)
  7243. || soap_end_send(soap))
  7244. return soap_closesock(soap);
  7245. if (!trt__SetAudioDecoderConfigurationResponse)
  7246. return soap_closesock(soap);
  7247. trt__SetAudioDecoderConfigurationResponse->soap_default(soap);
  7248. if (soap_begin_recv(soap)
  7249. || soap_envelope_begin_in(soap)
  7250. || soap_recv_header(soap)
  7251. || soap_body_begin_in(soap))
  7252. return soap_closesock(soap);
  7253. trt__SetAudioDecoderConfigurationResponse->soap_get(soap, "trt:SetAudioDecoderConfigurationResponse", "");
  7254. if (soap->error)
  7255. return soap_recv_fault(soap, 0);
  7256. if (soap_body_end_in(soap)
  7257. || soap_envelope_end_in(soap)
  7258. || soap_end_recv(soap))
  7259. return soap_closesock(soap);
  7260. return soap_closesock(soap);
  7261. }
  7262. int MediaBindingProxy::GetVideoSourceConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurationOptions *trt__GetVideoSourceConfigurationOptions, _trt__GetVideoSourceConfigurationOptionsResponse *trt__GetVideoSourceConfigurationOptionsResponse)
  7263. { struct soap *soap = this;
  7264. struct __trt__GetVideoSourceConfigurationOptions_ soap_tmp___trt__GetVideoSourceConfigurationOptions_;
  7265. if (endpoint)
  7266. soap_endpoint = endpoint;
  7267. if (soap_action == NULL)
  7268. soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSourceConfigurationOptions/";
  7269. soap_begin(soap);
  7270. soap->encodingStyle = NULL;
  7271. soap_tmp___trt__GetVideoSourceConfigurationOptions_.trt__GetVideoSourceConfigurationOptions = trt__GetVideoSourceConfigurationOptions;
  7272. soap_set_version(soap, 2); /* SOAP1.2 */
  7273. soap_serializeheader(soap);
  7274. soap_serialize___trt__GetVideoSourceConfigurationOptions_(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions_);
  7275. if (soap_begin_count(soap))
  7276. return soap->error;
  7277. if (soap->mode & SOAP_IO_LENGTH)
  7278. { if (soap_envelope_begin_out(soap)
  7279. || soap_putheader(soap)
  7280. || soap_body_begin_out(soap)
  7281. || soap_put___trt__GetVideoSourceConfigurationOptions_(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions_, "-trt:GetVideoSourceConfigurationOptions", NULL)
  7282. || soap_body_end_out(soap)
  7283. || soap_envelope_end_out(soap))
  7284. return soap->error;
  7285. }
  7286. if (soap_end_count(soap))
  7287. return soap->error;
  7288. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7289. || soap_envelope_begin_out(soap)
  7290. || soap_putheader(soap)
  7291. || soap_body_begin_out(soap)
  7292. || soap_put___trt__GetVideoSourceConfigurationOptions_(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions_, "-trt:GetVideoSourceConfigurationOptions", NULL)
  7293. || soap_body_end_out(soap)
  7294. || soap_envelope_end_out(soap)
  7295. || soap_end_send(soap))
  7296. return soap_closesock(soap);
  7297. if (!trt__GetVideoSourceConfigurationOptionsResponse)
  7298. return soap_closesock(soap);
  7299. trt__GetVideoSourceConfigurationOptionsResponse->soap_default(soap);
  7300. if (soap_begin_recv(soap)
  7301. || soap_envelope_begin_in(soap)
  7302. || soap_recv_header(soap)
  7303. || soap_body_begin_in(soap))
  7304. return soap_closesock(soap);
  7305. trt__GetVideoSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationOptionsResponse", "");
  7306. if (soap->error)
  7307. return soap_recv_fault(soap, 0);
  7308. if (soap_body_end_in(soap)
  7309. || soap_envelope_end_in(soap)
  7310. || soap_end_recv(soap))
  7311. return soap_closesock(soap);
  7312. return soap_closesock(soap);
  7313. }
  7314. int MediaBindingProxy::GetVideoEncoderConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurationOptions *trt__GetVideoEncoderConfigurationOptions, _trt__GetVideoEncoderConfigurationOptionsResponse *trt__GetVideoEncoderConfigurationOptionsResponse)
  7315. { struct soap *soap = this;
  7316. struct __trt__GetVideoEncoderConfigurationOptions_ soap_tmp___trt__GetVideoEncoderConfigurationOptions_;
  7317. if (endpoint)
  7318. soap_endpoint = endpoint;
  7319. if (soap_action == NULL)
  7320. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurationOptions";
  7321. soap_begin(soap);
  7322. soap->encodingStyle = NULL;
  7323. soap_tmp___trt__GetVideoEncoderConfigurationOptions_.trt__GetVideoEncoderConfigurationOptions = trt__GetVideoEncoderConfigurationOptions;
  7324. soap_set_version(soap, 2); /* SOAP1.2 */
  7325. soap_serializeheader(soap);
  7326. soap_serialize___trt__GetVideoEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions_);
  7327. if (soap_begin_count(soap))
  7328. return soap->error;
  7329. if (soap->mode & SOAP_IO_LENGTH)
  7330. { if (soap_envelope_begin_out(soap)
  7331. || soap_putheader(soap)
  7332. || soap_body_begin_out(soap)
  7333. || soap_put___trt__GetVideoEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions_, "-trt:GetVideoEncoderConfigurationOptions", NULL)
  7334. || soap_body_end_out(soap)
  7335. || soap_envelope_end_out(soap))
  7336. return soap->error;
  7337. }
  7338. if (soap_end_count(soap))
  7339. return soap->error;
  7340. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7341. || soap_envelope_begin_out(soap)
  7342. || soap_putheader(soap)
  7343. || soap_body_begin_out(soap)
  7344. || soap_put___trt__GetVideoEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions_, "-trt:GetVideoEncoderConfigurationOptions", NULL)
  7345. || soap_body_end_out(soap)
  7346. || soap_envelope_end_out(soap)
  7347. || soap_end_send(soap))
  7348. return soap_closesock(soap);
  7349. if (!trt__GetVideoEncoderConfigurationOptionsResponse)
  7350. return soap_closesock(soap);
  7351. trt__GetVideoEncoderConfigurationOptionsResponse->soap_default(soap);
  7352. if (soap_begin_recv(soap)
  7353. || soap_envelope_begin_in(soap)
  7354. || soap_recv_header(soap)
  7355. || soap_body_begin_in(soap))
  7356. return soap_closesock(soap);
  7357. trt__GetVideoEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationOptionsResponse", "");
  7358. if (soap->error)
  7359. return soap_recv_fault(soap, 0);
  7360. if (soap_body_end_in(soap)
  7361. || soap_envelope_end_in(soap)
  7362. || soap_end_recv(soap))
  7363. return soap_closesock(soap);
  7364. return soap_closesock(soap);
  7365. }
  7366. int MediaBindingProxy::GetAudioSourceConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurationOptions *trt__GetAudioSourceConfigurationOptions, _trt__GetAudioSourceConfigurationOptionsResponse *trt__GetAudioSourceConfigurationOptionsResponse)
  7367. { struct soap *soap = this;
  7368. struct __trt__GetAudioSourceConfigurationOptions_ soap_tmp___trt__GetAudioSourceConfigurationOptions_;
  7369. if (endpoint)
  7370. soap_endpoint = endpoint;
  7371. if (soap_action == NULL)
  7372. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurationOptions";
  7373. soap_begin(soap);
  7374. soap->encodingStyle = NULL;
  7375. soap_tmp___trt__GetAudioSourceConfigurationOptions_.trt__GetAudioSourceConfigurationOptions = trt__GetAudioSourceConfigurationOptions;
  7376. soap_set_version(soap, 2); /* SOAP1.2 */
  7377. soap_serializeheader(soap);
  7378. soap_serialize___trt__GetAudioSourceConfigurationOptions_(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions_);
  7379. if (soap_begin_count(soap))
  7380. return soap->error;
  7381. if (soap->mode & SOAP_IO_LENGTH)
  7382. { if (soap_envelope_begin_out(soap)
  7383. || soap_putheader(soap)
  7384. || soap_body_begin_out(soap)
  7385. || soap_put___trt__GetAudioSourceConfigurationOptions_(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions_, "-trt:GetAudioSourceConfigurationOptions", NULL)
  7386. || soap_body_end_out(soap)
  7387. || soap_envelope_end_out(soap))
  7388. return soap->error;
  7389. }
  7390. if (soap_end_count(soap))
  7391. return soap->error;
  7392. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7393. || soap_envelope_begin_out(soap)
  7394. || soap_putheader(soap)
  7395. || soap_body_begin_out(soap)
  7396. || soap_put___trt__GetAudioSourceConfigurationOptions_(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions_, "-trt:GetAudioSourceConfigurationOptions", NULL)
  7397. || soap_body_end_out(soap)
  7398. || soap_envelope_end_out(soap)
  7399. || soap_end_send(soap))
  7400. return soap_closesock(soap);
  7401. if (!trt__GetAudioSourceConfigurationOptionsResponse)
  7402. return soap_closesock(soap);
  7403. trt__GetAudioSourceConfigurationOptionsResponse->soap_default(soap);
  7404. if (soap_begin_recv(soap)
  7405. || soap_envelope_begin_in(soap)
  7406. || soap_recv_header(soap)
  7407. || soap_body_begin_in(soap))
  7408. return soap_closesock(soap);
  7409. trt__GetAudioSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationOptionsResponse", "");
  7410. if (soap->error)
  7411. return soap_recv_fault(soap, 0);
  7412. if (soap_body_end_in(soap)
  7413. || soap_envelope_end_in(soap)
  7414. || soap_end_recv(soap))
  7415. return soap_closesock(soap);
  7416. return soap_closesock(soap);
  7417. }
  7418. int MediaBindingProxy::GetAudioEncoderConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurationOptions *trt__GetAudioEncoderConfigurationOptions, _trt__GetAudioEncoderConfigurationOptionsResponse *trt__GetAudioEncoderConfigurationOptionsResponse)
  7419. { struct soap *soap = this;
  7420. struct __trt__GetAudioEncoderConfigurationOptions_ soap_tmp___trt__GetAudioEncoderConfigurationOptions_;
  7421. if (endpoint)
  7422. soap_endpoint = endpoint;
  7423. if (soap_action == NULL)
  7424. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurationOptions";
  7425. soap_begin(soap);
  7426. soap->encodingStyle = NULL;
  7427. soap_tmp___trt__GetAudioEncoderConfigurationOptions_.trt__GetAudioEncoderConfigurationOptions = trt__GetAudioEncoderConfigurationOptions;
  7428. soap_set_version(soap, 2); /* SOAP1.2 */
  7429. soap_serializeheader(soap);
  7430. soap_serialize___trt__GetAudioEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions_);
  7431. if (soap_begin_count(soap))
  7432. return soap->error;
  7433. if (soap->mode & SOAP_IO_LENGTH)
  7434. { if (soap_envelope_begin_out(soap)
  7435. || soap_putheader(soap)
  7436. || soap_body_begin_out(soap)
  7437. || soap_put___trt__GetAudioEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions_, "-trt:GetAudioEncoderConfigurationOptions", NULL)
  7438. || soap_body_end_out(soap)
  7439. || soap_envelope_end_out(soap))
  7440. return soap->error;
  7441. }
  7442. if (soap_end_count(soap))
  7443. return soap->error;
  7444. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7445. || soap_envelope_begin_out(soap)
  7446. || soap_putheader(soap)
  7447. || soap_body_begin_out(soap)
  7448. || soap_put___trt__GetAudioEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions_, "-trt:GetAudioEncoderConfigurationOptions", NULL)
  7449. || soap_body_end_out(soap)
  7450. || soap_envelope_end_out(soap)
  7451. || soap_end_send(soap))
  7452. return soap_closesock(soap);
  7453. if (!trt__GetAudioEncoderConfigurationOptionsResponse)
  7454. return soap_closesock(soap);
  7455. trt__GetAudioEncoderConfigurationOptionsResponse->soap_default(soap);
  7456. if (soap_begin_recv(soap)
  7457. || soap_envelope_begin_in(soap)
  7458. || soap_recv_header(soap)
  7459. || soap_body_begin_in(soap))
  7460. return soap_closesock(soap);
  7461. trt__GetAudioEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationOptionsResponse", "");
  7462. if (soap->error)
  7463. return soap_recv_fault(soap, 0);
  7464. if (soap_body_end_in(soap)
  7465. || soap_envelope_end_in(soap)
  7466. || soap_end_recv(soap))
  7467. return soap_closesock(soap);
  7468. return soap_closesock(soap);
  7469. }
  7470. int MediaBindingProxy::GetMetadataConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurationOptions *trt__GetMetadataConfigurationOptions, _trt__GetMetadataConfigurationOptionsResponse *trt__GetMetadataConfigurationOptionsResponse)
  7471. { struct soap *soap = this;
  7472. struct __trt__GetMetadataConfigurationOptions_ soap_tmp___trt__GetMetadataConfigurationOptions_;
  7473. if (endpoint)
  7474. soap_endpoint = endpoint;
  7475. if (soap_action == NULL)
  7476. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurationOptions";
  7477. soap_begin(soap);
  7478. soap->encodingStyle = NULL;
  7479. soap_tmp___trt__GetMetadataConfigurationOptions_.trt__GetMetadataConfigurationOptions = trt__GetMetadataConfigurationOptions;
  7480. soap_set_version(soap, 2); /* SOAP1.2 */
  7481. soap_serializeheader(soap);
  7482. soap_serialize___trt__GetMetadataConfigurationOptions_(soap, &soap_tmp___trt__GetMetadataConfigurationOptions_);
  7483. if (soap_begin_count(soap))
  7484. return soap->error;
  7485. if (soap->mode & SOAP_IO_LENGTH)
  7486. { if (soap_envelope_begin_out(soap)
  7487. || soap_putheader(soap)
  7488. || soap_body_begin_out(soap)
  7489. || soap_put___trt__GetMetadataConfigurationOptions_(soap, &soap_tmp___trt__GetMetadataConfigurationOptions_, "-trt:GetMetadataConfigurationOptions", NULL)
  7490. || soap_body_end_out(soap)
  7491. || soap_envelope_end_out(soap))
  7492. return soap->error;
  7493. }
  7494. if (soap_end_count(soap))
  7495. return soap->error;
  7496. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7497. || soap_envelope_begin_out(soap)
  7498. || soap_putheader(soap)
  7499. || soap_body_begin_out(soap)
  7500. || soap_put___trt__GetMetadataConfigurationOptions_(soap, &soap_tmp___trt__GetMetadataConfigurationOptions_, "-trt:GetMetadataConfigurationOptions", NULL)
  7501. || soap_body_end_out(soap)
  7502. || soap_envelope_end_out(soap)
  7503. || soap_end_send(soap))
  7504. return soap_closesock(soap);
  7505. if (!trt__GetMetadataConfigurationOptionsResponse)
  7506. return soap_closesock(soap);
  7507. trt__GetMetadataConfigurationOptionsResponse->soap_default(soap);
  7508. if (soap_begin_recv(soap)
  7509. || soap_envelope_begin_in(soap)
  7510. || soap_recv_header(soap)
  7511. || soap_body_begin_in(soap))
  7512. return soap_closesock(soap);
  7513. trt__GetMetadataConfigurationOptionsResponse->soap_get(soap, "trt:GetMetadataConfigurationOptionsResponse", "");
  7514. if (soap->error)
  7515. return soap_recv_fault(soap, 0);
  7516. if (soap_body_end_in(soap)
  7517. || soap_envelope_end_in(soap)
  7518. || soap_end_recv(soap))
  7519. return soap_closesock(soap);
  7520. return soap_closesock(soap);
  7521. }
  7522. int MediaBindingProxy::GetAudioOutputConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurationOptions *trt__GetAudioOutputConfigurationOptions, _trt__GetAudioOutputConfigurationOptionsResponse *trt__GetAudioOutputConfigurationOptionsResponse)
  7523. { struct soap *soap = this;
  7524. struct __trt__GetAudioOutputConfigurationOptions_ soap_tmp___trt__GetAudioOutputConfigurationOptions_;
  7525. if (endpoint)
  7526. soap_endpoint = endpoint;
  7527. if (soap_action == NULL)
  7528. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurationOptions";
  7529. soap_begin(soap);
  7530. soap->encodingStyle = NULL;
  7531. soap_tmp___trt__GetAudioOutputConfigurationOptions_.trt__GetAudioOutputConfigurationOptions = trt__GetAudioOutputConfigurationOptions;
  7532. soap_set_version(soap, 2); /* SOAP1.2 */
  7533. soap_serializeheader(soap);
  7534. soap_serialize___trt__GetAudioOutputConfigurationOptions_(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions_);
  7535. if (soap_begin_count(soap))
  7536. return soap->error;
  7537. if (soap->mode & SOAP_IO_LENGTH)
  7538. { if (soap_envelope_begin_out(soap)
  7539. || soap_putheader(soap)
  7540. || soap_body_begin_out(soap)
  7541. || soap_put___trt__GetAudioOutputConfigurationOptions_(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions_, "-trt:GetAudioOutputConfigurationOptions", NULL)
  7542. || soap_body_end_out(soap)
  7543. || soap_envelope_end_out(soap))
  7544. return soap->error;
  7545. }
  7546. if (soap_end_count(soap))
  7547. return soap->error;
  7548. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7549. || soap_envelope_begin_out(soap)
  7550. || soap_putheader(soap)
  7551. || soap_body_begin_out(soap)
  7552. || soap_put___trt__GetAudioOutputConfigurationOptions_(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions_, "-trt:GetAudioOutputConfigurationOptions", NULL)
  7553. || soap_body_end_out(soap)
  7554. || soap_envelope_end_out(soap)
  7555. || soap_end_send(soap))
  7556. return soap_closesock(soap);
  7557. if (!trt__GetAudioOutputConfigurationOptionsResponse)
  7558. return soap_closesock(soap);
  7559. trt__GetAudioOutputConfigurationOptionsResponse->soap_default(soap);
  7560. if (soap_begin_recv(soap)
  7561. || soap_envelope_begin_in(soap)
  7562. || soap_recv_header(soap)
  7563. || soap_body_begin_in(soap))
  7564. return soap_closesock(soap);
  7565. trt__GetAudioOutputConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationOptionsResponse", "");
  7566. if (soap->error)
  7567. return soap_recv_fault(soap, 0);
  7568. if (soap_body_end_in(soap)
  7569. || soap_envelope_end_in(soap)
  7570. || soap_end_recv(soap))
  7571. return soap_closesock(soap);
  7572. return soap_closesock(soap);
  7573. }
  7574. int MediaBindingProxy::GetAudioDecoderConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurationOptions *trt__GetAudioDecoderConfigurationOptions, _trt__GetAudioDecoderConfigurationOptionsResponse *trt__GetAudioDecoderConfigurationOptionsResponse)
  7575. { struct soap *soap = this;
  7576. struct __trt__GetAudioDecoderConfigurationOptions_ soap_tmp___trt__GetAudioDecoderConfigurationOptions_;
  7577. if (endpoint)
  7578. soap_endpoint = endpoint;
  7579. if (soap_action == NULL)
  7580. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurationOptions";
  7581. soap_begin(soap);
  7582. soap->encodingStyle = NULL;
  7583. soap_tmp___trt__GetAudioDecoderConfigurationOptions_.trt__GetAudioDecoderConfigurationOptions = trt__GetAudioDecoderConfigurationOptions;
  7584. soap_set_version(soap, 2); /* SOAP1.2 */
  7585. soap_serializeheader(soap);
  7586. soap_serialize___trt__GetAudioDecoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions_);
  7587. if (soap_begin_count(soap))
  7588. return soap->error;
  7589. if (soap->mode & SOAP_IO_LENGTH)
  7590. { if (soap_envelope_begin_out(soap)
  7591. || soap_putheader(soap)
  7592. || soap_body_begin_out(soap)
  7593. || soap_put___trt__GetAudioDecoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions_, "-trt:GetAudioDecoderConfigurationOptions", NULL)
  7594. || soap_body_end_out(soap)
  7595. || soap_envelope_end_out(soap))
  7596. return soap->error;
  7597. }
  7598. if (soap_end_count(soap))
  7599. return soap->error;
  7600. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7601. || soap_envelope_begin_out(soap)
  7602. || soap_putheader(soap)
  7603. || soap_body_begin_out(soap)
  7604. || soap_put___trt__GetAudioDecoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions_, "-trt:GetAudioDecoderConfigurationOptions", NULL)
  7605. || soap_body_end_out(soap)
  7606. || soap_envelope_end_out(soap)
  7607. || soap_end_send(soap))
  7608. return soap_closesock(soap);
  7609. if (!trt__GetAudioDecoderConfigurationOptionsResponse)
  7610. return soap_closesock(soap);
  7611. trt__GetAudioDecoderConfigurationOptionsResponse->soap_default(soap);
  7612. if (soap_begin_recv(soap)
  7613. || soap_envelope_begin_in(soap)
  7614. || soap_recv_header(soap)
  7615. || soap_body_begin_in(soap))
  7616. return soap_closesock(soap);
  7617. trt__GetAudioDecoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationOptionsResponse", "");
  7618. if (soap->error)
  7619. return soap_recv_fault(soap, 0);
  7620. if (soap_body_end_in(soap)
  7621. || soap_envelope_end_in(soap)
  7622. || soap_end_recv(soap))
  7623. return soap_closesock(soap);
  7624. return soap_closesock(soap);
  7625. }
  7626. int MediaBindingProxy::GetGuaranteedNumberOfVideoEncoderInstances_(const char *endpoint, const char *soap_action, _trt__GetGuaranteedNumberOfVideoEncoderInstances *trt__GetGuaranteedNumberOfVideoEncoderInstances, _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse *trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
  7627. { struct soap *soap = this;
  7628. struct __trt__GetGuaranteedNumberOfVideoEncoderInstances_ soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_;
  7629. if (endpoint)
  7630. soap_endpoint = endpoint;
  7631. if (soap_action == NULL)
  7632. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetGuaranteedNumberOfVideoEncoderInstances";
  7633. soap_begin(soap);
  7634. soap->encodingStyle = NULL;
  7635. soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_.trt__GetGuaranteedNumberOfVideoEncoderInstances = trt__GetGuaranteedNumberOfVideoEncoderInstances;
  7636. soap_set_version(soap, 2); /* SOAP1.2 */
  7637. soap_serializeheader(soap);
  7638. soap_serialize___trt__GetGuaranteedNumberOfVideoEncoderInstances_(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_);
  7639. if (soap_begin_count(soap))
  7640. return soap->error;
  7641. if (soap->mode & SOAP_IO_LENGTH)
  7642. { if (soap_envelope_begin_out(soap)
  7643. || soap_putheader(soap)
  7644. || soap_body_begin_out(soap)
  7645. || soap_put___trt__GetGuaranteedNumberOfVideoEncoderInstances_(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", NULL)
  7646. || soap_body_end_out(soap)
  7647. || soap_envelope_end_out(soap))
  7648. return soap->error;
  7649. }
  7650. if (soap_end_count(soap))
  7651. return soap->error;
  7652. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7653. || soap_envelope_begin_out(soap)
  7654. || soap_putheader(soap)
  7655. || soap_body_begin_out(soap)
  7656. || soap_put___trt__GetGuaranteedNumberOfVideoEncoderInstances_(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", NULL)
  7657. || soap_body_end_out(soap)
  7658. || soap_envelope_end_out(soap)
  7659. || soap_end_send(soap))
  7660. return soap_closesock(soap);
  7661. if (!trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse)
  7662. return soap_closesock(soap);
  7663. trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->soap_default(soap);
  7664. if (soap_begin_recv(soap)
  7665. || soap_envelope_begin_in(soap)
  7666. || soap_recv_header(soap)
  7667. || soap_body_begin_in(soap))
  7668. return soap_closesock(soap);
  7669. trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->soap_get(soap, "trt:GetGuaranteedNumberOfVideoEncoderInstancesResponse", "");
  7670. if (soap->error)
  7671. return soap_recv_fault(soap, 0);
  7672. if (soap_body_end_in(soap)
  7673. || soap_envelope_end_in(soap)
  7674. || soap_end_recv(soap))
  7675. return soap_closesock(soap);
  7676. return soap_closesock(soap);
  7677. }
  7678. int MediaBindingProxy::GetStreamUri_(const char *endpoint, const char *soap_action, _trt__GetStreamUri *trt__GetStreamUri, _trt__GetStreamUriResponse *trt__GetStreamUriResponse)
  7679. { struct soap *soap = this;
  7680. struct __trt__GetStreamUri_ soap_tmp___trt__GetStreamUri_;
  7681. if (endpoint)
  7682. soap_endpoint = endpoint;
  7683. if (soap_action == NULL)
  7684. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetStreamUri";
  7685. soap_begin(soap);
  7686. soap->encodingStyle = NULL;
  7687. soap_tmp___trt__GetStreamUri_.trt__GetStreamUri = trt__GetStreamUri;
  7688. soap_set_version(soap, 2); /* SOAP1.2 */
  7689. soap_serializeheader(soap);
  7690. soap_serialize___trt__GetStreamUri_(soap, &soap_tmp___trt__GetStreamUri_);
  7691. if (soap_begin_count(soap))
  7692. return soap->error;
  7693. if (soap->mode & SOAP_IO_LENGTH)
  7694. { if (soap_envelope_begin_out(soap)
  7695. || soap_putheader(soap)
  7696. || soap_body_begin_out(soap)
  7697. || soap_put___trt__GetStreamUri_(soap, &soap_tmp___trt__GetStreamUri_, "-trt:GetStreamUri", NULL)
  7698. || soap_body_end_out(soap)
  7699. || soap_envelope_end_out(soap))
  7700. return soap->error;
  7701. }
  7702. if (soap_end_count(soap))
  7703. return soap->error;
  7704. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7705. || soap_envelope_begin_out(soap)
  7706. || soap_putheader(soap)
  7707. || soap_body_begin_out(soap)
  7708. || soap_put___trt__GetStreamUri_(soap, &soap_tmp___trt__GetStreamUri_, "-trt:GetStreamUri", NULL)
  7709. || soap_body_end_out(soap)
  7710. || soap_envelope_end_out(soap)
  7711. || soap_end_send(soap))
  7712. return soap_closesock(soap);
  7713. if (!trt__GetStreamUriResponse)
  7714. return soap_closesock(soap);
  7715. trt__GetStreamUriResponse->soap_default(soap);
  7716. if (soap_begin_recv(soap)
  7717. || soap_envelope_begin_in(soap)
  7718. || soap_recv_header(soap)
  7719. || soap_body_begin_in(soap))
  7720. return soap_closesock(soap);
  7721. trt__GetStreamUriResponse->soap_get(soap, "trt:GetStreamUriResponse", "");
  7722. if (soap->error)
  7723. return soap_recv_fault(soap, 0);
  7724. if (soap_body_end_in(soap)
  7725. || soap_envelope_end_in(soap)
  7726. || soap_end_recv(soap))
  7727. return soap_closesock(soap);
  7728. return soap_closesock(soap);
  7729. }
  7730. int MediaBindingProxy::StartMulticastStreaming_(const char *endpoint, const char *soap_action, _trt__StartMulticastStreaming *trt__StartMulticastStreaming, _trt__StartMulticastStreamingResponse *trt__StartMulticastStreamingResponse)
  7731. { struct soap *soap = this;
  7732. struct __trt__StartMulticastStreaming_ soap_tmp___trt__StartMulticastStreaming_;
  7733. if (endpoint)
  7734. soap_endpoint = endpoint;
  7735. if (soap_action == NULL)
  7736. soap_action = "http://www.onvif.org/ver10/media/wsdl/StartMulticastStreaming";
  7737. soap_begin(soap);
  7738. soap->encodingStyle = NULL;
  7739. soap_tmp___trt__StartMulticastStreaming_.trt__StartMulticastStreaming = trt__StartMulticastStreaming;
  7740. soap_set_version(soap, 2); /* SOAP1.2 */
  7741. soap_serializeheader(soap);
  7742. soap_serialize___trt__StartMulticastStreaming_(soap, &soap_tmp___trt__StartMulticastStreaming_);
  7743. if (soap_begin_count(soap))
  7744. return soap->error;
  7745. if (soap->mode & SOAP_IO_LENGTH)
  7746. { if (soap_envelope_begin_out(soap)
  7747. || soap_putheader(soap)
  7748. || soap_body_begin_out(soap)
  7749. || soap_put___trt__StartMulticastStreaming_(soap, &soap_tmp___trt__StartMulticastStreaming_, "-trt:StartMulticastStreaming", NULL)
  7750. || soap_body_end_out(soap)
  7751. || soap_envelope_end_out(soap))
  7752. return soap->error;
  7753. }
  7754. if (soap_end_count(soap))
  7755. return soap->error;
  7756. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7757. || soap_envelope_begin_out(soap)
  7758. || soap_putheader(soap)
  7759. || soap_body_begin_out(soap)
  7760. || soap_put___trt__StartMulticastStreaming_(soap, &soap_tmp___trt__StartMulticastStreaming_, "-trt:StartMulticastStreaming", NULL)
  7761. || soap_body_end_out(soap)
  7762. || soap_envelope_end_out(soap)
  7763. || soap_end_send(soap))
  7764. return soap_closesock(soap);
  7765. if (!trt__StartMulticastStreamingResponse)
  7766. return soap_closesock(soap);
  7767. trt__StartMulticastStreamingResponse->soap_default(soap);
  7768. if (soap_begin_recv(soap)
  7769. || soap_envelope_begin_in(soap)
  7770. || soap_recv_header(soap)
  7771. || soap_body_begin_in(soap))
  7772. return soap_closesock(soap);
  7773. trt__StartMulticastStreamingResponse->soap_get(soap, "trt:StartMulticastStreamingResponse", "");
  7774. if (soap->error)
  7775. return soap_recv_fault(soap, 0);
  7776. if (soap_body_end_in(soap)
  7777. || soap_envelope_end_in(soap)
  7778. || soap_end_recv(soap))
  7779. return soap_closesock(soap);
  7780. return soap_closesock(soap);
  7781. }
  7782. int MediaBindingProxy::StopMulticastStreaming_(const char *endpoint, const char *soap_action, _trt__StopMulticastStreaming *trt__StopMulticastStreaming, _trt__StopMulticastStreamingResponse *trt__StopMulticastStreamingResponse)
  7783. { struct soap *soap = this;
  7784. struct __trt__StopMulticastStreaming_ soap_tmp___trt__StopMulticastStreaming_;
  7785. if (endpoint)
  7786. soap_endpoint = endpoint;
  7787. if (soap_action == NULL)
  7788. soap_action = "http://www.onvif.org/ver10/media/wsdl/StopMulticastStreaming";
  7789. soap_begin(soap);
  7790. soap->encodingStyle = NULL;
  7791. soap_tmp___trt__StopMulticastStreaming_.trt__StopMulticastStreaming = trt__StopMulticastStreaming;
  7792. soap_set_version(soap, 2); /* SOAP1.2 */
  7793. soap_serializeheader(soap);
  7794. soap_serialize___trt__StopMulticastStreaming_(soap, &soap_tmp___trt__StopMulticastStreaming_);
  7795. if (soap_begin_count(soap))
  7796. return soap->error;
  7797. if (soap->mode & SOAP_IO_LENGTH)
  7798. { if (soap_envelope_begin_out(soap)
  7799. || soap_putheader(soap)
  7800. || soap_body_begin_out(soap)
  7801. || soap_put___trt__StopMulticastStreaming_(soap, &soap_tmp___trt__StopMulticastStreaming_, "-trt:StopMulticastStreaming", NULL)
  7802. || soap_body_end_out(soap)
  7803. || soap_envelope_end_out(soap))
  7804. return soap->error;
  7805. }
  7806. if (soap_end_count(soap))
  7807. return soap->error;
  7808. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7809. || soap_envelope_begin_out(soap)
  7810. || soap_putheader(soap)
  7811. || soap_body_begin_out(soap)
  7812. || soap_put___trt__StopMulticastStreaming_(soap, &soap_tmp___trt__StopMulticastStreaming_, "-trt:StopMulticastStreaming", NULL)
  7813. || soap_body_end_out(soap)
  7814. || soap_envelope_end_out(soap)
  7815. || soap_end_send(soap))
  7816. return soap_closesock(soap);
  7817. if (!trt__StopMulticastStreamingResponse)
  7818. return soap_closesock(soap);
  7819. trt__StopMulticastStreamingResponse->soap_default(soap);
  7820. if (soap_begin_recv(soap)
  7821. || soap_envelope_begin_in(soap)
  7822. || soap_recv_header(soap)
  7823. || soap_body_begin_in(soap))
  7824. return soap_closesock(soap);
  7825. trt__StopMulticastStreamingResponse->soap_get(soap, "trt:StopMulticastStreamingResponse", "");
  7826. if (soap->error)
  7827. return soap_recv_fault(soap, 0);
  7828. if (soap_body_end_in(soap)
  7829. || soap_envelope_end_in(soap)
  7830. || soap_end_recv(soap))
  7831. return soap_closesock(soap);
  7832. return soap_closesock(soap);
  7833. }
  7834. int MediaBindingProxy::SetSynchronizationPoint_(const char *endpoint, const char *soap_action, _trt__SetSynchronizationPoint *trt__SetSynchronizationPoint, _trt__SetSynchronizationPointResponse *trt__SetSynchronizationPointResponse)
  7835. { struct soap *soap = this;
  7836. struct __trt__SetSynchronizationPoint_ soap_tmp___trt__SetSynchronizationPoint_;
  7837. if (endpoint)
  7838. soap_endpoint = endpoint;
  7839. if (soap_action == NULL)
  7840. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetSynchronizationPoint";
  7841. soap_begin(soap);
  7842. soap->encodingStyle = NULL;
  7843. soap_tmp___trt__SetSynchronizationPoint_.trt__SetSynchronizationPoint = trt__SetSynchronizationPoint;
  7844. soap_set_version(soap, 2); /* SOAP1.2 */
  7845. soap_serializeheader(soap);
  7846. soap_serialize___trt__SetSynchronizationPoint_(soap, &soap_tmp___trt__SetSynchronizationPoint_);
  7847. if (soap_begin_count(soap))
  7848. return soap->error;
  7849. if (soap->mode & SOAP_IO_LENGTH)
  7850. { if (soap_envelope_begin_out(soap)
  7851. || soap_putheader(soap)
  7852. || soap_body_begin_out(soap)
  7853. || soap_put___trt__SetSynchronizationPoint_(soap, &soap_tmp___trt__SetSynchronizationPoint_, "-trt:SetSynchronizationPoint", NULL)
  7854. || soap_body_end_out(soap)
  7855. || soap_envelope_end_out(soap))
  7856. return soap->error;
  7857. }
  7858. if (soap_end_count(soap))
  7859. return soap->error;
  7860. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7861. || soap_envelope_begin_out(soap)
  7862. || soap_putheader(soap)
  7863. || soap_body_begin_out(soap)
  7864. || soap_put___trt__SetSynchronizationPoint_(soap, &soap_tmp___trt__SetSynchronizationPoint_, "-trt:SetSynchronizationPoint", NULL)
  7865. || soap_body_end_out(soap)
  7866. || soap_envelope_end_out(soap)
  7867. || soap_end_send(soap))
  7868. return soap_closesock(soap);
  7869. if (!trt__SetSynchronizationPointResponse)
  7870. return soap_closesock(soap);
  7871. trt__SetSynchronizationPointResponse->soap_default(soap);
  7872. if (soap_begin_recv(soap)
  7873. || soap_envelope_begin_in(soap)
  7874. || soap_recv_header(soap)
  7875. || soap_body_begin_in(soap))
  7876. return soap_closesock(soap);
  7877. trt__SetSynchronizationPointResponse->soap_get(soap, "trt:SetSynchronizationPointResponse", "");
  7878. if (soap->error)
  7879. return soap_recv_fault(soap, 0);
  7880. if (soap_body_end_in(soap)
  7881. || soap_envelope_end_in(soap)
  7882. || soap_end_recv(soap))
  7883. return soap_closesock(soap);
  7884. return soap_closesock(soap);
  7885. }
  7886. int MediaBindingProxy::GetSnapshotUri_(const char *endpoint, const char *soap_action, _trt__GetSnapshotUri *trt__GetSnapshotUri, _trt__GetSnapshotUriResponse *trt__GetSnapshotUriResponse)
  7887. { struct soap *soap = this;
  7888. struct __trt__GetSnapshotUri_ soap_tmp___trt__GetSnapshotUri_;
  7889. if (endpoint)
  7890. soap_endpoint = endpoint;
  7891. if (soap_action == NULL)
  7892. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetSnapshotUri";
  7893. soap_begin(soap);
  7894. soap->encodingStyle = NULL;
  7895. soap_tmp___trt__GetSnapshotUri_.trt__GetSnapshotUri = trt__GetSnapshotUri;
  7896. soap_set_version(soap, 2); /* SOAP1.2 */
  7897. soap_serializeheader(soap);
  7898. soap_serialize___trt__GetSnapshotUri_(soap, &soap_tmp___trt__GetSnapshotUri_);
  7899. if (soap_begin_count(soap))
  7900. return soap->error;
  7901. if (soap->mode & SOAP_IO_LENGTH)
  7902. { if (soap_envelope_begin_out(soap)
  7903. || soap_putheader(soap)
  7904. || soap_body_begin_out(soap)
  7905. || soap_put___trt__GetSnapshotUri_(soap, &soap_tmp___trt__GetSnapshotUri_, "-trt:GetSnapshotUri", NULL)
  7906. || soap_body_end_out(soap)
  7907. || soap_envelope_end_out(soap))
  7908. return soap->error;
  7909. }
  7910. if (soap_end_count(soap))
  7911. return soap->error;
  7912. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7913. || soap_envelope_begin_out(soap)
  7914. || soap_putheader(soap)
  7915. || soap_body_begin_out(soap)
  7916. || soap_put___trt__GetSnapshotUri_(soap, &soap_tmp___trt__GetSnapshotUri_, "-trt:GetSnapshotUri", NULL)
  7917. || soap_body_end_out(soap)
  7918. || soap_envelope_end_out(soap)
  7919. || soap_end_send(soap))
  7920. return soap_closesock(soap);
  7921. if (!trt__GetSnapshotUriResponse)
  7922. return soap_closesock(soap);
  7923. trt__GetSnapshotUriResponse->soap_default(soap);
  7924. if (soap_begin_recv(soap)
  7925. || soap_envelope_begin_in(soap)
  7926. || soap_recv_header(soap)
  7927. || soap_body_begin_in(soap))
  7928. return soap_closesock(soap);
  7929. trt__GetSnapshotUriResponse->soap_get(soap, "trt:GetSnapshotUriResponse", "");
  7930. if (soap->error)
  7931. return soap_recv_fault(soap, 0);
  7932. if (soap_body_end_in(soap)
  7933. || soap_envelope_end_in(soap)
  7934. || soap_end_recv(soap))
  7935. return soap_closesock(soap);
  7936. return soap_closesock(soap);
  7937. }
  7938. int MediaBindingProxy::GetVideoSourceModes_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceModes *trt__GetVideoSourceModes, _trt__GetVideoSourceModesResponse *trt__GetVideoSourceModesResponse)
  7939. { struct soap *soap = this;
  7940. struct __trt__GetVideoSourceModes_ soap_tmp___trt__GetVideoSourceModes_;
  7941. if (endpoint)
  7942. soap_endpoint = endpoint;
  7943. if (soap_action == NULL)
  7944. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceModes";
  7945. soap_begin(soap);
  7946. soap->encodingStyle = NULL;
  7947. soap_tmp___trt__GetVideoSourceModes_.trt__GetVideoSourceModes = trt__GetVideoSourceModes;
  7948. soap_set_version(soap, 2); /* SOAP1.2 */
  7949. soap_serializeheader(soap);
  7950. soap_serialize___trt__GetVideoSourceModes_(soap, &soap_tmp___trt__GetVideoSourceModes_);
  7951. if (soap_begin_count(soap))
  7952. return soap->error;
  7953. if (soap->mode & SOAP_IO_LENGTH)
  7954. { if (soap_envelope_begin_out(soap)
  7955. || soap_putheader(soap)
  7956. || soap_body_begin_out(soap)
  7957. || soap_put___trt__GetVideoSourceModes_(soap, &soap_tmp___trt__GetVideoSourceModes_, "-trt:GetVideoSourceModes", NULL)
  7958. || soap_body_end_out(soap)
  7959. || soap_envelope_end_out(soap))
  7960. return soap->error;
  7961. }
  7962. if (soap_end_count(soap))
  7963. return soap->error;
  7964. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  7965. || soap_envelope_begin_out(soap)
  7966. || soap_putheader(soap)
  7967. || soap_body_begin_out(soap)
  7968. || soap_put___trt__GetVideoSourceModes_(soap, &soap_tmp___trt__GetVideoSourceModes_, "-trt:GetVideoSourceModes", NULL)
  7969. || soap_body_end_out(soap)
  7970. || soap_envelope_end_out(soap)
  7971. || soap_end_send(soap))
  7972. return soap_closesock(soap);
  7973. if (!trt__GetVideoSourceModesResponse)
  7974. return soap_closesock(soap);
  7975. trt__GetVideoSourceModesResponse->soap_default(soap);
  7976. if (soap_begin_recv(soap)
  7977. || soap_envelope_begin_in(soap)
  7978. || soap_recv_header(soap)
  7979. || soap_body_begin_in(soap))
  7980. return soap_closesock(soap);
  7981. trt__GetVideoSourceModesResponse->soap_get(soap, "trt:GetVideoSourceModesResponse", "");
  7982. if (soap->error)
  7983. return soap_recv_fault(soap, 0);
  7984. if (soap_body_end_in(soap)
  7985. || soap_envelope_end_in(soap)
  7986. || soap_end_recv(soap))
  7987. return soap_closesock(soap);
  7988. return soap_closesock(soap);
  7989. }
  7990. int MediaBindingProxy::SetVideoSourceMode_(const char *endpoint, const char *soap_action, _trt__SetVideoSourceMode *trt__SetVideoSourceMode, _trt__SetVideoSourceModeResponse *trt__SetVideoSourceModeResponse)
  7991. { struct soap *soap = this;
  7992. struct __trt__SetVideoSourceMode_ soap_tmp___trt__SetVideoSourceMode_;
  7993. if (endpoint)
  7994. soap_endpoint = endpoint;
  7995. if (soap_action == NULL)
  7996. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceMode";
  7997. soap_begin(soap);
  7998. soap->encodingStyle = NULL;
  7999. soap_tmp___trt__SetVideoSourceMode_.trt__SetVideoSourceMode = trt__SetVideoSourceMode;
  8000. soap_set_version(soap, 2); /* SOAP1.2 */
  8001. soap_serializeheader(soap);
  8002. soap_serialize___trt__SetVideoSourceMode_(soap, &soap_tmp___trt__SetVideoSourceMode_);
  8003. if (soap_begin_count(soap))
  8004. return soap->error;
  8005. if (soap->mode & SOAP_IO_LENGTH)
  8006. { if (soap_envelope_begin_out(soap)
  8007. || soap_putheader(soap)
  8008. || soap_body_begin_out(soap)
  8009. || soap_put___trt__SetVideoSourceMode_(soap, &soap_tmp___trt__SetVideoSourceMode_, "-trt:SetVideoSourceMode", NULL)
  8010. || soap_body_end_out(soap)
  8011. || soap_envelope_end_out(soap))
  8012. return soap->error;
  8013. }
  8014. if (soap_end_count(soap))
  8015. return soap->error;
  8016. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8017. || soap_envelope_begin_out(soap)
  8018. || soap_putheader(soap)
  8019. || soap_body_begin_out(soap)
  8020. || soap_put___trt__SetVideoSourceMode_(soap, &soap_tmp___trt__SetVideoSourceMode_, "-trt:SetVideoSourceMode", NULL)
  8021. || soap_body_end_out(soap)
  8022. || soap_envelope_end_out(soap)
  8023. || soap_end_send(soap))
  8024. return soap_closesock(soap);
  8025. if (!trt__SetVideoSourceModeResponse)
  8026. return soap_closesock(soap);
  8027. trt__SetVideoSourceModeResponse->soap_default(soap);
  8028. if (soap_begin_recv(soap)
  8029. || soap_envelope_begin_in(soap)
  8030. || soap_recv_header(soap)
  8031. || soap_body_begin_in(soap))
  8032. return soap_closesock(soap);
  8033. trt__SetVideoSourceModeResponse->soap_get(soap, "trt:SetVideoSourceModeResponse", "");
  8034. if (soap->error)
  8035. return soap_recv_fault(soap, 0);
  8036. if (soap_body_end_in(soap)
  8037. || soap_envelope_end_in(soap)
  8038. || soap_end_recv(soap))
  8039. return soap_closesock(soap);
  8040. return soap_closesock(soap);
  8041. }
  8042. int MediaBindingProxy::GetOSDs_(const char *endpoint, const char *soap_action, _trt__GetOSDs *trt__GetOSDs, _trt__GetOSDsResponse *trt__GetOSDsResponse)
  8043. { struct soap *soap = this;
  8044. struct __trt__GetOSDs_ soap_tmp___trt__GetOSDs_;
  8045. if (endpoint)
  8046. soap_endpoint = endpoint;
  8047. if (soap_action == NULL)
  8048. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDs";
  8049. soap_begin(soap);
  8050. soap->encodingStyle = NULL;
  8051. soap_tmp___trt__GetOSDs_.trt__GetOSDs = trt__GetOSDs;
  8052. soap_set_version(soap, 2); /* SOAP1.2 */
  8053. soap_serializeheader(soap);
  8054. soap_serialize___trt__GetOSDs_(soap, &soap_tmp___trt__GetOSDs_);
  8055. if (soap_begin_count(soap))
  8056. return soap->error;
  8057. if (soap->mode & SOAP_IO_LENGTH)
  8058. { if (soap_envelope_begin_out(soap)
  8059. || soap_putheader(soap)
  8060. || soap_body_begin_out(soap)
  8061. || soap_put___trt__GetOSDs_(soap, &soap_tmp___trt__GetOSDs_, "-trt:GetOSDs", NULL)
  8062. || soap_body_end_out(soap)
  8063. || soap_envelope_end_out(soap))
  8064. return soap->error;
  8065. }
  8066. if (soap_end_count(soap))
  8067. return soap->error;
  8068. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8069. || soap_envelope_begin_out(soap)
  8070. || soap_putheader(soap)
  8071. || soap_body_begin_out(soap)
  8072. || soap_put___trt__GetOSDs_(soap, &soap_tmp___trt__GetOSDs_, "-trt:GetOSDs", NULL)
  8073. || soap_body_end_out(soap)
  8074. || soap_envelope_end_out(soap)
  8075. || soap_end_send(soap))
  8076. return soap_closesock(soap);
  8077. if (!trt__GetOSDsResponse)
  8078. return soap_closesock(soap);
  8079. trt__GetOSDsResponse->soap_default(soap);
  8080. if (soap_begin_recv(soap)
  8081. || soap_envelope_begin_in(soap)
  8082. || soap_recv_header(soap)
  8083. || soap_body_begin_in(soap))
  8084. return soap_closesock(soap);
  8085. trt__GetOSDsResponse->soap_get(soap, "trt:GetOSDsResponse", "");
  8086. if (soap->error)
  8087. return soap_recv_fault(soap, 0);
  8088. if (soap_body_end_in(soap)
  8089. || soap_envelope_end_in(soap)
  8090. || soap_end_recv(soap))
  8091. return soap_closesock(soap);
  8092. return soap_closesock(soap);
  8093. }
  8094. int MediaBindingProxy::GetOSD_(const char *endpoint, const char *soap_action, _trt__GetOSD *trt__GetOSD, _trt__GetOSDResponse *trt__GetOSDResponse)
  8095. { struct soap *soap = this;
  8096. struct __trt__GetOSD_ soap_tmp___trt__GetOSD_;
  8097. if (endpoint)
  8098. soap_endpoint = endpoint;
  8099. if (soap_action == NULL)
  8100. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSD";
  8101. soap_begin(soap);
  8102. soap->encodingStyle = NULL;
  8103. soap_tmp___trt__GetOSD_.trt__GetOSD = trt__GetOSD;
  8104. soap_set_version(soap, 2); /* SOAP1.2 */
  8105. soap_serializeheader(soap);
  8106. soap_serialize___trt__GetOSD_(soap, &soap_tmp___trt__GetOSD_);
  8107. if (soap_begin_count(soap))
  8108. return soap->error;
  8109. if (soap->mode & SOAP_IO_LENGTH)
  8110. { if (soap_envelope_begin_out(soap)
  8111. || soap_putheader(soap)
  8112. || soap_body_begin_out(soap)
  8113. || soap_put___trt__GetOSD_(soap, &soap_tmp___trt__GetOSD_, "-trt:GetOSD", NULL)
  8114. || soap_body_end_out(soap)
  8115. || soap_envelope_end_out(soap))
  8116. return soap->error;
  8117. }
  8118. if (soap_end_count(soap))
  8119. return soap->error;
  8120. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8121. || soap_envelope_begin_out(soap)
  8122. || soap_putheader(soap)
  8123. || soap_body_begin_out(soap)
  8124. || soap_put___trt__GetOSD_(soap, &soap_tmp___trt__GetOSD_, "-trt:GetOSD", NULL)
  8125. || soap_body_end_out(soap)
  8126. || soap_envelope_end_out(soap)
  8127. || soap_end_send(soap))
  8128. return soap_closesock(soap);
  8129. if (!trt__GetOSDResponse)
  8130. return soap_closesock(soap);
  8131. trt__GetOSDResponse->soap_default(soap);
  8132. if (soap_begin_recv(soap)
  8133. || soap_envelope_begin_in(soap)
  8134. || soap_recv_header(soap)
  8135. || soap_body_begin_in(soap))
  8136. return soap_closesock(soap);
  8137. trt__GetOSDResponse->soap_get(soap, "trt:GetOSDResponse", "");
  8138. if (soap->error)
  8139. return soap_recv_fault(soap, 0);
  8140. if (soap_body_end_in(soap)
  8141. || soap_envelope_end_in(soap)
  8142. || soap_end_recv(soap))
  8143. return soap_closesock(soap);
  8144. return soap_closesock(soap);
  8145. }
  8146. int MediaBindingProxy::GetOSDOptions_(const char *endpoint, const char *soap_action, _trt__GetOSDOptions *trt__GetOSDOptions, _trt__GetOSDOptionsResponse *trt__GetOSDOptionsResponse)
  8147. { struct soap *soap = this;
  8148. struct __trt__GetOSDOptions_ soap_tmp___trt__GetOSDOptions_;
  8149. if (endpoint)
  8150. soap_endpoint = endpoint;
  8151. if (soap_action == NULL)
  8152. soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDOptions";
  8153. soap_begin(soap);
  8154. soap->encodingStyle = NULL;
  8155. soap_tmp___trt__GetOSDOptions_.trt__GetOSDOptions = trt__GetOSDOptions;
  8156. soap_set_version(soap, 2); /* SOAP1.2 */
  8157. soap_serializeheader(soap);
  8158. soap_serialize___trt__GetOSDOptions_(soap, &soap_tmp___trt__GetOSDOptions_);
  8159. if (soap_begin_count(soap))
  8160. return soap->error;
  8161. if (soap->mode & SOAP_IO_LENGTH)
  8162. { if (soap_envelope_begin_out(soap)
  8163. || soap_putheader(soap)
  8164. || soap_body_begin_out(soap)
  8165. || soap_put___trt__GetOSDOptions_(soap, &soap_tmp___trt__GetOSDOptions_, "-trt:GetOSDOptions", NULL)
  8166. || soap_body_end_out(soap)
  8167. || soap_envelope_end_out(soap))
  8168. return soap->error;
  8169. }
  8170. if (soap_end_count(soap))
  8171. return soap->error;
  8172. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8173. || soap_envelope_begin_out(soap)
  8174. || soap_putheader(soap)
  8175. || soap_body_begin_out(soap)
  8176. || soap_put___trt__GetOSDOptions_(soap, &soap_tmp___trt__GetOSDOptions_, "-trt:GetOSDOptions", NULL)
  8177. || soap_body_end_out(soap)
  8178. || soap_envelope_end_out(soap)
  8179. || soap_end_send(soap))
  8180. return soap_closesock(soap);
  8181. if (!trt__GetOSDOptionsResponse)
  8182. return soap_closesock(soap);
  8183. trt__GetOSDOptionsResponse->soap_default(soap);
  8184. if (soap_begin_recv(soap)
  8185. || soap_envelope_begin_in(soap)
  8186. || soap_recv_header(soap)
  8187. || soap_body_begin_in(soap))
  8188. return soap_closesock(soap);
  8189. trt__GetOSDOptionsResponse->soap_get(soap, "trt:GetOSDOptionsResponse", "");
  8190. if (soap->error)
  8191. return soap_recv_fault(soap, 0);
  8192. if (soap_body_end_in(soap)
  8193. || soap_envelope_end_in(soap)
  8194. || soap_end_recv(soap))
  8195. return soap_closesock(soap);
  8196. return soap_closesock(soap);
  8197. }
  8198. int MediaBindingProxy::SetOSD_(const char *endpoint, const char *soap_action, _trt__SetOSD *trt__SetOSD, _trt__SetOSDResponse *trt__SetOSDResponse)
  8199. { struct soap *soap = this;
  8200. struct __trt__SetOSD_ soap_tmp___trt__SetOSD_;
  8201. if (endpoint)
  8202. soap_endpoint = endpoint;
  8203. if (soap_action == NULL)
  8204. soap_action = "http://www.onvif.org/ver10/media/wsdl/SetOSD";
  8205. soap_begin(soap);
  8206. soap->encodingStyle = NULL;
  8207. soap_tmp___trt__SetOSD_.trt__SetOSD = trt__SetOSD;
  8208. soap_set_version(soap, 2); /* SOAP1.2 */
  8209. soap_serializeheader(soap);
  8210. soap_serialize___trt__SetOSD_(soap, &soap_tmp___trt__SetOSD_);
  8211. if (soap_begin_count(soap))
  8212. return soap->error;
  8213. if (soap->mode & SOAP_IO_LENGTH)
  8214. { if (soap_envelope_begin_out(soap)
  8215. || soap_putheader(soap)
  8216. || soap_body_begin_out(soap)
  8217. || soap_put___trt__SetOSD_(soap, &soap_tmp___trt__SetOSD_, "-trt:SetOSD", NULL)
  8218. || soap_body_end_out(soap)
  8219. || soap_envelope_end_out(soap))
  8220. return soap->error;
  8221. }
  8222. if (soap_end_count(soap))
  8223. return soap->error;
  8224. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8225. || soap_envelope_begin_out(soap)
  8226. || soap_putheader(soap)
  8227. || soap_body_begin_out(soap)
  8228. || soap_put___trt__SetOSD_(soap, &soap_tmp___trt__SetOSD_, "-trt:SetOSD", NULL)
  8229. || soap_body_end_out(soap)
  8230. || soap_envelope_end_out(soap)
  8231. || soap_end_send(soap))
  8232. return soap_closesock(soap);
  8233. if (!trt__SetOSDResponse)
  8234. return soap_closesock(soap);
  8235. trt__SetOSDResponse->soap_default(soap);
  8236. if (soap_begin_recv(soap)
  8237. || soap_envelope_begin_in(soap)
  8238. || soap_recv_header(soap)
  8239. || soap_body_begin_in(soap))
  8240. return soap_closesock(soap);
  8241. trt__SetOSDResponse->soap_get(soap, "trt:SetOSDResponse", "");
  8242. if (soap->error)
  8243. return soap_recv_fault(soap, 0);
  8244. if (soap_body_end_in(soap)
  8245. || soap_envelope_end_in(soap)
  8246. || soap_end_recv(soap))
  8247. return soap_closesock(soap);
  8248. return soap_closesock(soap);
  8249. }
  8250. int MediaBindingProxy::CreateOSD_(const char *endpoint, const char *soap_action, _trt__CreateOSD *trt__CreateOSD, _trt__CreateOSDResponse *trt__CreateOSDResponse)
  8251. { struct soap *soap = this;
  8252. struct __trt__CreateOSD_ soap_tmp___trt__CreateOSD_;
  8253. if (endpoint)
  8254. soap_endpoint = endpoint;
  8255. if (soap_action == NULL)
  8256. soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateOSD";
  8257. soap_begin(soap);
  8258. soap->encodingStyle = NULL;
  8259. soap_tmp___trt__CreateOSD_.trt__CreateOSD = trt__CreateOSD;
  8260. soap_set_version(soap, 2); /* SOAP1.2 */
  8261. soap_serializeheader(soap);
  8262. soap_serialize___trt__CreateOSD_(soap, &soap_tmp___trt__CreateOSD_);
  8263. if (soap_begin_count(soap))
  8264. return soap->error;
  8265. if (soap->mode & SOAP_IO_LENGTH)
  8266. { if (soap_envelope_begin_out(soap)
  8267. || soap_putheader(soap)
  8268. || soap_body_begin_out(soap)
  8269. || soap_put___trt__CreateOSD_(soap, &soap_tmp___trt__CreateOSD_, "-trt:CreateOSD", NULL)
  8270. || soap_body_end_out(soap)
  8271. || soap_envelope_end_out(soap))
  8272. return soap->error;
  8273. }
  8274. if (soap_end_count(soap))
  8275. return soap->error;
  8276. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8277. || soap_envelope_begin_out(soap)
  8278. || soap_putheader(soap)
  8279. || soap_body_begin_out(soap)
  8280. || soap_put___trt__CreateOSD_(soap, &soap_tmp___trt__CreateOSD_, "-trt:CreateOSD", NULL)
  8281. || soap_body_end_out(soap)
  8282. || soap_envelope_end_out(soap)
  8283. || soap_end_send(soap))
  8284. return soap_closesock(soap);
  8285. if (!trt__CreateOSDResponse)
  8286. return soap_closesock(soap);
  8287. trt__CreateOSDResponse->soap_default(soap);
  8288. if (soap_begin_recv(soap)
  8289. || soap_envelope_begin_in(soap)
  8290. || soap_recv_header(soap)
  8291. || soap_body_begin_in(soap))
  8292. return soap_closesock(soap);
  8293. trt__CreateOSDResponse->soap_get(soap, "trt:CreateOSDResponse", "");
  8294. if (soap->error)
  8295. return soap_recv_fault(soap, 0);
  8296. if (soap_body_end_in(soap)
  8297. || soap_envelope_end_in(soap)
  8298. || soap_end_recv(soap))
  8299. return soap_closesock(soap);
  8300. return soap_closesock(soap);
  8301. }
  8302. int MediaBindingProxy::DeleteOSD_(const char *endpoint, const char *soap_action, _trt__DeleteOSD *trt__DeleteOSD, _trt__DeleteOSDResponse *trt__DeleteOSDResponse)
  8303. { struct soap *soap = this;
  8304. struct __trt__DeleteOSD_ soap_tmp___trt__DeleteOSD_;
  8305. if (endpoint)
  8306. soap_endpoint = endpoint;
  8307. if (soap_action == NULL)
  8308. soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteOSD";
  8309. soap_begin(soap);
  8310. soap->encodingStyle = NULL;
  8311. soap_tmp___trt__DeleteOSD_.trt__DeleteOSD = trt__DeleteOSD;
  8312. soap_set_version(soap, 2); /* SOAP1.2 */
  8313. soap_serializeheader(soap);
  8314. soap_serialize___trt__DeleteOSD_(soap, &soap_tmp___trt__DeleteOSD_);
  8315. if (soap_begin_count(soap))
  8316. return soap->error;
  8317. if (soap->mode & SOAP_IO_LENGTH)
  8318. { if (soap_envelope_begin_out(soap)
  8319. || soap_putheader(soap)
  8320. || soap_body_begin_out(soap)
  8321. || soap_put___trt__DeleteOSD_(soap, &soap_tmp___trt__DeleteOSD_, "-trt:DeleteOSD", NULL)
  8322. || soap_body_end_out(soap)
  8323. || soap_envelope_end_out(soap))
  8324. return soap->error;
  8325. }
  8326. if (soap_end_count(soap))
  8327. return soap->error;
  8328. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8329. || soap_envelope_begin_out(soap)
  8330. || soap_putheader(soap)
  8331. || soap_body_begin_out(soap)
  8332. || soap_put___trt__DeleteOSD_(soap, &soap_tmp___trt__DeleteOSD_, "-trt:DeleteOSD", NULL)
  8333. || soap_body_end_out(soap)
  8334. || soap_envelope_end_out(soap)
  8335. || soap_end_send(soap))
  8336. return soap_closesock(soap);
  8337. if (!trt__DeleteOSDResponse)
  8338. return soap_closesock(soap);
  8339. trt__DeleteOSDResponse->soap_default(soap);
  8340. if (soap_begin_recv(soap)
  8341. || soap_envelope_begin_in(soap)
  8342. || soap_recv_header(soap)
  8343. || soap_body_begin_in(soap))
  8344. return soap_closesock(soap);
  8345. trt__DeleteOSDResponse->soap_get(soap, "trt:DeleteOSDResponse", "");
  8346. if (soap->error)
  8347. return soap_recv_fault(soap, 0);
  8348. if (soap_body_end_in(soap)
  8349. || soap_envelope_end_in(soap)
  8350. || soap_end_recv(soap))
  8351. return soap_closesock(soap);
  8352. return soap_closesock(soap);
  8353. }
  8354. /* End of client proxy code */