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.

8853 lines
348 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapDeviceBindingProxy.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 "soapDeviceBindingProxy.h"
  10. DeviceBindingProxy::DeviceBindingProxy()
  11. { DeviceBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. DeviceBindingProxy::DeviceBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. DeviceBindingProxy::DeviceBindingProxy(const char *url)
  16. { DeviceBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. DeviceBindingProxy::DeviceBindingProxy(soap_mode iomode)
  20. { DeviceBindingProxy_init(iomode, iomode);
  21. }
  22. DeviceBindingProxy::DeviceBindingProxy(const char *url, soap_mode iomode)
  23. { DeviceBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. DeviceBindingProxy::DeviceBindingProxy(soap_mode imode, soap_mode omode)
  27. { DeviceBindingProxy_init(imode, omode);
  28. }
  29. DeviceBindingProxy::~DeviceBindingProxy()
  30. { }
  31. void DeviceBindingProxy::DeviceBindingProxy_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 DeviceBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void DeviceBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. DeviceBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void DeviceBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void DeviceBindingProxy::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 *DeviceBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *DeviceBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *DeviceBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *DeviceBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int DeviceBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int DeviceBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void DeviceBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void DeviceBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *DeviceBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int DeviceBindingProxy::GetServices(const char *endpoint, const char *soap_action, _tds__GetServices *tds__GetServices, _tds__GetServicesResponse *tds__GetServicesResponse)
  139. { struct soap *soap = this;
  140. struct __tds__GetServices soap_tmp___tds__GetServices;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetServices";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___tds__GetServices.tds__GetServices = tds__GetServices;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___tds__GetServices(soap, &soap_tmp___tds__GetServices);
  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___tds__GetServices(soap, &soap_tmp___tds__GetServices, "-tds:GetServices", 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___tds__GetServices(soap, &soap_tmp___tds__GetServices, "-tds:GetServices", 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 (!tds__GetServicesResponse)
  174. return soap_closesock(soap);
  175. tds__GetServicesResponse->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. tds__GetServicesResponse->soap_get(soap, "tds:GetServicesResponse", "");
  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 DeviceBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tds__GetServiceCapabilities *tds__GetServiceCapabilities, _tds__GetServiceCapabilitiesResponse *tds__GetServiceCapabilitiesResponse)
  191. { struct soap *soap = this;
  192. struct __tds__GetServiceCapabilities soap_tmp___tds__GetServiceCapabilities;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetServiceCapabilities";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___tds__GetServiceCapabilities.tds__GetServiceCapabilities = tds__GetServiceCapabilities;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___tds__GetServiceCapabilities(soap, &soap_tmp___tds__GetServiceCapabilities);
  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___tds__GetServiceCapabilities(soap, &soap_tmp___tds__GetServiceCapabilities, "-tds:GetServiceCapabilities", 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___tds__GetServiceCapabilities(soap, &soap_tmp___tds__GetServiceCapabilities, "-tds:GetServiceCapabilities", 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 (!tds__GetServiceCapabilitiesResponse)
  226. return soap_closesock(soap);
  227. tds__GetServiceCapabilitiesResponse->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. tds__GetServiceCapabilitiesResponse->soap_get(soap, "tds:GetServiceCapabilitiesResponse", "");
  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 DeviceBindingProxy::GetDeviceInformation(const char *endpoint, const char *soap_action, _tds__GetDeviceInformation *tds__GetDeviceInformation, _tds__GetDeviceInformationResponse *tds__GetDeviceInformationResponse)
  243. { struct soap *soap = this;
  244. struct __tds__GetDeviceInformation soap_tmp___tds__GetDeviceInformation;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDeviceInformation";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___tds__GetDeviceInformation.tds__GetDeviceInformation = tds__GetDeviceInformation;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___tds__GetDeviceInformation(soap, &soap_tmp___tds__GetDeviceInformation);
  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___tds__GetDeviceInformation(soap, &soap_tmp___tds__GetDeviceInformation, "-tds:GetDeviceInformation", 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___tds__GetDeviceInformation(soap, &soap_tmp___tds__GetDeviceInformation, "-tds:GetDeviceInformation", 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 (!tds__GetDeviceInformationResponse)
  278. return soap_closesock(soap);
  279. tds__GetDeviceInformationResponse->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. tds__GetDeviceInformationResponse->soap_get(soap, "tds:GetDeviceInformationResponse", "");
  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 DeviceBindingProxy::SetSystemDateAndTime(const char *endpoint, const char *soap_action, _tds__SetSystemDateAndTime *tds__SetSystemDateAndTime, _tds__SetSystemDateAndTimeResponse *tds__SetSystemDateAndTimeResponse)
  295. { struct soap *soap = this;
  296. struct __tds__SetSystemDateAndTime soap_tmp___tds__SetSystemDateAndTime;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetSystemDateAndTime";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___tds__SetSystemDateAndTime.tds__SetSystemDateAndTime = tds__SetSystemDateAndTime;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___tds__SetSystemDateAndTime(soap, &soap_tmp___tds__SetSystemDateAndTime);
  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___tds__SetSystemDateAndTime(soap, &soap_tmp___tds__SetSystemDateAndTime, "-tds:SetSystemDateAndTime", 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___tds__SetSystemDateAndTime(soap, &soap_tmp___tds__SetSystemDateAndTime, "-tds:SetSystemDateAndTime", 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 (!tds__SetSystemDateAndTimeResponse)
  330. return soap_closesock(soap);
  331. tds__SetSystemDateAndTimeResponse->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. tds__SetSystemDateAndTimeResponse->soap_get(soap, "tds:SetSystemDateAndTimeResponse", "");
  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 DeviceBindingProxy::GetSystemDateAndTime(const char *endpoint, const char *soap_action, _tds__GetSystemDateAndTime *tds__GetSystemDateAndTime, _tds__GetSystemDateAndTimeResponse *tds__GetSystemDateAndTimeResponse)
  347. { struct soap *soap = this;
  348. struct __tds__GetSystemDateAndTime soap_tmp___tds__GetSystemDateAndTime;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___tds__GetSystemDateAndTime.tds__GetSystemDateAndTime = tds__GetSystemDateAndTime;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___tds__GetSystemDateAndTime(soap, &soap_tmp___tds__GetSystemDateAndTime);
  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___tds__GetSystemDateAndTime(soap, &soap_tmp___tds__GetSystemDateAndTime, "-tds:GetSystemDateAndTime", 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___tds__GetSystemDateAndTime(soap, &soap_tmp___tds__GetSystemDateAndTime, "-tds:GetSystemDateAndTime", 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 (!tds__GetSystemDateAndTimeResponse)
  382. return soap_closesock(soap);
  383. tds__GetSystemDateAndTimeResponse->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. tds__GetSystemDateAndTimeResponse->soap_get(soap, "tds:GetSystemDateAndTimeResponse", "");
  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 DeviceBindingProxy::SetSystemFactoryDefault(const char *endpoint, const char *soap_action, _tds__SetSystemFactoryDefault *tds__SetSystemFactoryDefault, _tds__SetSystemFactoryDefaultResponse *tds__SetSystemFactoryDefaultResponse)
  399. { struct soap *soap = this;
  400. struct __tds__SetSystemFactoryDefault soap_tmp___tds__SetSystemFactoryDefault;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetSystemFactoryDefault";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___tds__SetSystemFactoryDefault.tds__SetSystemFactoryDefault = tds__SetSystemFactoryDefault;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___tds__SetSystemFactoryDefault(soap, &soap_tmp___tds__SetSystemFactoryDefault);
  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___tds__SetSystemFactoryDefault(soap, &soap_tmp___tds__SetSystemFactoryDefault, "-tds:SetSystemFactoryDefault", 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___tds__SetSystemFactoryDefault(soap, &soap_tmp___tds__SetSystemFactoryDefault, "-tds:SetSystemFactoryDefault", 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 (!tds__SetSystemFactoryDefaultResponse)
  434. return soap_closesock(soap);
  435. tds__SetSystemFactoryDefaultResponse->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. tds__SetSystemFactoryDefaultResponse->soap_get(soap, "tds:SetSystemFactoryDefaultResponse", "");
  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 DeviceBindingProxy::UpgradeSystemFirmware(const char *endpoint, const char *soap_action, _tds__UpgradeSystemFirmware *tds__UpgradeSystemFirmware, _tds__UpgradeSystemFirmwareResponse *tds__UpgradeSystemFirmwareResponse)
  451. { struct soap *soap = this;
  452. struct __tds__UpgradeSystemFirmware soap_tmp___tds__UpgradeSystemFirmware;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://www.onvif.org/ver10/device/wsdl/UpgradeSystemFirmware";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___tds__UpgradeSystemFirmware.tds__UpgradeSystemFirmware = tds__UpgradeSystemFirmware;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___tds__UpgradeSystemFirmware(soap, &soap_tmp___tds__UpgradeSystemFirmware);
  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___tds__UpgradeSystemFirmware(soap, &soap_tmp___tds__UpgradeSystemFirmware, "-tds:UpgradeSystemFirmware", 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___tds__UpgradeSystemFirmware(soap, &soap_tmp___tds__UpgradeSystemFirmware, "-tds:UpgradeSystemFirmware", 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 (!tds__UpgradeSystemFirmwareResponse)
  486. return soap_closesock(soap);
  487. tds__UpgradeSystemFirmwareResponse->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. tds__UpgradeSystemFirmwareResponse->soap_get(soap, "tds:UpgradeSystemFirmwareResponse", "");
  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 DeviceBindingProxy::SystemReboot(const char *endpoint, const char *soap_action, _tds__SystemReboot *tds__SystemReboot, _tds__SystemRebootResponse *tds__SystemRebootResponse)
  503. { struct soap *soap = this;
  504. struct __tds__SystemReboot soap_tmp___tds__SystemReboot;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://www.onvif.org/ver10/device/wsdl/SystemReboot";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___tds__SystemReboot.tds__SystemReboot = tds__SystemReboot;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___tds__SystemReboot(soap, &soap_tmp___tds__SystemReboot);
  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___tds__SystemReboot(soap, &soap_tmp___tds__SystemReboot, "-tds:SystemReboot", 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___tds__SystemReboot(soap, &soap_tmp___tds__SystemReboot, "-tds:SystemReboot", 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 (!tds__SystemRebootResponse)
  538. return soap_closesock(soap);
  539. tds__SystemRebootResponse->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. tds__SystemRebootResponse->soap_get(soap, "tds:SystemRebootResponse", "");
  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 DeviceBindingProxy::RestoreSystem(const char *endpoint, const char *soap_action, _tds__RestoreSystem *tds__RestoreSystem, _tds__RestoreSystemResponse *tds__RestoreSystemResponse)
  555. { struct soap *soap = this;
  556. struct __tds__RestoreSystem soap_tmp___tds__RestoreSystem;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://www.onvif.org/ver10/device/wsdl/RestoreSystem";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___tds__RestoreSystem.tds__RestoreSystem = tds__RestoreSystem;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___tds__RestoreSystem(soap, &soap_tmp___tds__RestoreSystem);
  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___tds__RestoreSystem(soap, &soap_tmp___tds__RestoreSystem, "-tds:RestoreSystem", 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___tds__RestoreSystem(soap, &soap_tmp___tds__RestoreSystem, "-tds:RestoreSystem", 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 (!tds__RestoreSystemResponse)
  590. return soap_closesock(soap);
  591. tds__RestoreSystemResponse->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. tds__RestoreSystemResponse->soap_get(soap, "tds:RestoreSystemResponse", "");
  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 DeviceBindingProxy::GetSystemBackup(const char *endpoint, const char *soap_action, _tds__GetSystemBackup *tds__GetSystemBackup, _tds__GetSystemBackupResponse *tds__GetSystemBackupResponse)
  607. { struct soap *soap = this;
  608. struct __tds__GetSystemBackup soap_tmp___tds__GetSystemBackup;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemBackup";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___tds__GetSystemBackup.tds__GetSystemBackup = tds__GetSystemBackup;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___tds__GetSystemBackup(soap, &soap_tmp___tds__GetSystemBackup);
  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___tds__GetSystemBackup(soap, &soap_tmp___tds__GetSystemBackup, "-tds:GetSystemBackup", 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___tds__GetSystemBackup(soap, &soap_tmp___tds__GetSystemBackup, "-tds:GetSystemBackup", 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 (!tds__GetSystemBackupResponse)
  642. return soap_closesock(soap);
  643. tds__GetSystemBackupResponse->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. tds__GetSystemBackupResponse->soap_get(soap, "tds:GetSystemBackupResponse", "");
  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 DeviceBindingProxy::GetSystemLog(const char *endpoint, const char *soap_action, _tds__GetSystemLog *tds__GetSystemLog, _tds__GetSystemLogResponse *tds__GetSystemLogResponse)
  659. { struct soap *soap = this;
  660. struct __tds__GetSystemLog soap_tmp___tds__GetSystemLog;
  661. if (endpoint)
  662. soap_endpoint = endpoint;
  663. if (soap_action == NULL)
  664. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemLog";
  665. soap_begin(soap);
  666. soap->encodingStyle = NULL;
  667. soap_tmp___tds__GetSystemLog.tds__GetSystemLog = tds__GetSystemLog;
  668. soap_set_version(soap, 2); /* SOAP1.2 */
  669. soap_serializeheader(soap);
  670. soap_serialize___tds__GetSystemLog(soap, &soap_tmp___tds__GetSystemLog);
  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___tds__GetSystemLog(soap, &soap_tmp___tds__GetSystemLog, "-tds:GetSystemLog", 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___tds__GetSystemLog(soap, &soap_tmp___tds__GetSystemLog, "-tds:GetSystemLog", 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 (!tds__GetSystemLogResponse)
  694. return soap_closesock(soap);
  695. tds__GetSystemLogResponse->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. tds__GetSystemLogResponse->soap_get(soap, "tds:GetSystemLogResponse", "");
  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 DeviceBindingProxy::GetSystemSupportInformation(const char *endpoint, const char *soap_action, _tds__GetSystemSupportInformation *tds__GetSystemSupportInformation, _tds__GetSystemSupportInformationResponse *tds__GetSystemSupportInformationResponse)
  711. { struct soap *soap = this;
  712. struct __tds__GetSystemSupportInformation soap_tmp___tds__GetSystemSupportInformation;
  713. if (endpoint)
  714. soap_endpoint = endpoint;
  715. if (soap_action == NULL)
  716. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemSupportInformation";
  717. soap_begin(soap);
  718. soap->encodingStyle = NULL;
  719. soap_tmp___tds__GetSystemSupportInformation.tds__GetSystemSupportInformation = tds__GetSystemSupportInformation;
  720. soap_set_version(soap, 2); /* SOAP1.2 */
  721. soap_serializeheader(soap);
  722. soap_serialize___tds__GetSystemSupportInformation(soap, &soap_tmp___tds__GetSystemSupportInformation);
  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___tds__GetSystemSupportInformation(soap, &soap_tmp___tds__GetSystemSupportInformation, "-tds:GetSystemSupportInformation", 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___tds__GetSystemSupportInformation(soap, &soap_tmp___tds__GetSystemSupportInformation, "-tds:GetSystemSupportInformation", 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 (!tds__GetSystemSupportInformationResponse)
  746. return soap_closesock(soap);
  747. tds__GetSystemSupportInformationResponse->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. tds__GetSystemSupportInformationResponse->soap_get(soap, "tds:GetSystemSupportInformationResponse", "");
  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 DeviceBindingProxy::GetScopes(const char *endpoint, const char *soap_action, _tds__GetScopes *tds__GetScopes, _tds__GetScopesResponse *tds__GetScopesResponse)
  763. { struct soap *soap = this;
  764. struct __tds__GetScopes soap_tmp___tds__GetScopes;
  765. if (endpoint)
  766. soap_endpoint = endpoint;
  767. if (soap_action == NULL)
  768. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetScopes";
  769. soap_begin(soap);
  770. soap->encodingStyle = NULL;
  771. soap_tmp___tds__GetScopes.tds__GetScopes = tds__GetScopes;
  772. soap_set_version(soap, 2); /* SOAP1.2 */
  773. soap_serializeheader(soap);
  774. soap_serialize___tds__GetScopes(soap, &soap_tmp___tds__GetScopes);
  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___tds__GetScopes(soap, &soap_tmp___tds__GetScopes, "-tds:GetScopes", 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___tds__GetScopes(soap, &soap_tmp___tds__GetScopes, "-tds:GetScopes", 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 (!tds__GetScopesResponse)
  798. return soap_closesock(soap);
  799. tds__GetScopesResponse->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. tds__GetScopesResponse->soap_get(soap, "tds:GetScopesResponse", "");
  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 DeviceBindingProxy::SetScopes(const char *endpoint, const char *soap_action, _tds__SetScopes *tds__SetScopes, _tds__SetScopesResponse *tds__SetScopesResponse)
  815. { struct soap *soap = this;
  816. struct __tds__SetScopes soap_tmp___tds__SetScopes;
  817. if (endpoint)
  818. soap_endpoint = endpoint;
  819. if (soap_action == NULL)
  820. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetScopes";
  821. soap_begin(soap);
  822. soap->encodingStyle = NULL;
  823. soap_tmp___tds__SetScopes.tds__SetScopes = tds__SetScopes;
  824. soap_set_version(soap, 2); /* SOAP1.2 */
  825. soap_serializeheader(soap);
  826. soap_serialize___tds__SetScopes(soap, &soap_tmp___tds__SetScopes);
  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___tds__SetScopes(soap, &soap_tmp___tds__SetScopes, "-tds:SetScopes", 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___tds__SetScopes(soap, &soap_tmp___tds__SetScopes, "-tds:SetScopes", 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 (!tds__SetScopesResponse)
  850. return soap_closesock(soap);
  851. tds__SetScopesResponse->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. tds__SetScopesResponse->soap_get(soap, "tds:SetScopesResponse", "");
  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 DeviceBindingProxy::AddScopes(const char *endpoint, const char *soap_action, _tds__AddScopes *tds__AddScopes, _tds__AddScopesResponse *tds__AddScopesResponse)
  867. { struct soap *soap = this;
  868. struct __tds__AddScopes soap_tmp___tds__AddScopes;
  869. if (endpoint)
  870. soap_endpoint = endpoint;
  871. if (soap_action == NULL)
  872. soap_action = "http://www.onvif.org/ver10/device/wsdl/AddScopes";
  873. soap_begin(soap);
  874. soap->encodingStyle = NULL;
  875. soap_tmp___tds__AddScopes.tds__AddScopes = tds__AddScopes;
  876. soap_set_version(soap, 2); /* SOAP1.2 */
  877. soap_serializeheader(soap);
  878. soap_serialize___tds__AddScopes(soap, &soap_tmp___tds__AddScopes);
  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___tds__AddScopes(soap, &soap_tmp___tds__AddScopes, "-tds:AddScopes", 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___tds__AddScopes(soap, &soap_tmp___tds__AddScopes, "-tds:AddScopes", 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 (!tds__AddScopesResponse)
  902. return soap_closesock(soap);
  903. tds__AddScopesResponse->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. tds__AddScopesResponse->soap_get(soap, "tds:AddScopesResponse", "");
  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 DeviceBindingProxy::RemoveScopes(const char *endpoint, const char *soap_action, _tds__RemoveScopes *tds__RemoveScopes, _tds__RemoveScopesResponse *tds__RemoveScopesResponse)
  919. { struct soap *soap = this;
  920. struct __tds__RemoveScopes soap_tmp___tds__RemoveScopes;
  921. if (endpoint)
  922. soap_endpoint = endpoint;
  923. if (soap_action == NULL)
  924. soap_action = "http://www.onvif.org/ver10/device/wsdl/RemoveScopes";
  925. soap_begin(soap);
  926. soap->encodingStyle = NULL;
  927. soap_tmp___tds__RemoveScopes.tds__RemoveScopes = tds__RemoveScopes;
  928. soap_set_version(soap, 2); /* SOAP1.2 */
  929. soap_serializeheader(soap);
  930. soap_serialize___tds__RemoveScopes(soap, &soap_tmp___tds__RemoveScopes);
  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___tds__RemoveScopes(soap, &soap_tmp___tds__RemoveScopes, "-tds:RemoveScopes", 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___tds__RemoveScopes(soap, &soap_tmp___tds__RemoveScopes, "-tds:RemoveScopes", 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 (!tds__RemoveScopesResponse)
  954. return soap_closesock(soap);
  955. tds__RemoveScopesResponse->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. tds__RemoveScopesResponse->soap_get(soap, "tds:RemoveScopesResponse", "");
  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 DeviceBindingProxy::GetDiscoveryMode(const char *endpoint, const char *soap_action, _tds__GetDiscoveryMode *tds__GetDiscoveryMode, _tds__GetDiscoveryModeResponse *tds__GetDiscoveryModeResponse)
  971. { struct soap *soap = this;
  972. struct __tds__GetDiscoveryMode soap_tmp___tds__GetDiscoveryMode;
  973. if (endpoint)
  974. soap_endpoint = endpoint;
  975. if (soap_action == NULL)
  976. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDiscoveryMode";
  977. soap_begin(soap);
  978. soap->encodingStyle = NULL;
  979. soap_tmp___tds__GetDiscoveryMode.tds__GetDiscoveryMode = tds__GetDiscoveryMode;
  980. soap_set_version(soap, 2); /* SOAP1.2 */
  981. soap_serializeheader(soap);
  982. soap_serialize___tds__GetDiscoveryMode(soap, &soap_tmp___tds__GetDiscoveryMode);
  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___tds__GetDiscoveryMode(soap, &soap_tmp___tds__GetDiscoveryMode, "-tds:GetDiscoveryMode", 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___tds__GetDiscoveryMode(soap, &soap_tmp___tds__GetDiscoveryMode, "-tds:GetDiscoveryMode", 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 (!tds__GetDiscoveryModeResponse)
  1006. return soap_closesock(soap);
  1007. tds__GetDiscoveryModeResponse->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. tds__GetDiscoveryModeResponse->soap_get(soap, "tds:GetDiscoveryModeResponse", "");
  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 DeviceBindingProxy::SetDiscoveryMode(const char *endpoint, const char *soap_action, _tds__SetDiscoveryMode *tds__SetDiscoveryMode, _tds__SetDiscoveryModeResponse *tds__SetDiscoveryModeResponse)
  1023. { struct soap *soap = this;
  1024. struct __tds__SetDiscoveryMode soap_tmp___tds__SetDiscoveryMode;
  1025. if (endpoint)
  1026. soap_endpoint = endpoint;
  1027. if (soap_action == NULL)
  1028. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDiscoveryMode";
  1029. soap_begin(soap);
  1030. soap->encodingStyle = NULL;
  1031. soap_tmp___tds__SetDiscoveryMode.tds__SetDiscoveryMode = tds__SetDiscoveryMode;
  1032. soap_set_version(soap, 2); /* SOAP1.2 */
  1033. soap_serializeheader(soap);
  1034. soap_serialize___tds__SetDiscoveryMode(soap, &soap_tmp___tds__SetDiscoveryMode);
  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___tds__SetDiscoveryMode(soap, &soap_tmp___tds__SetDiscoveryMode, "-tds:SetDiscoveryMode", 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___tds__SetDiscoveryMode(soap, &soap_tmp___tds__SetDiscoveryMode, "-tds:SetDiscoveryMode", 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 (!tds__SetDiscoveryModeResponse)
  1058. return soap_closesock(soap);
  1059. tds__SetDiscoveryModeResponse->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. tds__SetDiscoveryModeResponse->soap_get(soap, "tds:SetDiscoveryModeResponse", "");
  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 DeviceBindingProxy::GetRemoteDiscoveryMode(const char *endpoint, const char *soap_action, _tds__GetRemoteDiscoveryMode *tds__GetRemoteDiscoveryMode, _tds__GetRemoteDiscoveryModeResponse *tds__GetRemoteDiscoveryModeResponse)
  1075. { struct soap *soap = this;
  1076. struct __tds__GetRemoteDiscoveryMode soap_tmp___tds__GetRemoteDiscoveryMode;
  1077. if (endpoint)
  1078. soap_endpoint = endpoint;
  1079. if (soap_action == NULL)
  1080. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRemoteDiscoveryMode";
  1081. soap_begin(soap);
  1082. soap->encodingStyle = NULL;
  1083. soap_tmp___tds__GetRemoteDiscoveryMode.tds__GetRemoteDiscoveryMode = tds__GetRemoteDiscoveryMode;
  1084. soap_set_version(soap, 2); /* SOAP1.2 */
  1085. soap_serializeheader(soap);
  1086. soap_serialize___tds__GetRemoteDiscoveryMode(soap, &soap_tmp___tds__GetRemoteDiscoveryMode);
  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___tds__GetRemoteDiscoveryMode(soap, &soap_tmp___tds__GetRemoteDiscoveryMode, "-tds:GetRemoteDiscoveryMode", 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___tds__GetRemoteDiscoveryMode(soap, &soap_tmp___tds__GetRemoteDiscoveryMode, "-tds:GetRemoteDiscoveryMode", 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 (!tds__GetRemoteDiscoveryModeResponse)
  1110. return soap_closesock(soap);
  1111. tds__GetRemoteDiscoveryModeResponse->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. tds__GetRemoteDiscoveryModeResponse->soap_get(soap, "tds:GetRemoteDiscoveryModeResponse", "");
  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 DeviceBindingProxy::SetRemoteDiscoveryMode(const char *endpoint, const char *soap_action, _tds__SetRemoteDiscoveryMode *tds__SetRemoteDiscoveryMode, _tds__SetRemoteDiscoveryModeResponse *tds__SetRemoteDiscoveryModeResponse)
  1127. { struct soap *soap = this;
  1128. struct __tds__SetRemoteDiscoveryMode soap_tmp___tds__SetRemoteDiscoveryMode;
  1129. if (endpoint)
  1130. soap_endpoint = endpoint;
  1131. if (soap_action == NULL)
  1132. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRemoteDiscoveryMode";
  1133. soap_begin(soap);
  1134. soap->encodingStyle = NULL;
  1135. soap_tmp___tds__SetRemoteDiscoveryMode.tds__SetRemoteDiscoveryMode = tds__SetRemoteDiscoveryMode;
  1136. soap_set_version(soap, 2); /* SOAP1.2 */
  1137. soap_serializeheader(soap);
  1138. soap_serialize___tds__SetRemoteDiscoveryMode(soap, &soap_tmp___tds__SetRemoteDiscoveryMode);
  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___tds__SetRemoteDiscoveryMode(soap, &soap_tmp___tds__SetRemoteDiscoveryMode, "-tds:SetRemoteDiscoveryMode", 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___tds__SetRemoteDiscoveryMode(soap, &soap_tmp___tds__SetRemoteDiscoveryMode, "-tds:SetRemoteDiscoveryMode", 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 (!tds__SetRemoteDiscoveryModeResponse)
  1162. return soap_closesock(soap);
  1163. tds__SetRemoteDiscoveryModeResponse->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. tds__SetRemoteDiscoveryModeResponse->soap_get(soap, "tds:SetRemoteDiscoveryModeResponse", "");
  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 DeviceBindingProxy::GetDPAddresses(const char *endpoint, const char *soap_action, _tds__GetDPAddresses *tds__GetDPAddresses, _tds__GetDPAddressesResponse *tds__GetDPAddressesResponse)
  1179. { struct soap *soap = this;
  1180. struct __tds__GetDPAddresses soap_tmp___tds__GetDPAddresses;
  1181. if (endpoint)
  1182. soap_endpoint = endpoint;
  1183. if (soap_action == NULL)
  1184. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDPAddresses";
  1185. soap_begin(soap);
  1186. soap->encodingStyle = NULL;
  1187. soap_tmp___tds__GetDPAddresses.tds__GetDPAddresses = tds__GetDPAddresses;
  1188. soap_set_version(soap, 2); /* SOAP1.2 */
  1189. soap_serializeheader(soap);
  1190. soap_serialize___tds__GetDPAddresses(soap, &soap_tmp___tds__GetDPAddresses);
  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___tds__GetDPAddresses(soap, &soap_tmp___tds__GetDPAddresses, "-tds:GetDPAddresses", 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___tds__GetDPAddresses(soap, &soap_tmp___tds__GetDPAddresses, "-tds:GetDPAddresses", 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 (!tds__GetDPAddressesResponse)
  1214. return soap_closesock(soap);
  1215. tds__GetDPAddressesResponse->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. tds__GetDPAddressesResponse->soap_get(soap, "tds:GetDPAddressesResponse", "");
  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 DeviceBindingProxy::GetEndpointReference(const char *endpoint, const char *soap_action, _tds__GetEndpointReference *tds__GetEndpointReference, _tds__GetEndpointReferenceResponse *tds__GetEndpointReferenceResponse)
  1231. { struct soap *soap = this;
  1232. struct __tds__GetEndpointReference soap_tmp___tds__GetEndpointReference;
  1233. if (endpoint)
  1234. soap_endpoint = endpoint;
  1235. if (soap_action == NULL)
  1236. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetEndpointReference";
  1237. soap_begin(soap);
  1238. soap->encodingStyle = NULL;
  1239. soap_tmp___tds__GetEndpointReference.tds__GetEndpointReference = tds__GetEndpointReference;
  1240. soap_set_version(soap, 2); /* SOAP1.2 */
  1241. soap_serializeheader(soap);
  1242. soap_serialize___tds__GetEndpointReference(soap, &soap_tmp___tds__GetEndpointReference);
  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___tds__GetEndpointReference(soap, &soap_tmp___tds__GetEndpointReference, "-tds:GetEndpointReference", 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___tds__GetEndpointReference(soap, &soap_tmp___tds__GetEndpointReference, "-tds:GetEndpointReference", 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 (!tds__GetEndpointReferenceResponse)
  1266. return soap_closesock(soap);
  1267. tds__GetEndpointReferenceResponse->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. tds__GetEndpointReferenceResponse->soap_get(soap, "tds:GetEndpointReferenceResponse", "");
  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 DeviceBindingProxy::GetRemoteUser(const char *endpoint, const char *soap_action, _tds__GetRemoteUser *tds__GetRemoteUser, _tds__GetRemoteUserResponse *tds__GetRemoteUserResponse)
  1283. { struct soap *soap = this;
  1284. struct __tds__GetRemoteUser soap_tmp___tds__GetRemoteUser;
  1285. if (endpoint)
  1286. soap_endpoint = endpoint;
  1287. if (soap_action == NULL)
  1288. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRemoteUser";
  1289. soap_begin(soap);
  1290. soap->encodingStyle = NULL;
  1291. soap_tmp___tds__GetRemoteUser.tds__GetRemoteUser = tds__GetRemoteUser;
  1292. soap_set_version(soap, 2); /* SOAP1.2 */
  1293. soap_serializeheader(soap);
  1294. soap_serialize___tds__GetRemoteUser(soap, &soap_tmp___tds__GetRemoteUser);
  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___tds__GetRemoteUser(soap, &soap_tmp___tds__GetRemoteUser, "-tds:GetRemoteUser", 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___tds__GetRemoteUser(soap, &soap_tmp___tds__GetRemoteUser, "-tds:GetRemoteUser", 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 (!tds__GetRemoteUserResponse)
  1318. return soap_closesock(soap);
  1319. tds__GetRemoteUserResponse->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. tds__GetRemoteUserResponse->soap_get(soap, "tds:GetRemoteUserResponse", "");
  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 DeviceBindingProxy::SetRemoteUser(const char *endpoint, const char *soap_action, _tds__SetRemoteUser *tds__SetRemoteUser, _tds__SetRemoteUserResponse *tds__SetRemoteUserResponse)
  1335. { struct soap *soap = this;
  1336. struct __tds__SetRemoteUser soap_tmp___tds__SetRemoteUser;
  1337. if (endpoint)
  1338. soap_endpoint = endpoint;
  1339. if (soap_action == NULL)
  1340. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRemoteUser";
  1341. soap_begin(soap);
  1342. soap->encodingStyle = NULL;
  1343. soap_tmp___tds__SetRemoteUser.tds__SetRemoteUser = tds__SetRemoteUser;
  1344. soap_set_version(soap, 2); /* SOAP1.2 */
  1345. soap_serializeheader(soap);
  1346. soap_serialize___tds__SetRemoteUser(soap, &soap_tmp___tds__SetRemoteUser);
  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___tds__SetRemoteUser(soap, &soap_tmp___tds__SetRemoteUser, "-tds:SetRemoteUser", 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___tds__SetRemoteUser(soap, &soap_tmp___tds__SetRemoteUser, "-tds:SetRemoteUser", 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 (!tds__SetRemoteUserResponse)
  1370. return soap_closesock(soap);
  1371. tds__SetRemoteUserResponse->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. tds__SetRemoteUserResponse->soap_get(soap, "tds:SetRemoteUserResponse", "");
  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 DeviceBindingProxy::GetUsers(const char *endpoint, const char *soap_action, _tds__GetUsers *tds__GetUsers, _tds__GetUsersResponse *tds__GetUsersResponse)
  1387. { struct soap *soap = this;
  1388. struct __tds__GetUsers soap_tmp___tds__GetUsers;
  1389. if (endpoint)
  1390. soap_endpoint = endpoint;
  1391. if (soap_action == NULL)
  1392. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetUsers";
  1393. soap_begin(soap);
  1394. soap->encodingStyle = NULL;
  1395. soap_tmp___tds__GetUsers.tds__GetUsers = tds__GetUsers;
  1396. soap_set_version(soap, 2); /* SOAP1.2 */
  1397. soap_serializeheader(soap);
  1398. soap_serialize___tds__GetUsers(soap, &soap_tmp___tds__GetUsers);
  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___tds__GetUsers(soap, &soap_tmp___tds__GetUsers, "-tds:GetUsers", 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___tds__GetUsers(soap, &soap_tmp___tds__GetUsers, "-tds:GetUsers", 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 (!tds__GetUsersResponse)
  1422. return soap_closesock(soap);
  1423. tds__GetUsersResponse->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. tds__GetUsersResponse->soap_get(soap, "tds:GetUsersResponse", "");
  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 DeviceBindingProxy::CreateUsers(const char *endpoint, const char *soap_action, _tds__CreateUsers *tds__CreateUsers, _tds__CreateUsersResponse *tds__CreateUsersResponse)
  1439. { struct soap *soap = this;
  1440. struct __tds__CreateUsers soap_tmp___tds__CreateUsers;
  1441. if (endpoint)
  1442. soap_endpoint = endpoint;
  1443. if (soap_action == NULL)
  1444. soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateUsers";
  1445. soap_begin(soap);
  1446. soap->encodingStyle = NULL;
  1447. soap_tmp___tds__CreateUsers.tds__CreateUsers = tds__CreateUsers;
  1448. soap_set_version(soap, 2); /* SOAP1.2 */
  1449. soap_serializeheader(soap);
  1450. soap_serialize___tds__CreateUsers(soap, &soap_tmp___tds__CreateUsers);
  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___tds__CreateUsers(soap, &soap_tmp___tds__CreateUsers, "-tds:CreateUsers", 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___tds__CreateUsers(soap, &soap_tmp___tds__CreateUsers, "-tds:CreateUsers", 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 (!tds__CreateUsersResponse)
  1474. return soap_closesock(soap);
  1475. tds__CreateUsersResponse->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. tds__CreateUsersResponse->soap_get(soap, "tds:CreateUsersResponse", "");
  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 DeviceBindingProxy::DeleteUsers(const char *endpoint, const char *soap_action, _tds__DeleteUsers *tds__DeleteUsers, _tds__DeleteUsersResponse *tds__DeleteUsersResponse)
  1491. { struct soap *soap = this;
  1492. struct __tds__DeleteUsers soap_tmp___tds__DeleteUsers;
  1493. if (endpoint)
  1494. soap_endpoint = endpoint;
  1495. if (soap_action == NULL)
  1496. soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteUsers";
  1497. soap_begin(soap);
  1498. soap->encodingStyle = NULL;
  1499. soap_tmp___tds__DeleteUsers.tds__DeleteUsers = tds__DeleteUsers;
  1500. soap_set_version(soap, 2); /* SOAP1.2 */
  1501. soap_serializeheader(soap);
  1502. soap_serialize___tds__DeleteUsers(soap, &soap_tmp___tds__DeleteUsers);
  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___tds__DeleteUsers(soap, &soap_tmp___tds__DeleteUsers, "-tds:DeleteUsers", 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___tds__DeleteUsers(soap, &soap_tmp___tds__DeleteUsers, "-tds:DeleteUsers", 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 (!tds__DeleteUsersResponse)
  1526. return soap_closesock(soap);
  1527. tds__DeleteUsersResponse->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. tds__DeleteUsersResponse->soap_get(soap, "tds:DeleteUsersResponse", "");
  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 DeviceBindingProxy::SetUser(const char *endpoint, const char *soap_action, _tds__SetUser *tds__SetUser, _tds__SetUserResponse *tds__SetUserResponse)
  1543. { struct soap *soap = this;
  1544. struct __tds__SetUser soap_tmp___tds__SetUser;
  1545. if (endpoint)
  1546. soap_endpoint = endpoint;
  1547. if (soap_action == NULL)
  1548. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetUser";
  1549. soap_begin(soap);
  1550. soap->encodingStyle = NULL;
  1551. soap_tmp___tds__SetUser.tds__SetUser = tds__SetUser;
  1552. soap_set_version(soap, 2); /* SOAP1.2 */
  1553. soap_serializeheader(soap);
  1554. soap_serialize___tds__SetUser(soap, &soap_tmp___tds__SetUser);
  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___tds__SetUser(soap, &soap_tmp___tds__SetUser, "-tds:SetUser", 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___tds__SetUser(soap, &soap_tmp___tds__SetUser, "-tds:SetUser", 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 (!tds__SetUserResponse)
  1578. return soap_closesock(soap);
  1579. tds__SetUserResponse->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. tds__SetUserResponse->soap_get(soap, "tds:SetUserResponse", "");
  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 DeviceBindingProxy::GetWsdlUrl(const char *endpoint, const char *soap_action, _tds__GetWsdlUrl *tds__GetWsdlUrl, _tds__GetWsdlUrlResponse *tds__GetWsdlUrlResponse)
  1595. { struct soap *soap = this;
  1596. struct __tds__GetWsdlUrl soap_tmp___tds__GetWsdlUrl;
  1597. if (endpoint)
  1598. soap_endpoint = endpoint;
  1599. if (soap_action == NULL)
  1600. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetWsdlUrl";
  1601. soap_begin(soap);
  1602. soap->encodingStyle = NULL;
  1603. soap_tmp___tds__GetWsdlUrl.tds__GetWsdlUrl = tds__GetWsdlUrl;
  1604. soap_set_version(soap, 2); /* SOAP1.2 */
  1605. soap_serializeheader(soap);
  1606. soap_serialize___tds__GetWsdlUrl(soap, &soap_tmp___tds__GetWsdlUrl);
  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___tds__GetWsdlUrl(soap, &soap_tmp___tds__GetWsdlUrl, "-tds:GetWsdlUrl", 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___tds__GetWsdlUrl(soap, &soap_tmp___tds__GetWsdlUrl, "-tds:GetWsdlUrl", 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 (!tds__GetWsdlUrlResponse)
  1630. return soap_closesock(soap);
  1631. tds__GetWsdlUrlResponse->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. tds__GetWsdlUrlResponse->soap_get(soap, "tds:GetWsdlUrlResponse", "");
  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 DeviceBindingProxy::GetCapabilities(const char *endpoint, const char *soap_action, _tds__GetCapabilities *tds__GetCapabilities, _tds__GetCapabilitiesResponse *tds__GetCapabilitiesResponse)
  1647. { struct soap *soap = this;
  1648. struct __tds__GetCapabilities soap_tmp___tds__GetCapabilities;
  1649. if (endpoint)
  1650. soap_endpoint = endpoint;
  1651. if (soap_action == NULL)
  1652. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCapabilities";
  1653. soap_begin(soap);
  1654. soap->encodingStyle = NULL;
  1655. soap_tmp___tds__GetCapabilities.tds__GetCapabilities = tds__GetCapabilities;
  1656. soap_set_version(soap, 2); /* SOAP1.2 */
  1657. soap_serializeheader(soap);
  1658. soap_serialize___tds__GetCapabilities(soap, &soap_tmp___tds__GetCapabilities);
  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___tds__GetCapabilities(soap, &soap_tmp___tds__GetCapabilities, "-tds:GetCapabilities", 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___tds__GetCapabilities(soap, &soap_tmp___tds__GetCapabilities, "-tds:GetCapabilities", 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 (!tds__GetCapabilitiesResponse)
  1682. return soap_closesock(soap);
  1683. tds__GetCapabilitiesResponse->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. tds__GetCapabilitiesResponse->soap_get(soap, "tds:GetCapabilitiesResponse", "");
  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 DeviceBindingProxy::SetDPAddresses(const char *endpoint, const char *soap_action, _tds__SetDPAddresses *tds__SetDPAddresses, _tds__SetDPAddressesResponse *tds__SetDPAddressesResponse)
  1699. { struct soap *soap = this;
  1700. struct __tds__SetDPAddresses soap_tmp___tds__SetDPAddresses;
  1701. if (endpoint)
  1702. soap_endpoint = endpoint;
  1703. if (soap_action == NULL)
  1704. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDPAddresses";
  1705. soap_begin(soap);
  1706. soap->encodingStyle = NULL;
  1707. soap_tmp___tds__SetDPAddresses.tds__SetDPAddresses = tds__SetDPAddresses;
  1708. soap_set_version(soap, 2); /* SOAP1.2 */
  1709. soap_serializeheader(soap);
  1710. soap_serialize___tds__SetDPAddresses(soap, &soap_tmp___tds__SetDPAddresses);
  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___tds__SetDPAddresses(soap, &soap_tmp___tds__SetDPAddresses, "-tds:SetDPAddresses", 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___tds__SetDPAddresses(soap, &soap_tmp___tds__SetDPAddresses, "-tds:SetDPAddresses", 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 (!tds__SetDPAddressesResponse)
  1734. return soap_closesock(soap);
  1735. tds__SetDPAddressesResponse->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. tds__SetDPAddressesResponse->soap_get(soap, "tds:SetDPAddressesResponse", "");
  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 DeviceBindingProxy::GetHostname(const char *endpoint, const char *soap_action, _tds__GetHostname *tds__GetHostname, _tds__GetHostnameResponse *tds__GetHostnameResponse)
  1751. { struct soap *soap = this;
  1752. struct __tds__GetHostname soap_tmp___tds__GetHostname;
  1753. if (endpoint)
  1754. soap_endpoint = endpoint;
  1755. if (soap_action == NULL)
  1756. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetHostname";
  1757. soap_begin(soap);
  1758. soap->encodingStyle = NULL;
  1759. soap_tmp___tds__GetHostname.tds__GetHostname = tds__GetHostname;
  1760. soap_set_version(soap, 2); /* SOAP1.2 */
  1761. soap_serializeheader(soap);
  1762. soap_serialize___tds__GetHostname(soap, &soap_tmp___tds__GetHostname);
  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___tds__GetHostname(soap, &soap_tmp___tds__GetHostname, "-tds:GetHostname", 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___tds__GetHostname(soap, &soap_tmp___tds__GetHostname, "-tds:GetHostname", 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 (!tds__GetHostnameResponse)
  1786. return soap_closesock(soap);
  1787. tds__GetHostnameResponse->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. tds__GetHostnameResponse->soap_get(soap, "tds:GetHostnameResponse", "");
  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 DeviceBindingProxy::SetHostname(const char *endpoint, const char *soap_action, _tds__SetHostname *tds__SetHostname, _tds__SetHostnameResponse *tds__SetHostnameResponse)
  1803. { struct soap *soap = this;
  1804. struct __tds__SetHostname soap_tmp___tds__SetHostname;
  1805. if (endpoint)
  1806. soap_endpoint = endpoint;
  1807. if (soap_action == NULL)
  1808. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetHostname";
  1809. soap_begin(soap);
  1810. soap->encodingStyle = NULL;
  1811. soap_tmp___tds__SetHostname.tds__SetHostname = tds__SetHostname;
  1812. soap_set_version(soap, 2); /* SOAP1.2 */
  1813. soap_serializeheader(soap);
  1814. soap_serialize___tds__SetHostname(soap, &soap_tmp___tds__SetHostname);
  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___tds__SetHostname(soap, &soap_tmp___tds__SetHostname, "-tds:SetHostname", 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___tds__SetHostname(soap, &soap_tmp___tds__SetHostname, "-tds:SetHostname", 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 (!tds__SetHostnameResponse)
  1838. return soap_closesock(soap);
  1839. tds__SetHostnameResponse->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. tds__SetHostnameResponse->soap_get(soap, "tds:SetHostnameResponse", "");
  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 DeviceBindingProxy::SetHostnameFromDHCP(const char *endpoint, const char *soap_action, _tds__SetHostnameFromDHCP *tds__SetHostnameFromDHCP, _tds__SetHostnameFromDHCPResponse *tds__SetHostnameFromDHCPResponse)
  1855. { struct soap *soap = this;
  1856. struct __tds__SetHostnameFromDHCP soap_tmp___tds__SetHostnameFromDHCP;
  1857. if (endpoint)
  1858. soap_endpoint = endpoint;
  1859. if (soap_action == NULL)
  1860. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetHostnameFromDHCP";
  1861. soap_begin(soap);
  1862. soap->encodingStyle = NULL;
  1863. soap_tmp___tds__SetHostnameFromDHCP.tds__SetHostnameFromDHCP = tds__SetHostnameFromDHCP;
  1864. soap_set_version(soap, 2); /* SOAP1.2 */
  1865. soap_serializeheader(soap);
  1866. soap_serialize___tds__SetHostnameFromDHCP(soap, &soap_tmp___tds__SetHostnameFromDHCP);
  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___tds__SetHostnameFromDHCP(soap, &soap_tmp___tds__SetHostnameFromDHCP, "-tds:SetHostnameFromDHCP", 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___tds__SetHostnameFromDHCP(soap, &soap_tmp___tds__SetHostnameFromDHCP, "-tds:SetHostnameFromDHCP", 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 (!tds__SetHostnameFromDHCPResponse)
  1890. return soap_closesock(soap);
  1891. tds__SetHostnameFromDHCPResponse->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. tds__SetHostnameFromDHCPResponse->soap_get(soap, "tds:SetHostnameFromDHCPResponse", "");
  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 DeviceBindingProxy::GetDNS(const char *endpoint, const char *soap_action, _tds__GetDNS *tds__GetDNS, _tds__GetDNSResponse *tds__GetDNSResponse)
  1907. { struct soap *soap = this;
  1908. struct __tds__GetDNS soap_tmp___tds__GetDNS;
  1909. if (endpoint)
  1910. soap_endpoint = endpoint;
  1911. if (soap_action == NULL)
  1912. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDNS";
  1913. soap_begin(soap);
  1914. soap->encodingStyle = NULL;
  1915. soap_tmp___tds__GetDNS.tds__GetDNS = tds__GetDNS;
  1916. soap_set_version(soap, 2); /* SOAP1.2 */
  1917. soap_serializeheader(soap);
  1918. soap_serialize___tds__GetDNS(soap, &soap_tmp___tds__GetDNS);
  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___tds__GetDNS(soap, &soap_tmp___tds__GetDNS, "-tds:GetDNS", 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___tds__GetDNS(soap, &soap_tmp___tds__GetDNS, "-tds:GetDNS", 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 (!tds__GetDNSResponse)
  1942. return soap_closesock(soap);
  1943. tds__GetDNSResponse->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. tds__GetDNSResponse->soap_get(soap, "tds:GetDNSResponse", "");
  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 DeviceBindingProxy::SetDNS(const char *endpoint, const char *soap_action, _tds__SetDNS *tds__SetDNS, _tds__SetDNSResponse *tds__SetDNSResponse)
  1959. { struct soap *soap = this;
  1960. struct __tds__SetDNS soap_tmp___tds__SetDNS;
  1961. if (endpoint)
  1962. soap_endpoint = endpoint;
  1963. if (soap_action == NULL)
  1964. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDNS";
  1965. soap_begin(soap);
  1966. soap->encodingStyle = NULL;
  1967. soap_tmp___tds__SetDNS.tds__SetDNS = tds__SetDNS;
  1968. soap_set_version(soap, 2); /* SOAP1.2 */
  1969. soap_serializeheader(soap);
  1970. soap_serialize___tds__SetDNS(soap, &soap_tmp___tds__SetDNS);
  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___tds__SetDNS(soap, &soap_tmp___tds__SetDNS, "-tds:SetDNS", 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___tds__SetDNS(soap, &soap_tmp___tds__SetDNS, "-tds:SetDNS", 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 (!tds__SetDNSResponse)
  1994. return soap_closesock(soap);
  1995. tds__SetDNSResponse->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. tds__SetDNSResponse->soap_get(soap, "tds:SetDNSResponse", "");
  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 DeviceBindingProxy::GetNTP(const char *endpoint, const char *soap_action, _tds__GetNTP *tds__GetNTP, _tds__GetNTPResponse *tds__GetNTPResponse)
  2011. { struct soap *soap = this;
  2012. struct __tds__GetNTP soap_tmp___tds__GetNTP;
  2013. if (endpoint)
  2014. soap_endpoint = endpoint;
  2015. if (soap_action == NULL)
  2016. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNTP";
  2017. soap_begin(soap);
  2018. soap->encodingStyle = NULL;
  2019. soap_tmp___tds__GetNTP.tds__GetNTP = tds__GetNTP;
  2020. soap_set_version(soap, 2); /* SOAP1.2 */
  2021. soap_serializeheader(soap);
  2022. soap_serialize___tds__GetNTP(soap, &soap_tmp___tds__GetNTP);
  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___tds__GetNTP(soap, &soap_tmp___tds__GetNTP, "-tds:GetNTP", 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___tds__GetNTP(soap, &soap_tmp___tds__GetNTP, "-tds:GetNTP", 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 (!tds__GetNTPResponse)
  2046. return soap_closesock(soap);
  2047. tds__GetNTPResponse->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. tds__GetNTPResponse->soap_get(soap, "tds:GetNTPResponse", "");
  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 DeviceBindingProxy::SetNTP(const char *endpoint, const char *soap_action, _tds__SetNTP *tds__SetNTP, _tds__SetNTPResponse *tds__SetNTPResponse)
  2063. { struct soap *soap = this;
  2064. struct __tds__SetNTP soap_tmp___tds__SetNTP;
  2065. if (endpoint)
  2066. soap_endpoint = endpoint;
  2067. if (soap_action == NULL)
  2068. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNTP";
  2069. soap_begin(soap);
  2070. soap->encodingStyle = NULL;
  2071. soap_tmp___tds__SetNTP.tds__SetNTP = tds__SetNTP;
  2072. soap_set_version(soap, 2); /* SOAP1.2 */
  2073. soap_serializeheader(soap);
  2074. soap_serialize___tds__SetNTP(soap, &soap_tmp___tds__SetNTP);
  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___tds__SetNTP(soap, &soap_tmp___tds__SetNTP, "-tds:SetNTP", 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___tds__SetNTP(soap, &soap_tmp___tds__SetNTP, "-tds:SetNTP", 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 (!tds__SetNTPResponse)
  2098. return soap_closesock(soap);
  2099. tds__SetNTPResponse->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. tds__SetNTPResponse->soap_get(soap, "tds:SetNTPResponse", "");
  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 DeviceBindingProxy::GetDynamicDNS(const char *endpoint, const char *soap_action, _tds__GetDynamicDNS *tds__GetDynamicDNS, _tds__GetDynamicDNSResponse *tds__GetDynamicDNSResponse)
  2115. { struct soap *soap = this;
  2116. struct __tds__GetDynamicDNS soap_tmp___tds__GetDynamicDNS;
  2117. if (endpoint)
  2118. soap_endpoint = endpoint;
  2119. if (soap_action == NULL)
  2120. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDynamicDNS";
  2121. soap_begin(soap);
  2122. soap->encodingStyle = NULL;
  2123. soap_tmp___tds__GetDynamicDNS.tds__GetDynamicDNS = tds__GetDynamicDNS;
  2124. soap_set_version(soap, 2); /* SOAP1.2 */
  2125. soap_serializeheader(soap);
  2126. soap_serialize___tds__GetDynamicDNS(soap, &soap_tmp___tds__GetDynamicDNS);
  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___tds__GetDynamicDNS(soap, &soap_tmp___tds__GetDynamicDNS, "-tds:GetDynamicDNS", 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___tds__GetDynamicDNS(soap, &soap_tmp___tds__GetDynamicDNS, "-tds:GetDynamicDNS", 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 (!tds__GetDynamicDNSResponse)
  2150. return soap_closesock(soap);
  2151. tds__GetDynamicDNSResponse->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. tds__GetDynamicDNSResponse->soap_get(soap, "tds:GetDynamicDNSResponse", "");
  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 DeviceBindingProxy::SetDynamicDNS(const char *endpoint, const char *soap_action, _tds__SetDynamicDNS *tds__SetDynamicDNS, _tds__SetDynamicDNSResponse *tds__SetDynamicDNSResponse)
  2167. { struct soap *soap = this;
  2168. struct __tds__SetDynamicDNS soap_tmp___tds__SetDynamicDNS;
  2169. if (endpoint)
  2170. soap_endpoint = endpoint;
  2171. if (soap_action == NULL)
  2172. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDynamicDNS";
  2173. soap_begin(soap);
  2174. soap->encodingStyle = NULL;
  2175. soap_tmp___tds__SetDynamicDNS.tds__SetDynamicDNS = tds__SetDynamicDNS;
  2176. soap_set_version(soap, 2); /* SOAP1.2 */
  2177. soap_serializeheader(soap);
  2178. soap_serialize___tds__SetDynamicDNS(soap, &soap_tmp___tds__SetDynamicDNS);
  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___tds__SetDynamicDNS(soap, &soap_tmp___tds__SetDynamicDNS, "-tds:SetDynamicDNS", 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___tds__SetDynamicDNS(soap, &soap_tmp___tds__SetDynamicDNS, "-tds:SetDynamicDNS", 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 (!tds__SetDynamicDNSResponse)
  2202. return soap_closesock(soap);
  2203. tds__SetDynamicDNSResponse->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. tds__SetDynamicDNSResponse->soap_get(soap, "tds:SetDynamicDNSResponse", "");
  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 DeviceBindingProxy::GetNetworkInterfaces(const char *endpoint, const char *soap_action, _tds__GetNetworkInterfaces *tds__GetNetworkInterfaces, _tds__GetNetworkInterfacesResponse *tds__GetNetworkInterfacesResponse)
  2219. { struct soap *soap = this;
  2220. struct __tds__GetNetworkInterfaces soap_tmp___tds__GetNetworkInterfaces;
  2221. if (endpoint)
  2222. soap_endpoint = endpoint;
  2223. if (soap_action == NULL)
  2224. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces";
  2225. soap_begin(soap);
  2226. soap->encodingStyle = NULL;
  2227. soap_tmp___tds__GetNetworkInterfaces.tds__GetNetworkInterfaces = tds__GetNetworkInterfaces;
  2228. soap_set_version(soap, 2); /* SOAP1.2 */
  2229. soap_serializeheader(soap);
  2230. soap_serialize___tds__GetNetworkInterfaces(soap, &soap_tmp___tds__GetNetworkInterfaces);
  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___tds__GetNetworkInterfaces(soap, &soap_tmp___tds__GetNetworkInterfaces, "-tds:GetNetworkInterfaces", 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___tds__GetNetworkInterfaces(soap, &soap_tmp___tds__GetNetworkInterfaces, "-tds:GetNetworkInterfaces", 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 (!tds__GetNetworkInterfacesResponse)
  2254. return soap_closesock(soap);
  2255. tds__GetNetworkInterfacesResponse->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. tds__GetNetworkInterfacesResponse->soap_get(soap, "tds:GetNetworkInterfacesResponse", "");
  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 DeviceBindingProxy::SetNetworkInterfaces(const char *endpoint, const char *soap_action, _tds__SetNetworkInterfaces *tds__SetNetworkInterfaces, _tds__SetNetworkInterfacesResponse *tds__SetNetworkInterfacesResponse)
  2271. { struct soap *soap = this;
  2272. struct __tds__SetNetworkInterfaces soap_tmp___tds__SetNetworkInterfaces;
  2273. if (endpoint)
  2274. soap_endpoint = endpoint;
  2275. if (soap_action == NULL)
  2276. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkInterfaces";
  2277. soap_begin(soap);
  2278. soap->encodingStyle = NULL;
  2279. soap_tmp___tds__SetNetworkInterfaces.tds__SetNetworkInterfaces = tds__SetNetworkInterfaces;
  2280. soap_set_version(soap, 2); /* SOAP1.2 */
  2281. soap_serializeheader(soap);
  2282. soap_serialize___tds__SetNetworkInterfaces(soap, &soap_tmp___tds__SetNetworkInterfaces);
  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___tds__SetNetworkInterfaces(soap, &soap_tmp___tds__SetNetworkInterfaces, "-tds:SetNetworkInterfaces", 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___tds__SetNetworkInterfaces(soap, &soap_tmp___tds__SetNetworkInterfaces, "-tds:SetNetworkInterfaces", 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 (!tds__SetNetworkInterfacesResponse)
  2306. return soap_closesock(soap);
  2307. tds__SetNetworkInterfacesResponse->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. tds__SetNetworkInterfacesResponse->soap_get(soap, "tds:SetNetworkInterfacesResponse", "");
  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 DeviceBindingProxy::GetNetworkProtocols(const char *endpoint, const char *soap_action, _tds__GetNetworkProtocols *tds__GetNetworkProtocols, _tds__GetNetworkProtocolsResponse *tds__GetNetworkProtocolsResponse)
  2323. { struct soap *soap = this;
  2324. struct __tds__GetNetworkProtocols soap_tmp___tds__GetNetworkProtocols;
  2325. if (endpoint)
  2326. soap_endpoint = endpoint;
  2327. if (soap_action == NULL)
  2328. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkProtocols";
  2329. soap_begin(soap);
  2330. soap->encodingStyle = NULL;
  2331. soap_tmp___tds__GetNetworkProtocols.tds__GetNetworkProtocols = tds__GetNetworkProtocols;
  2332. soap_set_version(soap, 2); /* SOAP1.2 */
  2333. soap_serializeheader(soap);
  2334. soap_serialize___tds__GetNetworkProtocols(soap, &soap_tmp___tds__GetNetworkProtocols);
  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___tds__GetNetworkProtocols(soap, &soap_tmp___tds__GetNetworkProtocols, "-tds:GetNetworkProtocols", 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___tds__GetNetworkProtocols(soap, &soap_tmp___tds__GetNetworkProtocols, "-tds:GetNetworkProtocols", 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 (!tds__GetNetworkProtocolsResponse)
  2358. return soap_closesock(soap);
  2359. tds__GetNetworkProtocolsResponse->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. tds__GetNetworkProtocolsResponse->soap_get(soap, "tds:GetNetworkProtocolsResponse", "");
  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 DeviceBindingProxy::SetNetworkProtocols(const char *endpoint, const char *soap_action, _tds__SetNetworkProtocols *tds__SetNetworkProtocols, _tds__SetNetworkProtocolsResponse *tds__SetNetworkProtocolsResponse)
  2375. { struct soap *soap = this;
  2376. struct __tds__SetNetworkProtocols soap_tmp___tds__SetNetworkProtocols;
  2377. if (endpoint)
  2378. soap_endpoint = endpoint;
  2379. if (soap_action == NULL)
  2380. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkProtocols";
  2381. soap_begin(soap);
  2382. soap->encodingStyle = NULL;
  2383. soap_tmp___tds__SetNetworkProtocols.tds__SetNetworkProtocols = tds__SetNetworkProtocols;
  2384. soap_set_version(soap, 2); /* SOAP1.2 */
  2385. soap_serializeheader(soap);
  2386. soap_serialize___tds__SetNetworkProtocols(soap, &soap_tmp___tds__SetNetworkProtocols);
  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___tds__SetNetworkProtocols(soap, &soap_tmp___tds__SetNetworkProtocols, "-tds:SetNetworkProtocols", 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___tds__SetNetworkProtocols(soap, &soap_tmp___tds__SetNetworkProtocols, "-tds:SetNetworkProtocols", 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 (!tds__SetNetworkProtocolsResponse)
  2410. return soap_closesock(soap);
  2411. tds__SetNetworkProtocolsResponse->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. tds__SetNetworkProtocolsResponse->soap_get(soap, "tds:SetNetworkProtocolsResponse", "");
  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 DeviceBindingProxy::GetNetworkDefaultGateway(const char *endpoint, const char *soap_action, _tds__GetNetworkDefaultGateway *tds__GetNetworkDefaultGateway, _tds__GetNetworkDefaultGatewayResponse *tds__GetNetworkDefaultGatewayResponse)
  2427. { struct soap *soap = this;
  2428. struct __tds__GetNetworkDefaultGateway soap_tmp___tds__GetNetworkDefaultGateway;
  2429. if (endpoint)
  2430. soap_endpoint = endpoint;
  2431. if (soap_action == NULL)
  2432. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkDefaultGateway";
  2433. soap_begin(soap);
  2434. soap->encodingStyle = NULL;
  2435. soap_tmp___tds__GetNetworkDefaultGateway.tds__GetNetworkDefaultGateway = tds__GetNetworkDefaultGateway;
  2436. soap_set_version(soap, 2); /* SOAP1.2 */
  2437. soap_serializeheader(soap);
  2438. soap_serialize___tds__GetNetworkDefaultGateway(soap, &soap_tmp___tds__GetNetworkDefaultGateway);
  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___tds__GetNetworkDefaultGateway(soap, &soap_tmp___tds__GetNetworkDefaultGateway, "-tds:GetNetworkDefaultGateway", 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___tds__GetNetworkDefaultGateway(soap, &soap_tmp___tds__GetNetworkDefaultGateway, "-tds:GetNetworkDefaultGateway", 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 (!tds__GetNetworkDefaultGatewayResponse)
  2462. return soap_closesock(soap);
  2463. tds__GetNetworkDefaultGatewayResponse->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. tds__GetNetworkDefaultGatewayResponse->soap_get(soap, "tds:GetNetworkDefaultGatewayResponse", "");
  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 DeviceBindingProxy::SetNetworkDefaultGateway(const char *endpoint, const char *soap_action, _tds__SetNetworkDefaultGateway *tds__SetNetworkDefaultGateway, _tds__SetNetworkDefaultGatewayResponse *tds__SetNetworkDefaultGatewayResponse)
  2479. { struct soap *soap = this;
  2480. struct __tds__SetNetworkDefaultGateway soap_tmp___tds__SetNetworkDefaultGateway;
  2481. if (endpoint)
  2482. soap_endpoint = endpoint;
  2483. if (soap_action == NULL)
  2484. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkDefaultGateway";
  2485. soap_begin(soap);
  2486. soap->encodingStyle = NULL;
  2487. soap_tmp___tds__SetNetworkDefaultGateway.tds__SetNetworkDefaultGateway = tds__SetNetworkDefaultGateway;
  2488. soap_set_version(soap, 2); /* SOAP1.2 */
  2489. soap_serializeheader(soap);
  2490. soap_serialize___tds__SetNetworkDefaultGateway(soap, &soap_tmp___tds__SetNetworkDefaultGateway);
  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___tds__SetNetworkDefaultGateway(soap, &soap_tmp___tds__SetNetworkDefaultGateway, "-tds:SetNetworkDefaultGateway", 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___tds__SetNetworkDefaultGateway(soap, &soap_tmp___tds__SetNetworkDefaultGateway, "-tds:SetNetworkDefaultGateway", 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 (!tds__SetNetworkDefaultGatewayResponse)
  2514. return soap_closesock(soap);
  2515. tds__SetNetworkDefaultGatewayResponse->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. tds__SetNetworkDefaultGatewayResponse->soap_get(soap, "tds:SetNetworkDefaultGatewayResponse", "");
  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 DeviceBindingProxy::GetZeroConfiguration(const char *endpoint, const char *soap_action, _tds__GetZeroConfiguration *tds__GetZeroConfiguration, _tds__GetZeroConfigurationResponse *tds__GetZeroConfigurationResponse)
  2531. { struct soap *soap = this;
  2532. struct __tds__GetZeroConfiguration soap_tmp___tds__GetZeroConfiguration;
  2533. if (endpoint)
  2534. soap_endpoint = endpoint;
  2535. if (soap_action == NULL)
  2536. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetZeroConfiguration";
  2537. soap_begin(soap);
  2538. soap->encodingStyle = NULL;
  2539. soap_tmp___tds__GetZeroConfiguration.tds__GetZeroConfiguration = tds__GetZeroConfiguration;
  2540. soap_set_version(soap, 2); /* SOAP1.2 */
  2541. soap_serializeheader(soap);
  2542. soap_serialize___tds__GetZeroConfiguration(soap, &soap_tmp___tds__GetZeroConfiguration);
  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___tds__GetZeroConfiguration(soap, &soap_tmp___tds__GetZeroConfiguration, "-tds:GetZeroConfiguration", 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___tds__GetZeroConfiguration(soap, &soap_tmp___tds__GetZeroConfiguration, "-tds:GetZeroConfiguration", 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 (!tds__GetZeroConfigurationResponse)
  2566. return soap_closesock(soap);
  2567. tds__GetZeroConfigurationResponse->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. tds__GetZeroConfigurationResponse->soap_get(soap, "tds:GetZeroConfigurationResponse", "");
  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 DeviceBindingProxy::SetZeroConfiguration(const char *endpoint, const char *soap_action, _tds__SetZeroConfiguration *tds__SetZeroConfiguration, _tds__SetZeroConfigurationResponse *tds__SetZeroConfigurationResponse)
  2583. { struct soap *soap = this;
  2584. struct __tds__SetZeroConfiguration soap_tmp___tds__SetZeroConfiguration;
  2585. if (endpoint)
  2586. soap_endpoint = endpoint;
  2587. if (soap_action == NULL)
  2588. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetZeroConfiguration";
  2589. soap_begin(soap);
  2590. soap->encodingStyle = NULL;
  2591. soap_tmp___tds__SetZeroConfiguration.tds__SetZeroConfiguration = tds__SetZeroConfiguration;
  2592. soap_set_version(soap, 2); /* SOAP1.2 */
  2593. soap_serializeheader(soap);
  2594. soap_serialize___tds__SetZeroConfiguration(soap, &soap_tmp___tds__SetZeroConfiguration);
  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___tds__SetZeroConfiguration(soap, &soap_tmp___tds__SetZeroConfiguration, "-tds:SetZeroConfiguration", 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___tds__SetZeroConfiguration(soap, &soap_tmp___tds__SetZeroConfiguration, "-tds:SetZeroConfiguration", 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 (!tds__SetZeroConfigurationResponse)
  2618. return soap_closesock(soap);
  2619. tds__SetZeroConfigurationResponse->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. tds__SetZeroConfigurationResponse->soap_get(soap, "tds:SetZeroConfigurationResponse", "");
  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 DeviceBindingProxy::GetIPAddressFilter(const char *endpoint, const char *soap_action, _tds__GetIPAddressFilter *tds__GetIPAddressFilter, _tds__GetIPAddressFilterResponse *tds__GetIPAddressFilterResponse)
  2635. { struct soap *soap = this;
  2636. struct __tds__GetIPAddressFilter soap_tmp___tds__GetIPAddressFilter;
  2637. if (endpoint)
  2638. soap_endpoint = endpoint;
  2639. if (soap_action == NULL)
  2640. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetIPAddressFilter";
  2641. soap_begin(soap);
  2642. soap->encodingStyle = NULL;
  2643. soap_tmp___tds__GetIPAddressFilter.tds__GetIPAddressFilter = tds__GetIPAddressFilter;
  2644. soap_set_version(soap, 2); /* SOAP1.2 */
  2645. soap_serializeheader(soap);
  2646. soap_serialize___tds__GetIPAddressFilter(soap, &soap_tmp___tds__GetIPAddressFilter);
  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___tds__GetIPAddressFilter(soap, &soap_tmp___tds__GetIPAddressFilter, "-tds:GetIPAddressFilter", 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___tds__GetIPAddressFilter(soap, &soap_tmp___tds__GetIPAddressFilter, "-tds:GetIPAddressFilter", 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 (!tds__GetIPAddressFilterResponse)
  2670. return soap_closesock(soap);
  2671. tds__GetIPAddressFilterResponse->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. tds__GetIPAddressFilterResponse->soap_get(soap, "tds:GetIPAddressFilterResponse", "");
  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 DeviceBindingProxy::SetIPAddressFilter(const char *endpoint, const char *soap_action, _tds__SetIPAddressFilter *tds__SetIPAddressFilter, _tds__SetIPAddressFilterResponse *tds__SetIPAddressFilterResponse)
  2687. { struct soap *soap = this;
  2688. struct __tds__SetIPAddressFilter soap_tmp___tds__SetIPAddressFilter;
  2689. if (endpoint)
  2690. soap_endpoint = endpoint;
  2691. if (soap_action == NULL)
  2692. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetIPAddressFilter";
  2693. soap_begin(soap);
  2694. soap->encodingStyle = NULL;
  2695. soap_tmp___tds__SetIPAddressFilter.tds__SetIPAddressFilter = tds__SetIPAddressFilter;
  2696. soap_set_version(soap, 2); /* SOAP1.2 */
  2697. soap_serializeheader(soap);
  2698. soap_serialize___tds__SetIPAddressFilter(soap, &soap_tmp___tds__SetIPAddressFilter);
  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___tds__SetIPAddressFilter(soap, &soap_tmp___tds__SetIPAddressFilter, "-tds:SetIPAddressFilter", 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___tds__SetIPAddressFilter(soap, &soap_tmp___tds__SetIPAddressFilter, "-tds:SetIPAddressFilter", 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 (!tds__SetIPAddressFilterResponse)
  2722. return soap_closesock(soap);
  2723. tds__SetIPAddressFilterResponse->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. tds__SetIPAddressFilterResponse->soap_get(soap, "tds:SetIPAddressFilterResponse", "");
  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 DeviceBindingProxy::AddIPAddressFilter(const char *endpoint, const char *soap_action, _tds__AddIPAddressFilter *tds__AddIPAddressFilter, _tds__AddIPAddressFilterResponse *tds__AddIPAddressFilterResponse)
  2739. { struct soap *soap = this;
  2740. struct __tds__AddIPAddressFilter soap_tmp___tds__AddIPAddressFilter;
  2741. if (endpoint)
  2742. soap_endpoint = endpoint;
  2743. if (soap_action == NULL)
  2744. soap_action = "http://www.onvif.org/ver10/device/wsdl/AddIPAddressFilter";
  2745. soap_begin(soap);
  2746. soap->encodingStyle = NULL;
  2747. soap_tmp___tds__AddIPAddressFilter.tds__AddIPAddressFilter = tds__AddIPAddressFilter;
  2748. soap_set_version(soap, 2); /* SOAP1.2 */
  2749. soap_serializeheader(soap);
  2750. soap_serialize___tds__AddIPAddressFilter(soap, &soap_tmp___tds__AddIPAddressFilter);
  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___tds__AddIPAddressFilter(soap, &soap_tmp___tds__AddIPAddressFilter, "-tds:AddIPAddressFilter", 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___tds__AddIPAddressFilter(soap, &soap_tmp___tds__AddIPAddressFilter, "-tds:AddIPAddressFilter", 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 (!tds__AddIPAddressFilterResponse)
  2774. return soap_closesock(soap);
  2775. tds__AddIPAddressFilterResponse->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. tds__AddIPAddressFilterResponse->soap_get(soap, "tds:AddIPAddressFilterResponse", "");
  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 DeviceBindingProxy::RemoveIPAddressFilter(const char *endpoint, const char *soap_action, _tds__RemoveIPAddressFilter *tds__RemoveIPAddressFilter, _tds__RemoveIPAddressFilterResponse *tds__RemoveIPAddressFilterResponse)
  2791. { struct soap *soap = this;
  2792. struct __tds__RemoveIPAddressFilter soap_tmp___tds__RemoveIPAddressFilter;
  2793. if (endpoint)
  2794. soap_endpoint = endpoint;
  2795. if (soap_action == NULL)
  2796. soap_action = "http://www.onvif.org/ver10/device/wsdl/RemoveIPAddressFilter";
  2797. soap_begin(soap);
  2798. soap->encodingStyle = NULL;
  2799. soap_tmp___tds__RemoveIPAddressFilter.tds__RemoveIPAddressFilter = tds__RemoveIPAddressFilter;
  2800. soap_set_version(soap, 2); /* SOAP1.2 */
  2801. soap_serializeheader(soap);
  2802. soap_serialize___tds__RemoveIPAddressFilter(soap, &soap_tmp___tds__RemoveIPAddressFilter);
  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___tds__RemoveIPAddressFilter(soap, &soap_tmp___tds__RemoveIPAddressFilter, "-tds:RemoveIPAddressFilter", 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___tds__RemoveIPAddressFilter(soap, &soap_tmp___tds__RemoveIPAddressFilter, "-tds:RemoveIPAddressFilter", 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 (!tds__RemoveIPAddressFilterResponse)
  2826. return soap_closesock(soap);
  2827. tds__RemoveIPAddressFilterResponse->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. tds__RemoveIPAddressFilterResponse->soap_get(soap, "tds:RemoveIPAddressFilterResponse", "");
  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 DeviceBindingProxy::GetAccessPolicy(const char *endpoint, const char *soap_action, _tds__GetAccessPolicy *tds__GetAccessPolicy, _tds__GetAccessPolicyResponse *tds__GetAccessPolicyResponse)
  2843. { struct soap *soap = this;
  2844. struct __tds__GetAccessPolicy soap_tmp___tds__GetAccessPolicy;
  2845. if (endpoint)
  2846. soap_endpoint = endpoint;
  2847. if (soap_action == NULL)
  2848. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetAccessPolicy";
  2849. soap_begin(soap);
  2850. soap->encodingStyle = NULL;
  2851. soap_tmp___tds__GetAccessPolicy.tds__GetAccessPolicy = tds__GetAccessPolicy;
  2852. soap_set_version(soap, 2); /* SOAP1.2 */
  2853. soap_serializeheader(soap);
  2854. soap_serialize___tds__GetAccessPolicy(soap, &soap_tmp___tds__GetAccessPolicy);
  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___tds__GetAccessPolicy(soap, &soap_tmp___tds__GetAccessPolicy, "-tds:GetAccessPolicy", 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___tds__GetAccessPolicy(soap, &soap_tmp___tds__GetAccessPolicy, "-tds:GetAccessPolicy", 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 (!tds__GetAccessPolicyResponse)
  2878. return soap_closesock(soap);
  2879. tds__GetAccessPolicyResponse->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. tds__GetAccessPolicyResponse->soap_get(soap, "tds:GetAccessPolicyResponse", "");
  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 DeviceBindingProxy::SetAccessPolicy(const char *endpoint, const char *soap_action, _tds__SetAccessPolicy *tds__SetAccessPolicy, _tds__SetAccessPolicyResponse *tds__SetAccessPolicyResponse)
  2895. { struct soap *soap = this;
  2896. struct __tds__SetAccessPolicy soap_tmp___tds__SetAccessPolicy;
  2897. if (endpoint)
  2898. soap_endpoint = endpoint;
  2899. if (soap_action == NULL)
  2900. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetAccessPolicy";
  2901. soap_begin(soap);
  2902. soap->encodingStyle = NULL;
  2903. soap_tmp___tds__SetAccessPolicy.tds__SetAccessPolicy = tds__SetAccessPolicy;
  2904. soap_set_version(soap, 2); /* SOAP1.2 */
  2905. soap_serializeheader(soap);
  2906. soap_serialize___tds__SetAccessPolicy(soap, &soap_tmp___tds__SetAccessPolicy);
  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___tds__SetAccessPolicy(soap, &soap_tmp___tds__SetAccessPolicy, "-tds:SetAccessPolicy", 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___tds__SetAccessPolicy(soap, &soap_tmp___tds__SetAccessPolicy, "-tds:SetAccessPolicy", 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 (!tds__SetAccessPolicyResponse)
  2930. return soap_closesock(soap);
  2931. tds__SetAccessPolicyResponse->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. tds__SetAccessPolicyResponse->soap_get(soap, "tds:SetAccessPolicyResponse", "");
  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 DeviceBindingProxy::CreateCertificate(const char *endpoint, const char *soap_action, _tds__CreateCertificate *tds__CreateCertificate, _tds__CreateCertificateResponse *tds__CreateCertificateResponse)
  2947. { struct soap *soap = this;
  2948. struct __tds__CreateCertificate soap_tmp___tds__CreateCertificate;
  2949. if (endpoint)
  2950. soap_endpoint = endpoint;
  2951. if (soap_action == NULL)
  2952. soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateCertificate";
  2953. soap_begin(soap);
  2954. soap->encodingStyle = NULL;
  2955. soap_tmp___tds__CreateCertificate.tds__CreateCertificate = tds__CreateCertificate;
  2956. soap_set_version(soap, 2); /* SOAP1.2 */
  2957. soap_serializeheader(soap);
  2958. soap_serialize___tds__CreateCertificate(soap, &soap_tmp___tds__CreateCertificate);
  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___tds__CreateCertificate(soap, &soap_tmp___tds__CreateCertificate, "-tds:CreateCertificate", 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___tds__CreateCertificate(soap, &soap_tmp___tds__CreateCertificate, "-tds:CreateCertificate", 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 (!tds__CreateCertificateResponse)
  2982. return soap_closesock(soap);
  2983. tds__CreateCertificateResponse->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. tds__CreateCertificateResponse->soap_get(soap, "tds:CreateCertificateResponse", "");
  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 DeviceBindingProxy::GetCertificates(const char *endpoint, const char *soap_action, _tds__GetCertificates *tds__GetCertificates, _tds__GetCertificatesResponse *tds__GetCertificatesResponse)
  2999. { struct soap *soap = this;
  3000. struct __tds__GetCertificates soap_tmp___tds__GetCertificates;
  3001. if (endpoint)
  3002. soap_endpoint = endpoint;
  3003. if (soap_action == NULL)
  3004. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificates";
  3005. soap_begin(soap);
  3006. soap->encodingStyle = NULL;
  3007. soap_tmp___tds__GetCertificates.tds__GetCertificates = tds__GetCertificates;
  3008. soap_set_version(soap, 2); /* SOAP1.2 */
  3009. soap_serializeheader(soap);
  3010. soap_serialize___tds__GetCertificates(soap, &soap_tmp___tds__GetCertificates);
  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___tds__GetCertificates(soap, &soap_tmp___tds__GetCertificates, "-tds:GetCertificates", 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___tds__GetCertificates(soap, &soap_tmp___tds__GetCertificates, "-tds:GetCertificates", 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 (!tds__GetCertificatesResponse)
  3034. return soap_closesock(soap);
  3035. tds__GetCertificatesResponse->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. tds__GetCertificatesResponse->soap_get(soap, "tds:GetCertificatesResponse", "");
  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 DeviceBindingProxy::GetCertificatesStatus(const char *endpoint, const char *soap_action, _tds__GetCertificatesStatus *tds__GetCertificatesStatus, _tds__GetCertificatesStatusResponse *tds__GetCertificatesStatusResponse)
  3051. { struct soap *soap = this;
  3052. struct __tds__GetCertificatesStatus soap_tmp___tds__GetCertificatesStatus;
  3053. if (endpoint)
  3054. soap_endpoint = endpoint;
  3055. if (soap_action == NULL)
  3056. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificatesStatus";
  3057. soap_begin(soap);
  3058. soap->encodingStyle = NULL;
  3059. soap_tmp___tds__GetCertificatesStatus.tds__GetCertificatesStatus = tds__GetCertificatesStatus;
  3060. soap_set_version(soap, 2); /* SOAP1.2 */
  3061. soap_serializeheader(soap);
  3062. soap_serialize___tds__GetCertificatesStatus(soap, &soap_tmp___tds__GetCertificatesStatus);
  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___tds__GetCertificatesStatus(soap, &soap_tmp___tds__GetCertificatesStatus, "-tds:GetCertificatesStatus", 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___tds__GetCertificatesStatus(soap, &soap_tmp___tds__GetCertificatesStatus, "-tds:GetCertificatesStatus", 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 (!tds__GetCertificatesStatusResponse)
  3086. return soap_closesock(soap);
  3087. tds__GetCertificatesStatusResponse->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. tds__GetCertificatesStatusResponse->soap_get(soap, "tds:GetCertificatesStatusResponse", "");
  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 DeviceBindingProxy::SetCertificatesStatus(const char *endpoint, const char *soap_action, _tds__SetCertificatesStatus *tds__SetCertificatesStatus, _tds__SetCertificatesStatusResponse *tds__SetCertificatesStatusResponse)
  3103. { struct soap *soap = this;
  3104. struct __tds__SetCertificatesStatus soap_tmp___tds__SetCertificatesStatus;
  3105. if (endpoint)
  3106. soap_endpoint = endpoint;
  3107. if (soap_action == NULL)
  3108. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetCertificatesStatus";
  3109. soap_begin(soap);
  3110. soap->encodingStyle = NULL;
  3111. soap_tmp___tds__SetCertificatesStatus.tds__SetCertificatesStatus = tds__SetCertificatesStatus;
  3112. soap_set_version(soap, 2); /* SOAP1.2 */
  3113. soap_serializeheader(soap);
  3114. soap_serialize___tds__SetCertificatesStatus(soap, &soap_tmp___tds__SetCertificatesStatus);
  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___tds__SetCertificatesStatus(soap, &soap_tmp___tds__SetCertificatesStatus, "-tds:SetCertificatesStatus", 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___tds__SetCertificatesStatus(soap, &soap_tmp___tds__SetCertificatesStatus, "-tds:SetCertificatesStatus", 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 (!tds__SetCertificatesStatusResponse)
  3138. return soap_closesock(soap);
  3139. tds__SetCertificatesStatusResponse->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. tds__SetCertificatesStatusResponse->soap_get(soap, "tds:SetCertificatesStatusResponse", "");
  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 DeviceBindingProxy::DeleteCertificates(const char *endpoint, const char *soap_action, _tds__DeleteCertificates *tds__DeleteCertificates, _tds__DeleteCertificatesResponse *tds__DeleteCertificatesResponse)
  3155. { struct soap *soap = this;
  3156. struct __tds__DeleteCertificates soap_tmp___tds__DeleteCertificates;
  3157. if (endpoint)
  3158. soap_endpoint = endpoint;
  3159. if (soap_action == NULL)
  3160. soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteCertificates";
  3161. soap_begin(soap);
  3162. soap->encodingStyle = NULL;
  3163. soap_tmp___tds__DeleteCertificates.tds__DeleteCertificates = tds__DeleteCertificates;
  3164. soap_set_version(soap, 2); /* SOAP1.2 */
  3165. soap_serializeheader(soap);
  3166. soap_serialize___tds__DeleteCertificates(soap, &soap_tmp___tds__DeleteCertificates);
  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___tds__DeleteCertificates(soap, &soap_tmp___tds__DeleteCertificates, "-tds:DeleteCertificates", 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___tds__DeleteCertificates(soap, &soap_tmp___tds__DeleteCertificates, "-tds:DeleteCertificates", 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 (!tds__DeleteCertificatesResponse)
  3190. return soap_closesock(soap);
  3191. tds__DeleteCertificatesResponse->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. tds__DeleteCertificatesResponse->soap_get(soap, "tds:DeleteCertificatesResponse", "");
  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 DeviceBindingProxy::GetPkcs10Request(const char *endpoint, const char *soap_action, _tds__GetPkcs10Request *tds__GetPkcs10Request, _tds__GetPkcs10RequestResponse *tds__GetPkcs10RequestResponse)
  3207. { struct soap *soap = this;
  3208. struct __tds__GetPkcs10Request soap_tmp___tds__GetPkcs10Request;
  3209. if (endpoint)
  3210. soap_endpoint = endpoint;
  3211. if (soap_action == NULL)
  3212. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetPkcs10Request";
  3213. soap_begin(soap);
  3214. soap->encodingStyle = NULL;
  3215. soap_tmp___tds__GetPkcs10Request.tds__GetPkcs10Request = tds__GetPkcs10Request;
  3216. soap_set_version(soap, 2); /* SOAP1.2 */
  3217. soap_serializeheader(soap);
  3218. soap_serialize___tds__GetPkcs10Request(soap, &soap_tmp___tds__GetPkcs10Request);
  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___tds__GetPkcs10Request(soap, &soap_tmp___tds__GetPkcs10Request, "-tds:GetPkcs10Request", 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___tds__GetPkcs10Request(soap, &soap_tmp___tds__GetPkcs10Request, "-tds:GetPkcs10Request", 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 (!tds__GetPkcs10RequestResponse)
  3242. return soap_closesock(soap);
  3243. tds__GetPkcs10RequestResponse->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. tds__GetPkcs10RequestResponse->soap_get(soap, "tds:GetPkcs10RequestResponse", "");
  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 DeviceBindingProxy::LoadCertificates(const char *endpoint, const char *soap_action, _tds__LoadCertificates *tds__LoadCertificates, _tds__LoadCertificatesResponse *tds__LoadCertificatesResponse)
  3259. { struct soap *soap = this;
  3260. struct __tds__LoadCertificates soap_tmp___tds__LoadCertificates;
  3261. if (endpoint)
  3262. soap_endpoint = endpoint;
  3263. if (soap_action == NULL)
  3264. soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCertificates";
  3265. soap_begin(soap);
  3266. soap->encodingStyle = NULL;
  3267. soap_tmp___tds__LoadCertificates.tds__LoadCertificates = tds__LoadCertificates;
  3268. soap_set_version(soap, 2); /* SOAP1.2 */
  3269. soap_serializeheader(soap);
  3270. soap_serialize___tds__LoadCertificates(soap, &soap_tmp___tds__LoadCertificates);
  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___tds__LoadCertificates(soap, &soap_tmp___tds__LoadCertificates, "-tds:LoadCertificates", 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___tds__LoadCertificates(soap, &soap_tmp___tds__LoadCertificates, "-tds:LoadCertificates", 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 (!tds__LoadCertificatesResponse)
  3294. return soap_closesock(soap);
  3295. tds__LoadCertificatesResponse->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. tds__LoadCertificatesResponse->soap_get(soap, "tds:LoadCertificatesResponse", "");
  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 DeviceBindingProxy::GetClientCertificateMode(const char *endpoint, const char *soap_action, _tds__GetClientCertificateMode *tds__GetClientCertificateMode, _tds__GetClientCertificateModeResponse *tds__GetClientCertificateModeResponse)
  3311. { struct soap *soap = this;
  3312. struct __tds__GetClientCertificateMode soap_tmp___tds__GetClientCertificateMode;
  3313. if (endpoint)
  3314. soap_endpoint = endpoint;
  3315. if (soap_action == NULL)
  3316. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetClientCertificateMode";
  3317. soap_begin(soap);
  3318. soap->encodingStyle = NULL;
  3319. soap_tmp___tds__GetClientCertificateMode.tds__GetClientCertificateMode = tds__GetClientCertificateMode;
  3320. soap_set_version(soap, 2); /* SOAP1.2 */
  3321. soap_serializeheader(soap);
  3322. soap_serialize___tds__GetClientCertificateMode(soap, &soap_tmp___tds__GetClientCertificateMode);
  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___tds__GetClientCertificateMode(soap, &soap_tmp___tds__GetClientCertificateMode, "-tds:GetClientCertificateMode", 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___tds__GetClientCertificateMode(soap, &soap_tmp___tds__GetClientCertificateMode, "-tds:GetClientCertificateMode", 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 (!tds__GetClientCertificateModeResponse)
  3346. return soap_closesock(soap);
  3347. tds__GetClientCertificateModeResponse->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. tds__GetClientCertificateModeResponse->soap_get(soap, "tds:GetClientCertificateModeResponse", "");
  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 DeviceBindingProxy::SetClientCertificateMode(const char *endpoint, const char *soap_action, _tds__SetClientCertificateMode *tds__SetClientCertificateMode, _tds__SetClientCertificateModeResponse *tds__SetClientCertificateModeResponse)
  3363. { struct soap *soap = this;
  3364. struct __tds__SetClientCertificateMode soap_tmp___tds__SetClientCertificateMode;
  3365. if (endpoint)
  3366. soap_endpoint = endpoint;
  3367. if (soap_action == NULL)
  3368. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetClientCertificateMode";
  3369. soap_begin(soap);
  3370. soap->encodingStyle = NULL;
  3371. soap_tmp___tds__SetClientCertificateMode.tds__SetClientCertificateMode = tds__SetClientCertificateMode;
  3372. soap_set_version(soap, 2); /* SOAP1.2 */
  3373. soap_serializeheader(soap);
  3374. soap_serialize___tds__SetClientCertificateMode(soap, &soap_tmp___tds__SetClientCertificateMode);
  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___tds__SetClientCertificateMode(soap, &soap_tmp___tds__SetClientCertificateMode, "-tds:SetClientCertificateMode", 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___tds__SetClientCertificateMode(soap, &soap_tmp___tds__SetClientCertificateMode, "-tds:SetClientCertificateMode", 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 (!tds__SetClientCertificateModeResponse)
  3398. return soap_closesock(soap);
  3399. tds__SetClientCertificateModeResponse->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. tds__SetClientCertificateModeResponse->soap_get(soap, "tds:SetClientCertificateModeResponse", "");
  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 DeviceBindingProxy::GetRelayOutputs(const char *endpoint, const char *soap_action, _tds__GetRelayOutputs *tds__GetRelayOutputs, _tds__GetRelayOutputsResponse *tds__GetRelayOutputsResponse)
  3415. { struct soap *soap = this;
  3416. struct __tds__GetRelayOutputs soap_tmp___tds__GetRelayOutputs;
  3417. if (endpoint)
  3418. soap_endpoint = endpoint;
  3419. if (soap_action == NULL)
  3420. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRelayOutputs";
  3421. soap_begin(soap);
  3422. soap->encodingStyle = NULL;
  3423. soap_tmp___tds__GetRelayOutputs.tds__GetRelayOutputs = tds__GetRelayOutputs;
  3424. soap_set_version(soap, 2); /* SOAP1.2 */
  3425. soap_serializeheader(soap);
  3426. soap_serialize___tds__GetRelayOutputs(soap, &soap_tmp___tds__GetRelayOutputs);
  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___tds__GetRelayOutputs(soap, &soap_tmp___tds__GetRelayOutputs, "-tds:GetRelayOutputs", 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___tds__GetRelayOutputs(soap, &soap_tmp___tds__GetRelayOutputs, "-tds:GetRelayOutputs", 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 (!tds__GetRelayOutputsResponse)
  3450. return soap_closesock(soap);
  3451. tds__GetRelayOutputsResponse->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. tds__GetRelayOutputsResponse->soap_get(soap, "tds:GetRelayOutputsResponse", "");
  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 DeviceBindingProxy::SetRelayOutputSettings(const char *endpoint, const char *soap_action, _tds__SetRelayOutputSettings *tds__SetRelayOutputSettings, _tds__SetRelayOutputSettingsResponse *tds__SetRelayOutputSettingsResponse)
  3467. { struct soap *soap = this;
  3468. struct __tds__SetRelayOutputSettings soap_tmp___tds__SetRelayOutputSettings;
  3469. if (endpoint)
  3470. soap_endpoint = endpoint;
  3471. if (soap_action == NULL)
  3472. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputSettings";
  3473. soap_begin(soap);
  3474. soap->encodingStyle = NULL;
  3475. soap_tmp___tds__SetRelayOutputSettings.tds__SetRelayOutputSettings = tds__SetRelayOutputSettings;
  3476. soap_set_version(soap, 2); /* SOAP1.2 */
  3477. soap_serializeheader(soap);
  3478. soap_serialize___tds__SetRelayOutputSettings(soap, &soap_tmp___tds__SetRelayOutputSettings);
  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___tds__SetRelayOutputSettings(soap, &soap_tmp___tds__SetRelayOutputSettings, "-tds:SetRelayOutputSettings", 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___tds__SetRelayOutputSettings(soap, &soap_tmp___tds__SetRelayOutputSettings, "-tds:SetRelayOutputSettings", 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 (!tds__SetRelayOutputSettingsResponse)
  3502. return soap_closesock(soap);
  3503. tds__SetRelayOutputSettingsResponse->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. tds__SetRelayOutputSettingsResponse->soap_get(soap, "tds:SetRelayOutputSettingsResponse", "");
  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 DeviceBindingProxy::SetRelayOutputState(const char *endpoint, const char *soap_action, _tds__SetRelayOutputState *tds__SetRelayOutputState, _tds__SetRelayOutputStateResponse *tds__SetRelayOutputStateResponse)
  3519. { struct soap *soap = this;
  3520. struct __tds__SetRelayOutputState soap_tmp___tds__SetRelayOutputState;
  3521. if (endpoint)
  3522. soap_endpoint = endpoint;
  3523. if (soap_action == NULL)
  3524. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputState";
  3525. soap_begin(soap);
  3526. soap->encodingStyle = NULL;
  3527. soap_tmp___tds__SetRelayOutputState.tds__SetRelayOutputState = tds__SetRelayOutputState;
  3528. soap_set_version(soap, 2); /* SOAP1.2 */
  3529. soap_serializeheader(soap);
  3530. soap_serialize___tds__SetRelayOutputState(soap, &soap_tmp___tds__SetRelayOutputState);
  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___tds__SetRelayOutputState(soap, &soap_tmp___tds__SetRelayOutputState, "-tds:SetRelayOutputState", 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___tds__SetRelayOutputState(soap, &soap_tmp___tds__SetRelayOutputState, "-tds:SetRelayOutputState", 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 (!tds__SetRelayOutputStateResponse)
  3554. return soap_closesock(soap);
  3555. tds__SetRelayOutputStateResponse->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. tds__SetRelayOutputStateResponse->soap_get(soap, "tds:SetRelayOutputStateResponse", "");
  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 DeviceBindingProxy::SendAuxiliaryCommand(const char *endpoint, const char *soap_action, _tds__SendAuxiliaryCommand *tds__SendAuxiliaryCommand, _tds__SendAuxiliaryCommandResponse *tds__SendAuxiliaryCommandResponse)
  3571. { struct soap *soap = this;
  3572. struct __tds__SendAuxiliaryCommand soap_tmp___tds__SendAuxiliaryCommand;
  3573. if (endpoint)
  3574. soap_endpoint = endpoint;
  3575. if (soap_action == NULL)
  3576. soap_action = "http://www.onvif.org/ver10/device/wsdl/SendAuxiliaryCommand";
  3577. soap_begin(soap);
  3578. soap->encodingStyle = NULL;
  3579. soap_tmp___tds__SendAuxiliaryCommand.tds__SendAuxiliaryCommand = tds__SendAuxiliaryCommand;
  3580. soap_set_version(soap, 2); /* SOAP1.2 */
  3581. soap_serializeheader(soap);
  3582. soap_serialize___tds__SendAuxiliaryCommand(soap, &soap_tmp___tds__SendAuxiliaryCommand);
  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___tds__SendAuxiliaryCommand(soap, &soap_tmp___tds__SendAuxiliaryCommand, "-tds:SendAuxiliaryCommand", 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___tds__SendAuxiliaryCommand(soap, &soap_tmp___tds__SendAuxiliaryCommand, "-tds:SendAuxiliaryCommand", 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 (!tds__SendAuxiliaryCommandResponse)
  3606. return soap_closesock(soap);
  3607. tds__SendAuxiliaryCommandResponse->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. tds__SendAuxiliaryCommandResponse->soap_get(soap, "tds:SendAuxiliaryCommandResponse", "");
  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 DeviceBindingProxy::GetCACertificates(const char *endpoint, const char *soap_action, _tds__GetCACertificates *tds__GetCACertificates, _tds__GetCACertificatesResponse *tds__GetCACertificatesResponse)
  3623. { struct soap *soap = this;
  3624. struct __tds__GetCACertificates soap_tmp___tds__GetCACertificates;
  3625. if (endpoint)
  3626. soap_endpoint = endpoint;
  3627. if (soap_action == NULL)
  3628. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCACertificates";
  3629. soap_begin(soap);
  3630. soap->encodingStyle = NULL;
  3631. soap_tmp___tds__GetCACertificates.tds__GetCACertificates = tds__GetCACertificates;
  3632. soap_set_version(soap, 2); /* SOAP1.2 */
  3633. soap_serializeheader(soap);
  3634. soap_serialize___tds__GetCACertificates(soap, &soap_tmp___tds__GetCACertificates);
  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___tds__GetCACertificates(soap, &soap_tmp___tds__GetCACertificates, "-tds:GetCACertificates", 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___tds__GetCACertificates(soap, &soap_tmp___tds__GetCACertificates, "-tds:GetCACertificates", 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 (!tds__GetCACertificatesResponse)
  3658. return soap_closesock(soap);
  3659. tds__GetCACertificatesResponse->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. tds__GetCACertificatesResponse->soap_get(soap, "tds:GetCACertificatesResponse", "");
  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 DeviceBindingProxy::LoadCertificateWithPrivateKey(const char *endpoint, const char *soap_action, _tds__LoadCertificateWithPrivateKey *tds__LoadCertificateWithPrivateKey, _tds__LoadCertificateWithPrivateKeyResponse *tds__LoadCertificateWithPrivateKeyResponse)
  3675. { struct soap *soap = this;
  3676. struct __tds__LoadCertificateWithPrivateKey soap_tmp___tds__LoadCertificateWithPrivateKey;
  3677. if (endpoint)
  3678. soap_endpoint = endpoint;
  3679. if (soap_action == NULL)
  3680. soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCertificateWithPrivateKey";
  3681. soap_begin(soap);
  3682. soap->encodingStyle = NULL;
  3683. soap_tmp___tds__LoadCertificateWithPrivateKey.tds__LoadCertificateWithPrivateKey = tds__LoadCertificateWithPrivateKey;
  3684. soap_set_version(soap, 2); /* SOAP1.2 */
  3685. soap_serializeheader(soap);
  3686. soap_serialize___tds__LoadCertificateWithPrivateKey(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey);
  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___tds__LoadCertificateWithPrivateKey(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey, "-tds:LoadCertificateWithPrivateKey", 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___tds__LoadCertificateWithPrivateKey(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey, "-tds:LoadCertificateWithPrivateKey", 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 (!tds__LoadCertificateWithPrivateKeyResponse)
  3710. return soap_closesock(soap);
  3711. tds__LoadCertificateWithPrivateKeyResponse->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. tds__LoadCertificateWithPrivateKeyResponse->soap_get(soap, "tds:LoadCertificateWithPrivateKeyResponse", "");
  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 DeviceBindingProxy::GetCertificateInformation(const char *endpoint, const char *soap_action, _tds__GetCertificateInformation *tds__GetCertificateInformation, _tds__GetCertificateInformationResponse *tds__GetCertificateInformationResponse)
  3727. { struct soap *soap = this;
  3728. struct __tds__GetCertificateInformation soap_tmp___tds__GetCertificateInformation;
  3729. if (endpoint)
  3730. soap_endpoint = endpoint;
  3731. if (soap_action == NULL)
  3732. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificateInformation";
  3733. soap_begin(soap);
  3734. soap->encodingStyle = NULL;
  3735. soap_tmp___tds__GetCertificateInformation.tds__GetCertificateInformation = tds__GetCertificateInformation;
  3736. soap_set_version(soap, 2); /* SOAP1.2 */
  3737. soap_serializeheader(soap);
  3738. soap_serialize___tds__GetCertificateInformation(soap, &soap_tmp___tds__GetCertificateInformation);
  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___tds__GetCertificateInformation(soap, &soap_tmp___tds__GetCertificateInformation, "-tds:GetCertificateInformation", 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___tds__GetCertificateInformation(soap, &soap_tmp___tds__GetCertificateInformation, "-tds:GetCertificateInformation", 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 (!tds__GetCertificateInformationResponse)
  3762. return soap_closesock(soap);
  3763. tds__GetCertificateInformationResponse->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. tds__GetCertificateInformationResponse->soap_get(soap, "tds:GetCertificateInformationResponse", "");
  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 DeviceBindingProxy::LoadCACertificates(const char *endpoint, const char *soap_action, _tds__LoadCACertificates *tds__LoadCACertificates, _tds__LoadCACertificatesResponse *tds__LoadCACertificatesResponse)
  3779. { struct soap *soap = this;
  3780. struct __tds__LoadCACertificates soap_tmp___tds__LoadCACertificates;
  3781. if (endpoint)
  3782. soap_endpoint = endpoint;
  3783. if (soap_action == NULL)
  3784. soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCACertificates";
  3785. soap_begin(soap);
  3786. soap->encodingStyle = NULL;
  3787. soap_tmp___tds__LoadCACertificates.tds__LoadCACertificates = tds__LoadCACertificates;
  3788. soap_set_version(soap, 2); /* SOAP1.2 */
  3789. soap_serializeheader(soap);
  3790. soap_serialize___tds__LoadCACertificates(soap, &soap_tmp___tds__LoadCACertificates);
  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___tds__LoadCACertificates(soap, &soap_tmp___tds__LoadCACertificates, "-tds:LoadCACertificates", 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___tds__LoadCACertificates(soap, &soap_tmp___tds__LoadCACertificates, "-tds:LoadCACertificates", 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 (!tds__LoadCACertificatesResponse)
  3814. return soap_closesock(soap);
  3815. tds__LoadCACertificatesResponse->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. tds__LoadCACertificatesResponse->soap_get(soap, "tds:LoadCACertificatesResponse", "");
  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 DeviceBindingProxy::CreateDot1XConfiguration(const char *endpoint, const char *soap_action, _tds__CreateDot1XConfiguration *tds__CreateDot1XConfiguration, _tds__CreateDot1XConfigurationResponse *tds__CreateDot1XConfigurationResponse)
  3831. { struct soap *soap = this;
  3832. struct __tds__CreateDot1XConfiguration soap_tmp___tds__CreateDot1XConfiguration;
  3833. if (endpoint)
  3834. soap_endpoint = endpoint;
  3835. if (soap_action == NULL)
  3836. soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateDot1XConfiguration";
  3837. soap_begin(soap);
  3838. soap->encodingStyle = NULL;
  3839. soap_tmp___tds__CreateDot1XConfiguration.tds__CreateDot1XConfiguration = tds__CreateDot1XConfiguration;
  3840. soap_set_version(soap, 2); /* SOAP1.2 */
  3841. soap_serializeheader(soap);
  3842. soap_serialize___tds__CreateDot1XConfiguration(soap, &soap_tmp___tds__CreateDot1XConfiguration);
  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___tds__CreateDot1XConfiguration(soap, &soap_tmp___tds__CreateDot1XConfiguration, "-tds:CreateDot1XConfiguration", 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___tds__CreateDot1XConfiguration(soap, &soap_tmp___tds__CreateDot1XConfiguration, "-tds:CreateDot1XConfiguration", 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 (!tds__CreateDot1XConfigurationResponse)
  3866. return soap_closesock(soap);
  3867. tds__CreateDot1XConfigurationResponse->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. tds__CreateDot1XConfigurationResponse->soap_get(soap, "tds:CreateDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::SetDot1XConfiguration(const char *endpoint, const char *soap_action, _tds__SetDot1XConfiguration *tds__SetDot1XConfiguration, _tds__SetDot1XConfigurationResponse *tds__SetDot1XConfigurationResponse)
  3883. { struct soap *soap = this;
  3884. struct __tds__SetDot1XConfiguration soap_tmp___tds__SetDot1XConfiguration;
  3885. if (endpoint)
  3886. soap_endpoint = endpoint;
  3887. if (soap_action == NULL)
  3888. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDot1XConfiguration";
  3889. soap_begin(soap);
  3890. soap->encodingStyle = NULL;
  3891. soap_tmp___tds__SetDot1XConfiguration.tds__SetDot1XConfiguration = tds__SetDot1XConfiguration;
  3892. soap_set_version(soap, 2); /* SOAP1.2 */
  3893. soap_serializeheader(soap);
  3894. soap_serialize___tds__SetDot1XConfiguration(soap, &soap_tmp___tds__SetDot1XConfiguration);
  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___tds__SetDot1XConfiguration(soap, &soap_tmp___tds__SetDot1XConfiguration, "-tds:SetDot1XConfiguration", 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___tds__SetDot1XConfiguration(soap, &soap_tmp___tds__SetDot1XConfiguration, "-tds:SetDot1XConfiguration", 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 (!tds__SetDot1XConfigurationResponse)
  3918. return soap_closesock(soap);
  3919. tds__SetDot1XConfigurationResponse->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. tds__SetDot1XConfigurationResponse->soap_get(soap, "tds:SetDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::GetDot1XConfiguration(const char *endpoint, const char *soap_action, _tds__GetDot1XConfiguration *tds__GetDot1XConfiguration, _tds__GetDot1XConfigurationResponse *tds__GetDot1XConfigurationResponse)
  3935. { struct soap *soap = this;
  3936. struct __tds__GetDot1XConfiguration soap_tmp___tds__GetDot1XConfiguration;
  3937. if (endpoint)
  3938. soap_endpoint = endpoint;
  3939. if (soap_action == NULL)
  3940. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfiguration";
  3941. soap_begin(soap);
  3942. soap->encodingStyle = NULL;
  3943. soap_tmp___tds__GetDot1XConfiguration.tds__GetDot1XConfiguration = tds__GetDot1XConfiguration;
  3944. soap_set_version(soap, 2); /* SOAP1.2 */
  3945. soap_serializeheader(soap);
  3946. soap_serialize___tds__GetDot1XConfiguration(soap, &soap_tmp___tds__GetDot1XConfiguration);
  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___tds__GetDot1XConfiguration(soap, &soap_tmp___tds__GetDot1XConfiguration, "-tds:GetDot1XConfiguration", 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___tds__GetDot1XConfiguration(soap, &soap_tmp___tds__GetDot1XConfiguration, "-tds:GetDot1XConfiguration", 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 (!tds__GetDot1XConfigurationResponse)
  3970. return soap_closesock(soap);
  3971. tds__GetDot1XConfigurationResponse->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. tds__GetDot1XConfigurationResponse->soap_get(soap, "tds:GetDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::GetDot1XConfigurations(const char *endpoint, const char *soap_action, _tds__GetDot1XConfigurations *tds__GetDot1XConfigurations, _tds__GetDot1XConfigurationsResponse *tds__GetDot1XConfigurationsResponse)
  3987. { struct soap *soap = this;
  3988. struct __tds__GetDot1XConfigurations soap_tmp___tds__GetDot1XConfigurations;
  3989. if (endpoint)
  3990. soap_endpoint = endpoint;
  3991. if (soap_action == NULL)
  3992. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfigurations";
  3993. soap_begin(soap);
  3994. soap->encodingStyle = NULL;
  3995. soap_tmp___tds__GetDot1XConfigurations.tds__GetDot1XConfigurations = tds__GetDot1XConfigurations;
  3996. soap_set_version(soap, 2); /* SOAP1.2 */
  3997. soap_serializeheader(soap);
  3998. soap_serialize___tds__GetDot1XConfigurations(soap, &soap_tmp___tds__GetDot1XConfigurations);
  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___tds__GetDot1XConfigurations(soap, &soap_tmp___tds__GetDot1XConfigurations, "-tds:GetDot1XConfigurations", 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___tds__GetDot1XConfigurations(soap, &soap_tmp___tds__GetDot1XConfigurations, "-tds:GetDot1XConfigurations", 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 (!tds__GetDot1XConfigurationsResponse)
  4022. return soap_closesock(soap);
  4023. tds__GetDot1XConfigurationsResponse->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. tds__GetDot1XConfigurationsResponse->soap_get(soap, "tds:GetDot1XConfigurationsResponse", "");
  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 DeviceBindingProxy::DeleteDot1XConfiguration(const char *endpoint, const char *soap_action, _tds__DeleteDot1XConfiguration *tds__DeleteDot1XConfiguration, _tds__DeleteDot1XConfigurationResponse *tds__DeleteDot1XConfigurationResponse)
  4039. { struct soap *soap = this;
  4040. struct __tds__DeleteDot1XConfiguration soap_tmp___tds__DeleteDot1XConfiguration;
  4041. if (endpoint)
  4042. soap_endpoint = endpoint;
  4043. if (soap_action == NULL)
  4044. soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteDot1XConfiguration";
  4045. soap_begin(soap);
  4046. soap->encodingStyle = NULL;
  4047. soap_tmp___tds__DeleteDot1XConfiguration.tds__DeleteDot1XConfiguration = tds__DeleteDot1XConfiguration;
  4048. soap_set_version(soap, 2); /* SOAP1.2 */
  4049. soap_serializeheader(soap);
  4050. soap_serialize___tds__DeleteDot1XConfiguration(soap, &soap_tmp___tds__DeleteDot1XConfiguration);
  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___tds__DeleteDot1XConfiguration(soap, &soap_tmp___tds__DeleteDot1XConfiguration, "-tds:DeleteDot1XConfiguration", 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___tds__DeleteDot1XConfiguration(soap, &soap_tmp___tds__DeleteDot1XConfiguration, "-tds:DeleteDot1XConfiguration", 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 (!tds__DeleteDot1XConfigurationResponse)
  4074. return soap_closesock(soap);
  4075. tds__DeleteDot1XConfigurationResponse->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. tds__DeleteDot1XConfigurationResponse->soap_get(soap, "tds:DeleteDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::GetDot11Capabilities(const char *endpoint, const char *soap_action, _tds__GetDot11Capabilities *tds__GetDot11Capabilities, _tds__GetDot11CapabilitiesResponse *tds__GetDot11CapabilitiesResponse)
  4091. { struct soap *soap = this;
  4092. struct __tds__GetDot11Capabilities soap_tmp___tds__GetDot11Capabilities;
  4093. if (endpoint)
  4094. soap_endpoint = endpoint;
  4095. if (soap_action == NULL)
  4096. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot11Capabilities";
  4097. soap_begin(soap);
  4098. soap->encodingStyle = NULL;
  4099. soap_tmp___tds__GetDot11Capabilities.tds__GetDot11Capabilities = tds__GetDot11Capabilities;
  4100. soap_set_version(soap, 2); /* SOAP1.2 */
  4101. soap_serializeheader(soap);
  4102. soap_serialize___tds__GetDot11Capabilities(soap, &soap_tmp___tds__GetDot11Capabilities);
  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___tds__GetDot11Capabilities(soap, &soap_tmp___tds__GetDot11Capabilities, "-tds:GetDot11Capabilities", 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___tds__GetDot11Capabilities(soap, &soap_tmp___tds__GetDot11Capabilities, "-tds:GetDot11Capabilities", 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 (!tds__GetDot11CapabilitiesResponse)
  4126. return soap_closesock(soap);
  4127. tds__GetDot11CapabilitiesResponse->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. tds__GetDot11CapabilitiesResponse->soap_get(soap, "tds:GetDot11CapabilitiesResponse", "");
  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 DeviceBindingProxy::GetDot11Status(const char *endpoint, const char *soap_action, _tds__GetDot11Status *tds__GetDot11Status, _tds__GetDot11StatusResponse *tds__GetDot11StatusResponse)
  4143. { struct soap *soap = this;
  4144. struct __tds__GetDot11Status soap_tmp___tds__GetDot11Status;
  4145. if (endpoint)
  4146. soap_endpoint = endpoint;
  4147. if (soap_action == NULL)
  4148. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot11Status";
  4149. soap_begin(soap);
  4150. soap->encodingStyle = NULL;
  4151. soap_tmp___tds__GetDot11Status.tds__GetDot11Status = tds__GetDot11Status;
  4152. soap_set_version(soap, 2); /* SOAP1.2 */
  4153. soap_serializeheader(soap);
  4154. soap_serialize___tds__GetDot11Status(soap, &soap_tmp___tds__GetDot11Status);
  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___tds__GetDot11Status(soap, &soap_tmp___tds__GetDot11Status, "-tds:GetDot11Status", 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___tds__GetDot11Status(soap, &soap_tmp___tds__GetDot11Status, "-tds:GetDot11Status", 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 (!tds__GetDot11StatusResponse)
  4178. return soap_closesock(soap);
  4179. tds__GetDot11StatusResponse->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. tds__GetDot11StatusResponse->soap_get(soap, "tds:GetDot11StatusResponse", "");
  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 DeviceBindingProxy::ScanAvailableDot11Networks(const char *endpoint, const char *soap_action, _tds__ScanAvailableDot11Networks *tds__ScanAvailableDot11Networks, _tds__ScanAvailableDot11NetworksResponse *tds__ScanAvailableDot11NetworksResponse)
  4195. { struct soap *soap = this;
  4196. struct __tds__ScanAvailableDot11Networks soap_tmp___tds__ScanAvailableDot11Networks;
  4197. if (endpoint)
  4198. soap_endpoint = endpoint;
  4199. if (soap_action == NULL)
  4200. soap_action = "http://www.onvif.org/ver10/device/wsdl/ScanAvailableDot11Networks";
  4201. soap_begin(soap);
  4202. soap->encodingStyle = NULL;
  4203. soap_tmp___tds__ScanAvailableDot11Networks.tds__ScanAvailableDot11Networks = tds__ScanAvailableDot11Networks;
  4204. soap_set_version(soap, 2); /* SOAP1.2 */
  4205. soap_serializeheader(soap);
  4206. soap_serialize___tds__ScanAvailableDot11Networks(soap, &soap_tmp___tds__ScanAvailableDot11Networks);
  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___tds__ScanAvailableDot11Networks(soap, &soap_tmp___tds__ScanAvailableDot11Networks, "-tds:ScanAvailableDot11Networks", 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___tds__ScanAvailableDot11Networks(soap, &soap_tmp___tds__ScanAvailableDot11Networks, "-tds:ScanAvailableDot11Networks", 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 (!tds__ScanAvailableDot11NetworksResponse)
  4230. return soap_closesock(soap);
  4231. tds__ScanAvailableDot11NetworksResponse->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. tds__ScanAvailableDot11NetworksResponse->soap_get(soap, "tds:ScanAvailableDot11NetworksResponse", "");
  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 DeviceBindingProxy::GetSystemUris(const char *endpoint, const char *soap_action, _tds__GetSystemUris *tds__GetSystemUris, _tds__GetSystemUrisResponse *tds__GetSystemUrisResponse)
  4247. { struct soap *soap = this;
  4248. struct __tds__GetSystemUris soap_tmp___tds__GetSystemUris;
  4249. if (endpoint)
  4250. soap_endpoint = endpoint;
  4251. if (soap_action == NULL)
  4252. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemUris";
  4253. soap_begin(soap);
  4254. soap->encodingStyle = NULL;
  4255. soap_tmp___tds__GetSystemUris.tds__GetSystemUris = tds__GetSystemUris;
  4256. soap_set_version(soap, 2); /* SOAP1.2 */
  4257. soap_serializeheader(soap);
  4258. soap_serialize___tds__GetSystemUris(soap, &soap_tmp___tds__GetSystemUris);
  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___tds__GetSystemUris(soap, &soap_tmp___tds__GetSystemUris, "-tds:GetSystemUris", 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___tds__GetSystemUris(soap, &soap_tmp___tds__GetSystemUris, "-tds:GetSystemUris", 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 (!tds__GetSystemUrisResponse)
  4282. return soap_closesock(soap);
  4283. tds__GetSystemUrisResponse->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. tds__GetSystemUrisResponse->soap_get(soap, "tds:GetSystemUrisResponse", "");
  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 DeviceBindingProxy::StartFirmwareUpgrade(const char *endpoint, const char *soap_action, _tds__StartFirmwareUpgrade *tds__StartFirmwareUpgrade, _tds__StartFirmwareUpgradeResponse *tds__StartFirmwareUpgradeResponse)
  4299. { struct soap *soap = this;
  4300. struct __tds__StartFirmwareUpgrade soap_tmp___tds__StartFirmwareUpgrade;
  4301. if (endpoint)
  4302. soap_endpoint = endpoint;
  4303. if (soap_action == NULL)
  4304. soap_action = "http://www.onvif.org/ver10/device/wsdl/StartFirmwareUpgrade";
  4305. soap_begin(soap);
  4306. soap->encodingStyle = NULL;
  4307. soap_tmp___tds__StartFirmwareUpgrade.tds__StartFirmwareUpgrade = tds__StartFirmwareUpgrade;
  4308. soap_set_version(soap, 2); /* SOAP1.2 */
  4309. soap_serializeheader(soap);
  4310. soap_serialize___tds__StartFirmwareUpgrade(soap, &soap_tmp___tds__StartFirmwareUpgrade);
  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___tds__StartFirmwareUpgrade(soap, &soap_tmp___tds__StartFirmwareUpgrade, "-tds:StartFirmwareUpgrade", 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___tds__StartFirmwareUpgrade(soap, &soap_tmp___tds__StartFirmwareUpgrade, "-tds:StartFirmwareUpgrade", 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 (!tds__StartFirmwareUpgradeResponse)
  4334. return soap_closesock(soap);
  4335. tds__StartFirmwareUpgradeResponse->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. tds__StartFirmwareUpgradeResponse->soap_get(soap, "tds:StartFirmwareUpgradeResponse", "");
  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 DeviceBindingProxy::StartSystemRestore(const char *endpoint, const char *soap_action, _tds__StartSystemRestore *tds__StartSystemRestore, _tds__StartSystemRestoreResponse *tds__StartSystemRestoreResponse)
  4351. { struct soap *soap = this;
  4352. struct __tds__StartSystemRestore soap_tmp___tds__StartSystemRestore;
  4353. if (endpoint)
  4354. soap_endpoint = endpoint;
  4355. if (soap_action == NULL)
  4356. soap_action = "http://www.onvif.org/ver10/device/wsdl/StartSystemRestore";
  4357. soap_begin(soap);
  4358. soap->encodingStyle = NULL;
  4359. soap_tmp___tds__StartSystemRestore.tds__StartSystemRestore = tds__StartSystemRestore;
  4360. soap_set_version(soap, 2); /* SOAP1.2 */
  4361. soap_serializeheader(soap);
  4362. soap_serialize___tds__StartSystemRestore(soap, &soap_tmp___tds__StartSystemRestore);
  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___tds__StartSystemRestore(soap, &soap_tmp___tds__StartSystemRestore, "-tds:StartSystemRestore", 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___tds__StartSystemRestore(soap, &soap_tmp___tds__StartSystemRestore, "-tds:StartSystemRestore", 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 (!tds__StartSystemRestoreResponse)
  4386. return soap_closesock(soap);
  4387. tds__StartSystemRestoreResponse->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. tds__StartSystemRestoreResponse->soap_get(soap, "tds:StartSystemRestoreResponse", "");
  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 DeviceBindingProxy::GetServices_(const char *endpoint, const char *soap_action, _tds__GetServices *tds__GetServices, _tds__GetServicesResponse *tds__GetServicesResponse)
  4403. { struct soap *soap = this;
  4404. struct __tds__GetServices_ soap_tmp___tds__GetServices_;
  4405. if (endpoint)
  4406. soap_endpoint = endpoint;
  4407. if (soap_action == NULL)
  4408. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetServices";
  4409. soap_begin(soap);
  4410. soap->encodingStyle = NULL;
  4411. soap_tmp___tds__GetServices_.tds__GetServices = tds__GetServices;
  4412. soap_set_version(soap, 2); /* SOAP1.2 */
  4413. soap_serializeheader(soap);
  4414. soap_serialize___tds__GetServices_(soap, &soap_tmp___tds__GetServices_);
  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___tds__GetServices_(soap, &soap_tmp___tds__GetServices_, "-tds:GetServices", 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___tds__GetServices_(soap, &soap_tmp___tds__GetServices_, "-tds:GetServices", 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 (!tds__GetServicesResponse)
  4438. return soap_closesock(soap);
  4439. tds__GetServicesResponse->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. tds__GetServicesResponse->soap_get(soap, "tds:GetServicesResponse", "");
  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 DeviceBindingProxy::GetServiceCapabilities_(const char *endpoint, const char *soap_action, _tds__GetServiceCapabilities *tds__GetServiceCapabilities, _tds__GetServiceCapabilitiesResponse *tds__GetServiceCapabilitiesResponse)
  4455. { struct soap *soap = this;
  4456. struct __tds__GetServiceCapabilities_ soap_tmp___tds__GetServiceCapabilities_;
  4457. if (endpoint)
  4458. soap_endpoint = endpoint;
  4459. if (soap_action == NULL)
  4460. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetServiceCapabilities";
  4461. soap_begin(soap);
  4462. soap->encodingStyle = NULL;
  4463. soap_tmp___tds__GetServiceCapabilities_.tds__GetServiceCapabilities = tds__GetServiceCapabilities;
  4464. soap_set_version(soap, 2); /* SOAP1.2 */
  4465. soap_serializeheader(soap);
  4466. soap_serialize___tds__GetServiceCapabilities_(soap, &soap_tmp___tds__GetServiceCapabilities_);
  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___tds__GetServiceCapabilities_(soap, &soap_tmp___tds__GetServiceCapabilities_, "-tds:GetServiceCapabilities", 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___tds__GetServiceCapabilities_(soap, &soap_tmp___tds__GetServiceCapabilities_, "-tds:GetServiceCapabilities", 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 (!tds__GetServiceCapabilitiesResponse)
  4490. return soap_closesock(soap);
  4491. tds__GetServiceCapabilitiesResponse->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. tds__GetServiceCapabilitiesResponse->soap_get(soap, "tds:GetServiceCapabilitiesResponse", "");
  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 DeviceBindingProxy::GetDeviceInformation_(const char *endpoint, const char *soap_action, _tds__GetDeviceInformation *tds__GetDeviceInformation, _tds__GetDeviceInformationResponse *tds__GetDeviceInformationResponse)
  4507. { struct soap *soap = this;
  4508. struct __tds__GetDeviceInformation_ soap_tmp___tds__GetDeviceInformation_;
  4509. if (endpoint)
  4510. soap_endpoint = endpoint;
  4511. if (soap_action == NULL)
  4512. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDeviceInformation";
  4513. soap_begin(soap);
  4514. soap->encodingStyle = NULL;
  4515. soap_tmp___tds__GetDeviceInformation_.tds__GetDeviceInformation = tds__GetDeviceInformation;
  4516. soap_set_version(soap, 2); /* SOAP1.2 */
  4517. soap_serializeheader(soap);
  4518. soap_serialize___tds__GetDeviceInformation_(soap, &soap_tmp___tds__GetDeviceInformation_);
  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___tds__GetDeviceInformation_(soap, &soap_tmp___tds__GetDeviceInformation_, "-tds:GetDeviceInformation", 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___tds__GetDeviceInformation_(soap, &soap_tmp___tds__GetDeviceInformation_, "-tds:GetDeviceInformation", 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 (!tds__GetDeviceInformationResponse)
  4542. return soap_closesock(soap);
  4543. tds__GetDeviceInformationResponse->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. tds__GetDeviceInformationResponse->soap_get(soap, "tds:GetDeviceInformationResponse", "");
  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 DeviceBindingProxy::SetSystemDateAndTime_(const char *endpoint, const char *soap_action, _tds__SetSystemDateAndTime *tds__SetSystemDateAndTime, _tds__SetSystemDateAndTimeResponse *tds__SetSystemDateAndTimeResponse)
  4559. { struct soap *soap = this;
  4560. struct __tds__SetSystemDateAndTime_ soap_tmp___tds__SetSystemDateAndTime_;
  4561. if (endpoint)
  4562. soap_endpoint = endpoint;
  4563. if (soap_action == NULL)
  4564. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetSystemDateAndTime";
  4565. soap_begin(soap);
  4566. soap->encodingStyle = NULL;
  4567. soap_tmp___tds__SetSystemDateAndTime_.tds__SetSystemDateAndTime = tds__SetSystemDateAndTime;
  4568. soap_set_version(soap, 2); /* SOAP1.2 */
  4569. soap_serializeheader(soap);
  4570. soap_serialize___tds__SetSystemDateAndTime_(soap, &soap_tmp___tds__SetSystemDateAndTime_);
  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___tds__SetSystemDateAndTime_(soap, &soap_tmp___tds__SetSystemDateAndTime_, "-tds:SetSystemDateAndTime", 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___tds__SetSystemDateAndTime_(soap, &soap_tmp___tds__SetSystemDateAndTime_, "-tds:SetSystemDateAndTime", 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 (!tds__SetSystemDateAndTimeResponse)
  4594. return soap_closesock(soap);
  4595. tds__SetSystemDateAndTimeResponse->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. tds__SetSystemDateAndTimeResponse->soap_get(soap, "tds:SetSystemDateAndTimeResponse", "");
  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 DeviceBindingProxy::GetSystemDateAndTime_(const char *endpoint, const char *soap_action, _tds__GetSystemDateAndTime *tds__GetSystemDateAndTime, _tds__GetSystemDateAndTimeResponse *tds__GetSystemDateAndTimeResponse)
  4611. { struct soap *soap = this;
  4612. struct __tds__GetSystemDateAndTime_ soap_tmp___tds__GetSystemDateAndTime_;
  4613. if (endpoint)
  4614. soap_endpoint = endpoint;
  4615. if (soap_action == NULL)
  4616. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime";
  4617. soap_begin(soap);
  4618. soap->encodingStyle = NULL;
  4619. soap_tmp___tds__GetSystemDateAndTime_.tds__GetSystemDateAndTime = tds__GetSystemDateAndTime;
  4620. soap_set_version(soap, 2); /* SOAP1.2 */
  4621. soap_serializeheader(soap);
  4622. soap_serialize___tds__GetSystemDateAndTime_(soap, &soap_tmp___tds__GetSystemDateAndTime_);
  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___tds__GetSystemDateAndTime_(soap, &soap_tmp___tds__GetSystemDateAndTime_, "-tds:GetSystemDateAndTime", 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___tds__GetSystemDateAndTime_(soap, &soap_tmp___tds__GetSystemDateAndTime_, "-tds:GetSystemDateAndTime", 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 (!tds__GetSystemDateAndTimeResponse)
  4646. return soap_closesock(soap);
  4647. tds__GetSystemDateAndTimeResponse->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. tds__GetSystemDateAndTimeResponse->soap_get(soap, "tds:GetSystemDateAndTimeResponse", "");
  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 DeviceBindingProxy::SetSystemFactoryDefault_(const char *endpoint, const char *soap_action, _tds__SetSystemFactoryDefault *tds__SetSystemFactoryDefault, _tds__SetSystemFactoryDefaultResponse *tds__SetSystemFactoryDefaultResponse)
  4663. { struct soap *soap = this;
  4664. struct __tds__SetSystemFactoryDefault_ soap_tmp___tds__SetSystemFactoryDefault_;
  4665. if (endpoint)
  4666. soap_endpoint = endpoint;
  4667. if (soap_action == NULL)
  4668. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetSystemFactoryDefault";
  4669. soap_begin(soap);
  4670. soap->encodingStyle = NULL;
  4671. soap_tmp___tds__SetSystemFactoryDefault_.tds__SetSystemFactoryDefault = tds__SetSystemFactoryDefault;
  4672. soap_set_version(soap, 2); /* SOAP1.2 */
  4673. soap_serializeheader(soap);
  4674. soap_serialize___tds__SetSystemFactoryDefault_(soap, &soap_tmp___tds__SetSystemFactoryDefault_);
  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___tds__SetSystemFactoryDefault_(soap, &soap_tmp___tds__SetSystemFactoryDefault_, "-tds:SetSystemFactoryDefault", 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___tds__SetSystemFactoryDefault_(soap, &soap_tmp___tds__SetSystemFactoryDefault_, "-tds:SetSystemFactoryDefault", 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 (!tds__SetSystemFactoryDefaultResponse)
  4698. return soap_closesock(soap);
  4699. tds__SetSystemFactoryDefaultResponse->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. tds__SetSystemFactoryDefaultResponse->soap_get(soap, "tds:SetSystemFactoryDefaultResponse", "");
  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 DeviceBindingProxy::UpgradeSystemFirmware_(const char *endpoint, const char *soap_action, _tds__UpgradeSystemFirmware *tds__UpgradeSystemFirmware, _tds__UpgradeSystemFirmwareResponse *tds__UpgradeSystemFirmwareResponse)
  4715. { struct soap *soap = this;
  4716. struct __tds__UpgradeSystemFirmware_ soap_tmp___tds__UpgradeSystemFirmware_;
  4717. if (endpoint)
  4718. soap_endpoint = endpoint;
  4719. if (soap_action == NULL)
  4720. soap_action = "http://www.onvif.org/ver10/device/wsdl/UpgradeSystemFirmware";
  4721. soap_begin(soap);
  4722. soap->encodingStyle = NULL;
  4723. soap_tmp___tds__UpgradeSystemFirmware_.tds__UpgradeSystemFirmware = tds__UpgradeSystemFirmware;
  4724. soap_set_version(soap, 2); /* SOAP1.2 */
  4725. soap_serializeheader(soap);
  4726. soap_serialize___tds__UpgradeSystemFirmware_(soap, &soap_tmp___tds__UpgradeSystemFirmware_);
  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___tds__UpgradeSystemFirmware_(soap, &soap_tmp___tds__UpgradeSystemFirmware_, "-tds:UpgradeSystemFirmware", 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___tds__UpgradeSystemFirmware_(soap, &soap_tmp___tds__UpgradeSystemFirmware_, "-tds:UpgradeSystemFirmware", 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 (!tds__UpgradeSystemFirmwareResponse)
  4750. return soap_closesock(soap);
  4751. tds__UpgradeSystemFirmwareResponse->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. tds__UpgradeSystemFirmwareResponse->soap_get(soap, "tds:UpgradeSystemFirmwareResponse", "");
  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 DeviceBindingProxy::SystemReboot_(const char *endpoint, const char *soap_action, _tds__SystemReboot *tds__SystemReboot, _tds__SystemRebootResponse *tds__SystemRebootResponse)
  4767. { struct soap *soap = this;
  4768. struct __tds__SystemReboot_ soap_tmp___tds__SystemReboot_;
  4769. if (endpoint)
  4770. soap_endpoint = endpoint;
  4771. if (soap_action == NULL)
  4772. soap_action = "http://www.onvif.org/ver10/device/wsdl/SystemReboot";
  4773. soap_begin(soap);
  4774. soap->encodingStyle = NULL;
  4775. soap_tmp___tds__SystemReboot_.tds__SystemReboot = tds__SystemReboot;
  4776. soap_set_version(soap, 2); /* SOAP1.2 */
  4777. soap_serializeheader(soap);
  4778. soap_serialize___tds__SystemReboot_(soap, &soap_tmp___tds__SystemReboot_);
  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___tds__SystemReboot_(soap, &soap_tmp___tds__SystemReboot_, "-tds:SystemReboot", 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___tds__SystemReboot_(soap, &soap_tmp___tds__SystemReboot_, "-tds:SystemReboot", 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 (!tds__SystemRebootResponse)
  4802. return soap_closesock(soap);
  4803. tds__SystemRebootResponse->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. tds__SystemRebootResponse->soap_get(soap, "tds:SystemRebootResponse", "");
  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 DeviceBindingProxy::RestoreSystem_(const char *endpoint, const char *soap_action, _tds__RestoreSystem *tds__RestoreSystem, _tds__RestoreSystemResponse *tds__RestoreSystemResponse)
  4819. { struct soap *soap = this;
  4820. struct __tds__RestoreSystem_ soap_tmp___tds__RestoreSystem_;
  4821. if (endpoint)
  4822. soap_endpoint = endpoint;
  4823. if (soap_action == NULL)
  4824. soap_action = "http://www.onvif.org/ver10/device/wsdl/RestoreSystem";
  4825. soap_begin(soap);
  4826. soap->encodingStyle = NULL;
  4827. soap_tmp___tds__RestoreSystem_.tds__RestoreSystem = tds__RestoreSystem;
  4828. soap_set_version(soap, 2); /* SOAP1.2 */
  4829. soap_serializeheader(soap);
  4830. soap_serialize___tds__RestoreSystem_(soap, &soap_tmp___tds__RestoreSystem_);
  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___tds__RestoreSystem_(soap, &soap_tmp___tds__RestoreSystem_, "-tds:RestoreSystem", 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___tds__RestoreSystem_(soap, &soap_tmp___tds__RestoreSystem_, "-tds:RestoreSystem", 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 (!tds__RestoreSystemResponse)
  4854. return soap_closesock(soap);
  4855. tds__RestoreSystemResponse->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. tds__RestoreSystemResponse->soap_get(soap, "tds:RestoreSystemResponse", "");
  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 DeviceBindingProxy::GetSystemBackup_(const char *endpoint, const char *soap_action, _tds__GetSystemBackup *tds__GetSystemBackup, _tds__GetSystemBackupResponse *tds__GetSystemBackupResponse)
  4871. { struct soap *soap = this;
  4872. struct __tds__GetSystemBackup_ soap_tmp___tds__GetSystemBackup_;
  4873. if (endpoint)
  4874. soap_endpoint = endpoint;
  4875. if (soap_action == NULL)
  4876. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemBackup";
  4877. soap_begin(soap);
  4878. soap->encodingStyle = NULL;
  4879. soap_tmp___tds__GetSystemBackup_.tds__GetSystemBackup = tds__GetSystemBackup;
  4880. soap_set_version(soap, 2); /* SOAP1.2 */
  4881. soap_serializeheader(soap);
  4882. soap_serialize___tds__GetSystemBackup_(soap, &soap_tmp___tds__GetSystemBackup_);
  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___tds__GetSystemBackup_(soap, &soap_tmp___tds__GetSystemBackup_, "-tds:GetSystemBackup", 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___tds__GetSystemBackup_(soap, &soap_tmp___tds__GetSystemBackup_, "-tds:GetSystemBackup", 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 (!tds__GetSystemBackupResponse)
  4906. return soap_closesock(soap);
  4907. tds__GetSystemBackupResponse->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. tds__GetSystemBackupResponse->soap_get(soap, "tds:GetSystemBackupResponse", "");
  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 DeviceBindingProxy::GetSystemLog_(const char *endpoint, const char *soap_action, _tds__GetSystemLog *tds__GetSystemLog, _tds__GetSystemLogResponse *tds__GetSystemLogResponse)
  4923. { struct soap *soap = this;
  4924. struct __tds__GetSystemLog_ soap_tmp___tds__GetSystemLog_;
  4925. if (endpoint)
  4926. soap_endpoint = endpoint;
  4927. if (soap_action == NULL)
  4928. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemLog";
  4929. soap_begin(soap);
  4930. soap->encodingStyle = NULL;
  4931. soap_tmp___tds__GetSystemLog_.tds__GetSystemLog = tds__GetSystemLog;
  4932. soap_set_version(soap, 2); /* SOAP1.2 */
  4933. soap_serializeheader(soap);
  4934. soap_serialize___tds__GetSystemLog_(soap, &soap_tmp___tds__GetSystemLog_);
  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___tds__GetSystemLog_(soap, &soap_tmp___tds__GetSystemLog_, "-tds:GetSystemLog", 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___tds__GetSystemLog_(soap, &soap_tmp___tds__GetSystemLog_, "-tds:GetSystemLog", 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 (!tds__GetSystemLogResponse)
  4958. return soap_closesock(soap);
  4959. tds__GetSystemLogResponse->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. tds__GetSystemLogResponse->soap_get(soap, "tds:GetSystemLogResponse", "");
  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 DeviceBindingProxy::GetSystemSupportInformation_(const char *endpoint, const char *soap_action, _tds__GetSystemSupportInformation *tds__GetSystemSupportInformation, _tds__GetSystemSupportInformationResponse *tds__GetSystemSupportInformationResponse)
  4975. { struct soap *soap = this;
  4976. struct __tds__GetSystemSupportInformation_ soap_tmp___tds__GetSystemSupportInformation_;
  4977. if (endpoint)
  4978. soap_endpoint = endpoint;
  4979. if (soap_action == NULL)
  4980. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemSupportInformation";
  4981. soap_begin(soap);
  4982. soap->encodingStyle = NULL;
  4983. soap_tmp___tds__GetSystemSupportInformation_.tds__GetSystemSupportInformation = tds__GetSystemSupportInformation;
  4984. soap_set_version(soap, 2); /* SOAP1.2 */
  4985. soap_serializeheader(soap);
  4986. soap_serialize___tds__GetSystemSupportInformation_(soap, &soap_tmp___tds__GetSystemSupportInformation_);
  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___tds__GetSystemSupportInformation_(soap, &soap_tmp___tds__GetSystemSupportInformation_, "-tds:GetSystemSupportInformation", 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___tds__GetSystemSupportInformation_(soap, &soap_tmp___tds__GetSystemSupportInformation_, "-tds:GetSystemSupportInformation", 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 (!tds__GetSystemSupportInformationResponse)
  5010. return soap_closesock(soap);
  5011. tds__GetSystemSupportInformationResponse->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. tds__GetSystemSupportInformationResponse->soap_get(soap, "tds:GetSystemSupportInformationResponse", "");
  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 DeviceBindingProxy::GetScopes_(const char *endpoint, const char *soap_action, _tds__GetScopes *tds__GetScopes, _tds__GetScopesResponse *tds__GetScopesResponse)
  5027. { struct soap *soap = this;
  5028. struct __tds__GetScopes_ soap_tmp___tds__GetScopes_;
  5029. if (endpoint)
  5030. soap_endpoint = endpoint;
  5031. if (soap_action == NULL)
  5032. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetScopes";
  5033. soap_begin(soap);
  5034. soap->encodingStyle = NULL;
  5035. soap_tmp___tds__GetScopes_.tds__GetScopes = tds__GetScopes;
  5036. soap_set_version(soap, 2); /* SOAP1.2 */
  5037. soap_serializeheader(soap);
  5038. soap_serialize___tds__GetScopes_(soap, &soap_tmp___tds__GetScopes_);
  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___tds__GetScopes_(soap, &soap_tmp___tds__GetScopes_, "-tds:GetScopes", 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___tds__GetScopes_(soap, &soap_tmp___tds__GetScopes_, "-tds:GetScopes", 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 (!tds__GetScopesResponse)
  5062. return soap_closesock(soap);
  5063. tds__GetScopesResponse->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. tds__GetScopesResponse->soap_get(soap, "tds:GetScopesResponse", "");
  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 DeviceBindingProxy::SetScopes_(const char *endpoint, const char *soap_action, _tds__SetScopes *tds__SetScopes, _tds__SetScopesResponse *tds__SetScopesResponse)
  5079. { struct soap *soap = this;
  5080. struct __tds__SetScopes_ soap_tmp___tds__SetScopes_;
  5081. if (endpoint)
  5082. soap_endpoint = endpoint;
  5083. if (soap_action == NULL)
  5084. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetScopes";
  5085. soap_begin(soap);
  5086. soap->encodingStyle = NULL;
  5087. soap_tmp___tds__SetScopes_.tds__SetScopes = tds__SetScopes;
  5088. soap_set_version(soap, 2); /* SOAP1.2 */
  5089. soap_serializeheader(soap);
  5090. soap_serialize___tds__SetScopes_(soap, &soap_tmp___tds__SetScopes_);
  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___tds__SetScopes_(soap, &soap_tmp___tds__SetScopes_, "-tds:SetScopes", 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___tds__SetScopes_(soap, &soap_tmp___tds__SetScopes_, "-tds:SetScopes", 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 (!tds__SetScopesResponse)
  5114. return soap_closesock(soap);
  5115. tds__SetScopesResponse->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. tds__SetScopesResponse->soap_get(soap, "tds:SetScopesResponse", "");
  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 DeviceBindingProxy::AddScopes_(const char *endpoint, const char *soap_action, _tds__AddScopes *tds__AddScopes, _tds__AddScopesResponse *tds__AddScopesResponse)
  5131. { struct soap *soap = this;
  5132. struct __tds__AddScopes_ soap_tmp___tds__AddScopes_;
  5133. if (endpoint)
  5134. soap_endpoint = endpoint;
  5135. if (soap_action == NULL)
  5136. soap_action = "http://www.onvif.org/ver10/device/wsdl/AddScopes";
  5137. soap_begin(soap);
  5138. soap->encodingStyle = NULL;
  5139. soap_tmp___tds__AddScopes_.tds__AddScopes = tds__AddScopes;
  5140. soap_set_version(soap, 2); /* SOAP1.2 */
  5141. soap_serializeheader(soap);
  5142. soap_serialize___tds__AddScopes_(soap, &soap_tmp___tds__AddScopes_);
  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___tds__AddScopes_(soap, &soap_tmp___tds__AddScopes_, "-tds:AddScopes", 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___tds__AddScopes_(soap, &soap_tmp___tds__AddScopes_, "-tds:AddScopes", 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 (!tds__AddScopesResponse)
  5166. return soap_closesock(soap);
  5167. tds__AddScopesResponse->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. tds__AddScopesResponse->soap_get(soap, "tds:AddScopesResponse", "");
  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 DeviceBindingProxy::RemoveScopes_(const char *endpoint, const char *soap_action, _tds__RemoveScopes *tds__RemoveScopes, _tds__RemoveScopesResponse *tds__RemoveScopesResponse)
  5183. { struct soap *soap = this;
  5184. struct __tds__RemoveScopes_ soap_tmp___tds__RemoveScopes_;
  5185. if (endpoint)
  5186. soap_endpoint = endpoint;
  5187. if (soap_action == NULL)
  5188. soap_action = "http://www.onvif.org/ver10/device/wsdl/RemoveScopes";
  5189. soap_begin(soap);
  5190. soap->encodingStyle = NULL;
  5191. soap_tmp___tds__RemoveScopes_.tds__RemoveScopes = tds__RemoveScopes;
  5192. soap_set_version(soap, 2); /* SOAP1.2 */
  5193. soap_serializeheader(soap);
  5194. soap_serialize___tds__RemoveScopes_(soap, &soap_tmp___tds__RemoveScopes_);
  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___tds__RemoveScopes_(soap, &soap_tmp___tds__RemoveScopes_, "-tds:RemoveScopes", 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___tds__RemoveScopes_(soap, &soap_tmp___tds__RemoveScopes_, "-tds:RemoveScopes", 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 (!tds__RemoveScopesResponse)
  5218. return soap_closesock(soap);
  5219. tds__RemoveScopesResponse->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. tds__RemoveScopesResponse->soap_get(soap, "tds:RemoveScopesResponse", "");
  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 DeviceBindingProxy::GetDiscoveryMode_(const char *endpoint, const char *soap_action, _tds__GetDiscoveryMode *tds__GetDiscoveryMode, _tds__GetDiscoveryModeResponse *tds__GetDiscoveryModeResponse)
  5235. { struct soap *soap = this;
  5236. struct __tds__GetDiscoveryMode_ soap_tmp___tds__GetDiscoveryMode_;
  5237. if (endpoint)
  5238. soap_endpoint = endpoint;
  5239. if (soap_action == NULL)
  5240. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDiscoveryMode";
  5241. soap_begin(soap);
  5242. soap->encodingStyle = NULL;
  5243. soap_tmp___tds__GetDiscoveryMode_.tds__GetDiscoveryMode = tds__GetDiscoveryMode;
  5244. soap_set_version(soap, 2); /* SOAP1.2 */
  5245. soap_serializeheader(soap);
  5246. soap_serialize___tds__GetDiscoveryMode_(soap, &soap_tmp___tds__GetDiscoveryMode_);
  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___tds__GetDiscoveryMode_(soap, &soap_tmp___tds__GetDiscoveryMode_, "-tds:GetDiscoveryMode", 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___tds__GetDiscoveryMode_(soap, &soap_tmp___tds__GetDiscoveryMode_, "-tds:GetDiscoveryMode", 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 (!tds__GetDiscoveryModeResponse)
  5270. return soap_closesock(soap);
  5271. tds__GetDiscoveryModeResponse->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. tds__GetDiscoveryModeResponse->soap_get(soap, "tds:GetDiscoveryModeResponse", "");
  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 DeviceBindingProxy::SetDiscoveryMode_(const char *endpoint, const char *soap_action, _tds__SetDiscoveryMode *tds__SetDiscoveryMode, _tds__SetDiscoveryModeResponse *tds__SetDiscoveryModeResponse)
  5287. { struct soap *soap = this;
  5288. struct __tds__SetDiscoveryMode_ soap_tmp___tds__SetDiscoveryMode_;
  5289. if (endpoint)
  5290. soap_endpoint = endpoint;
  5291. if (soap_action == NULL)
  5292. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDiscoveryMode";
  5293. soap_begin(soap);
  5294. soap->encodingStyle = NULL;
  5295. soap_tmp___tds__SetDiscoveryMode_.tds__SetDiscoveryMode = tds__SetDiscoveryMode;
  5296. soap_set_version(soap, 2); /* SOAP1.2 */
  5297. soap_serializeheader(soap);
  5298. soap_serialize___tds__SetDiscoveryMode_(soap, &soap_tmp___tds__SetDiscoveryMode_);
  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___tds__SetDiscoveryMode_(soap, &soap_tmp___tds__SetDiscoveryMode_, "-tds:SetDiscoveryMode", 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___tds__SetDiscoveryMode_(soap, &soap_tmp___tds__SetDiscoveryMode_, "-tds:SetDiscoveryMode", 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 (!tds__SetDiscoveryModeResponse)
  5322. return soap_closesock(soap);
  5323. tds__SetDiscoveryModeResponse->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. tds__SetDiscoveryModeResponse->soap_get(soap, "tds:SetDiscoveryModeResponse", "");
  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 DeviceBindingProxy::GetRemoteDiscoveryMode_(const char *endpoint, const char *soap_action, _tds__GetRemoteDiscoveryMode *tds__GetRemoteDiscoveryMode, _tds__GetRemoteDiscoveryModeResponse *tds__GetRemoteDiscoveryModeResponse)
  5339. { struct soap *soap = this;
  5340. struct __tds__GetRemoteDiscoveryMode_ soap_tmp___tds__GetRemoteDiscoveryMode_;
  5341. if (endpoint)
  5342. soap_endpoint = endpoint;
  5343. if (soap_action == NULL)
  5344. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRemoteDiscoveryMode";
  5345. soap_begin(soap);
  5346. soap->encodingStyle = NULL;
  5347. soap_tmp___tds__GetRemoteDiscoveryMode_.tds__GetRemoteDiscoveryMode = tds__GetRemoteDiscoveryMode;
  5348. soap_set_version(soap, 2); /* SOAP1.2 */
  5349. soap_serializeheader(soap);
  5350. soap_serialize___tds__GetRemoteDiscoveryMode_(soap, &soap_tmp___tds__GetRemoteDiscoveryMode_);
  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___tds__GetRemoteDiscoveryMode_(soap, &soap_tmp___tds__GetRemoteDiscoveryMode_, "-tds:GetRemoteDiscoveryMode", 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___tds__GetRemoteDiscoveryMode_(soap, &soap_tmp___tds__GetRemoteDiscoveryMode_, "-tds:GetRemoteDiscoveryMode", 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 (!tds__GetRemoteDiscoveryModeResponse)
  5374. return soap_closesock(soap);
  5375. tds__GetRemoteDiscoveryModeResponse->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. tds__GetRemoteDiscoveryModeResponse->soap_get(soap, "tds:GetRemoteDiscoveryModeResponse", "");
  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 DeviceBindingProxy::SetRemoteDiscoveryMode_(const char *endpoint, const char *soap_action, _tds__SetRemoteDiscoveryMode *tds__SetRemoteDiscoveryMode, _tds__SetRemoteDiscoveryModeResponse *tds__SetRemoteDiscoveryModeResponse)
  5391. { struct soap *soap = this;
  5392. struct __tds__SetRemoteDiscoveryMode_ soap_tmp___tds__SetRemoteDiscoveryMode_;
  5393. if (endpoint)
  5394. soap_endpoint = endpoint;
  5395. if (soap_action == NULL)
  5396. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRemoteDiscoveryMode";
  5397. soap_begin(soap);
  5398. soap->encodingStyle = NULL;
  5399. soap_tmp___tds__SetRemoteDiscoveryMode_.tds__SetRemoteDiscoveryMode = tds__SetRemoteDiscoveryMode;
  5400. soap_set_version(soap, 2); /* SOAP1.2 */
  5401. soap_serializeheader(soap);
  5402. soap_serialize___tds__SetRemoteDiscoveryMode_(soap, &soap_tmp___tds__SetRemoteDiscoveryMode_);
  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___tds__SetRemoteDiscoveryMode_(soap, &soap_tmp___tds__SetRemoteDiscoveryMode_, "-tds:SetRemoteDiscoveryMode", 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___tds__SetRemoteDiscoveryMode_(soap, &soap_tmp___tds__SetRemoteDiscoveryMode_, "-tds:SetRemoteDiscoveryMode", 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 (!tds__SetRemoteDiscoveryModeResponse)
  5426. return soap_closesock(soap);
  5427. tds__SetRemoteDiscoveryModeResponse->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. tds__SetRemoteDiscoveryModeResponse->soap_get(soap, "tds:SetRemoteDiscoveryModeResponse", "");
  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 DeviceBindingProxy::GetDPAddresses_(const char *endpoint, const char *soap_action, _tds__GetDPAddresses *tds__GetDPAddresses, _tds__GetDPAddressesResponse *tds__GetDPAddressesResponse)
  5443. { struct soap *soap = this;
  5444. struct __tds__GetDPAddresses_ soap_tmp___tds__GetDPAddresses_;
  5445. if (endpoint)
  5446. soap_endpoint = endpoint;
  5447. if (soap_action == NULL)
  5448. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDPAddresses";
  5449. soap_begin(soap);
  5450. soap->encodingStyle = NULL;
  5451. soap_tmp___tds__GetDPAddresses_.tds__GetDPAddresses = tds__GetDPAddresses;
  5452. soap_set_version(soap, 2); /* SOAP1.2 */
  5453. soap_serializeheader(soap);
  5454. soap_serialize___tds__GetDPAddresses_(soap, &soap_tmp___tds__GetDPAddresses_);
  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___tds__GetDPAddresses_(soap, &soap_tmp___tds__GetDPAddresses_, "-tds:GetDPAddresses", 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___tds__GetDPAddresses_(soap, &soap_tmp___tds__GetDPAddresses_, "-tds:GetDPAddresses", 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 (!tds__GetDPAddressesResponse)
  5478. return soap_closesock(soap);
  5479. tds__GetDPAddressesResponse->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. tds__GetDPAddressesResponse->soap_get(soap, "tds:GetDPAddressesResponse", "");
  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 DeviceBindingProxy::GetEndpointReference_(const char *endpoint, const char *soap_action, _tds__GetEndpointReference *tds__GetEndpointReference, _tds__GetEndpointReferenceResponse *tds__GetEndpointReferenceResponse)
  5495. { struct soap *soap = this;
  5496. struct __tds__GetEndpointReference_ soap_tmp___tds__GetEndpointReference_;
  5497. if (endpoint)
  5498. soap_endpoint = endpoint;
  5499. if (soap_action == NULL)
  5500. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetEndpointReference";
  5501. soap_begin(soap);
  5502. soap->encodingStyle = NULL;
  5503. soap_tmp___tds__GetEndpointReference_.tds__GetEndpointReference = tds__GetEndpointReference;
  5504. soap_set_version(soap, 2); /* SOAP1.2 */
  5505. soap_serializeheader(soap);
  5506. soap_serialize___tds__GetEndpointReference_(soap, &soap_tmp___tds__GetEndpointReference_);
  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___tds__GetEndpointReference_(soap, &soap_tmp___tds__GetEndpointReference_, "-tds:GetEndpointReference", 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___tds__GetEndpointReference_(soap, &soap_tmp___tds__GetEndpointReference_, "-tds:GetEndpointReference", 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 (!tds__GetEndpointReferenceResponse)
  5530. return soap_closesock(soap);
  5531. tds__GetEndpointReferenceResponse->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. tds__GetEndpointReferenceResponse->soap_get(soap, "tds:GetEndpointReferenceResponse", "");
  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 DeviceBindingProxy::GetRemoteUser_(const char *endpoint, const char *soap_action, _tds__GetRemoteUser *tds__GetRemoteUser, _tds__GetRemoteUserResponse *tds__GetRemoteUserResponse)
  5547. { struct soap *soap = this;
  5548. struct __tds__GetRemoteUser_ soap_tmp___tds__GetRemoteUser_;
  5549. if (endpoint)
  5550. soap_endpoint = endpoint;
  5551. if (soap_action == NULL)
  5552. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRemoteUser";
  5553. soap_begin(soap);
  5554. soap->encodingStyle = NULL;
  5555. soap_tmp___tds__GetRemoteUser_.tds__GetRemoteUser = tds__GetRemoteUser;
  5556. soap_set_version(soap, 2); /* SOAP1.2 */
  5557. soap_serializeheader(soap);
  5558. soap_serialize___tds__GetRemoteUser_(soap, &soap_tmp___tds__GetRemoteUser_);
  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___tds__GetRemoteUser_(soap, &soap_tmp___tds__GetRemoteUser_, "-tds:GetRemoteUser", 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___tds__GetRemoteUser_(soap, &soap_tmp___tds__GetRemoteUser_, "-tds:GetRemoteUser", 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 (!tds__GetRemoteUserResponse)
  5582. return soap_closesock(soap);
  5583. tds__GetRemoteUserResponse->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. tds__GetRemoteUserResponse->soap_get(soap, "tds:GetRemoteUserResponse", "");
  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 DeviceBindingProxy::SetRemoteUser_(const char *endpoint, const char *soap_action, _tds__SetRemoteUser *tds__SetRemoteUser, _tds__SetRemoteUserResponse *tds__SetRemoteUserResponse)
  5599. { struct soap *soap = this;
  5600. struct __tds__SetRemoteUser_ soap_tmp___tds__SetRemoteUser_;
  5601. if (endpoint)
  5602. soap_endpoint = endpoint;
  5603. if (soap_action == NULL)
  5604. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRemoteUser";
  5605. soap_begin(soap);
  5606. soap->encodingStyle = NULL;
  5607. soap_tmp___tds__SetRemoteUser_.tds__SetRemoteUser = tds__SetRemoteUser;
  5608. soap_set_version(soap, 2); /* SOAP1.2 */
  5609. soap_serializeheader(soap);
  5610. soap_serialize___tds__SetRemoteUser_(soap, &soap_tmp___tds__SetRemoteUser_);
  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___tds__SetRemoteUser_(soap, &soap_tmp___tds__SetRemoteUser_, "-tds:SetRemoteUser", 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___tds__SetRemoteUser_(soap, &soap_tmp___tds__SetRemoteUser_, "-tds:SetRemoteUser", 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 (!tds__SetRemoteUserResponse)
  5634. return soap_closesock(soap);
  5635. tds__SetRemoteUserResponse->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. tds__SetRemoteUserResponse->soap_get(soap, "tds:SetRemoteUserResponse", "");
  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 DeviceBindingProxy::GetUsers_(const char *endpoint, const char *soap_action, _tds__GetUsers *tds__GetUsers, _tds__GetUsersResponse *tds__GetUsersResponse)
  5651. { struct soap *soap = this;
  5652. struct __tds__GetUsers_ soap_tmp___tds__GetUsers_;
  5653. if (endpoint)
  5654. soap_endpoint = endpoint;
  5655. if (soap_action == NULL)
  5656. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetUsers";
  5657. soap_begin(soap);
  5658. soap->encodingStyle = NULL;
  5659. soap_tmp___tds__GetUsers_.tds__GetUsers = tds__GetUsers;
  5660. soap_set_version(soap, 2); /* SOAP1.2 */
  5661. soap_serializeheader(soap);
  5662. soap_serialize___tds__GetUsers_(soap, &soap_tmp___tds__GetUsers_);
  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___tds__GetUsers_(soap, &soap_tmp___tds__GetUsers_, "-tds:GetUsers", 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___tds__GetUsers_(soap, &soap_tmp___tds__GetUsers_, "-tds:GetUsers", 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 (!tds__GetUsersResponse)
  5686. return soap_closesock(soap);
  5687. tds__GetUsersResponse->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. tds__GetUsersResponse->soap_get(soap, "tds:GetUsersResponse", "");
  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 DeviceBindingProxy::CreateUsers_(const char *endpoint, const char *soap_action, _tds__CreateUsers *tds__CreateUsers, _tds__CreateUsersResponse *tds__CreateUsersResponse)
  5703. { struct soap *soap = this;
  5704. struct __tds__CreateUsers_ soap_tmp___tds__CreateUsers_;
  5705. if (endpoint)
  5706. soap_endpoint = endpoint;
  5707. if (soap_action == NULL)
  5708. soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateUsers";
  5709. soap_begin(soap);
  5710. soap->encodingStyle = NULL;
  5711. soap_tmp___tds__CreateUsers_.tds__CreateUsers = tds__CreateUsers;
  5712. soap_set_version(soap, 2); /* SOAP1.2 */
  5713. soap_serializeheader(soap);
  5714. soap_serialize___tds__CreateUsers_(soap, &soap_tmp___tds__CreateUsers_);
  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___tds__CreateUsers_(soap, &soap_tmp___tds__CreateUsers_, "-tds:CreateUsers", 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___tds__CreateUsers_(soap, &soap_tmp___tds__CreateUsers_, "-tds:CreateUsers", 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 (!tds__CreateUsersResponse)
  5738. return soap_closesock(soap);
  5739. tds__CreateUsersResponse->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. tds__CreateUsersResponse->soap_get(soap, "tds:CreateUsersResponse", "");
  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 DeviceBindingProxy::DeleteUsers_(const char *endpoint, const char *soap_action, _tds__DeleteUsers *tds__DeleteUsers, _tds__DeleteUsersResponse *tds__DeleteUsersResponse)
  5755. { struct soap *soap = this;
  5756. struct __tds__DeleteUsers_ soap_tmp___tds__DeleteUsers_;
  5757. if (endpoint)
  5758. soap_endpoint = endpoint;
  5759. if (soap_action == NULL)
  5760. soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteUsers";
  5761. soap_begin(soap);
  5762. soap->encodingStyle = NULL;
  5763. soap_tmp___tds__DeleteUsers_.tds__DeleteUsers = tds__DeleteUsers;
  5764. soap_set_version(soap, 2); /* SOAP1.2 */
  5765. soap_serializeheader(soap);
  5766. soap_serialize___tds__DeleteUsers_(soap, &soap_tmp___tds__DeleteUsers_);
  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___tds__DeleteUsers_(soap, &soap_tmp___tds__DeleteUsers_, "-tds:DeleteUsers", 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___tds__DeleteUsers_(soap, &soap_tmp___tds__DeleteUsers_, "-tds:DeleteUsers", 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 (!tds__DeleteUsersResponse)
  5790. return soap_closesock(soap);
  5791. tds__DeleteUsersResponse->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. tds__DeleteUsersResponse->soap_get(soap, "tds:DeleteUsersResponse", "");
  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 DeviceBindingProxy::SetUser_(const char *endpoint, const char *soap_action, _tds__SetUser *tds__SetUser, _tds__SetUserResponse *tds__SetUserResponse)
  5807. { struct soap *soap = this;
  5808. struct __tds__SetUser_ soap_tmp___tds__SetUser_;
  5809. if (endpoint)
  5810. soap_endpoint = endpoint;
  5811. if (soap_action == NULL)
  5812. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetUser";
  5813. soap_begin(soap);
  5814. soap->encodingStyle = NULL;
  5815. soap_tmp___tds__SetUser_.tds__SetUser = tds__SetUser;
  5816. soap_set_version(soap, 2); /* SOAP1.2 */
  5817. soap_serializeheader(soap);
  5818. soap_serialize___tds__SetUser_(soap, &soap_tmp___tds__SetUser_);
  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___tds__SetUser_(soap, &soap_tmp___tds__SetUser_, "-tds:SetUser", 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___tds__SetUser_(soap, &soap_tmp___tds__SetUser_, "-tds:SetUser", 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 (!tds__SetUserResponse)
  5842. return soap_closesock(soap);
  5843. tds__SetUserResponse->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. tds__SetUserResponse->soap_get(soap, "tds:SetUserResponse", "");
  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 DeviceBindingProxy::GetWsdlUrl_(const char *endpoint, const char *soap_action, _tds__GetWsdlUrl *tds__GetWsdlUrl, _tds__GetWsdlUrlResponse *tds__GetWsdlUrlResponse)
  5859. { struct soap *soap = this;
  5860. struct __tds__GetWsdlUrl_ soap_tmp___tds__GetWsdlUrl_;
  5861. if (endpoint)
  5862. soap_endpoint = endpoint;
  5863. if (soap_action == NULL)
  5864. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetWsdlUrl";
  5865. soap_begin(soap);
  5866. soap->encodingStyle = NULL;
  5867. soap_tmp___tds__GetWsdlUrl_.tds__GetWsdlUrl = tds__GetWsdlUrl;
  5868. soap_set_version(soap, 2); /* SOAP1.2 */
  5869. soap_serializeheader(soap);
  5870. soap_serialize___tds__GetWsdlUrl_(soap, &soap_tmp___tds__GetWsdlUrl_);
  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___tds__GetWsdlUrl_(soap, &soap_tmp___tds__GetWsdlUrl_, "-tds:GetWsdlUrl", 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___tds__GetWsdlUrl_(soap, &soap_tmp___tds__GetWsdlUrl_, "-tds:GetWsdlUrl", 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 (!tds__GetWsdlUrlResponse)
  5894. return soap_closesock(soap);
  5895. tds__GetWsdlUrlResponse->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. tds__GetWsdlUrlResponse->soap_get(soap, "tds:GetWsdlUrlResponse", "");
  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 DeviceBindingProxy::GetCapabilities_(const char *endpoint, const char *soap_action, _tds__GetCapabilities *tds__GetCapabilities, _tds__GetCapabilitiesResponse *tds__GetCapabilitiesResponse)
  5911. { struct soap *soap = this;
  5912. struct __tds__GetCapabilities_ soap_tmp___tds__GetCapabilities_;
  5913. if (endpoint)
  5914. soap_endpoint = endpoint;
  5915. if (soap_action == NULL)
  5916. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCapabilities";
  5917. soap_begin(soap);
  5918. soap->encodingStyle = NULL;
  5919. soap_tmp___tds__GetCapabilities_.tds__GetCapabilities = tds__GetCapabilities;
  5920. soap_set_version(soap, 2); /* SOAP1.2 */
  5921. soap_serializeheader(soap);
  5922. soap_serialize___tds__GetCapabilities_(soap, &soap_tmp___tds__GetCapabilities_);
  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___tds__GetCapabilities_(soap, &soap_tmp___tds__GetCapabilities_, "-tds:GetCapabilities", 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___tds__GetCapabilities_(soap, &soap_tmp___tds__GetCapabilities_, "-tds:GetCapabilities", 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 (!tds__GetCapabilitiesResponse)
  5946. return soap_closesock(soap);
  5947. tds__GetCapabilitiesResponse->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. tds__GetCapabilitiesResponse->soap_get(soap, "tds:GetCapabilitiesResponse", "");
  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 DeviceBindingProxy::SetDPAddresses_(const char *endpoint, const char *soap_action, _tds__SetDPAddresses *tds__SetDPAddresses, _tds__SetDPAddressesResponse *tds__SetDPAddressesResponse)
  5963. { struct soap *soap = this;
  5964. struct __tds__SetDPAddresses_ soap_tmp___tds__SetDPAddresses_;
  5965. if (endpoint)
  5966. soap_endpoint = endpoint;
  5967. if (soap_action == NULL)
  5968. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDPAddresses";
  5969. soap_begin(soap);
  5970. soap->encodingStyle = NULL;
  5971. soap_tmp___tds__SetDPAddresses_.tds__SetDPAddresses = tds__SetDPAddresses;
  5972. soap_set_version(soap, 2); /* SOAP1.2 */
  5973. soap_serializeheader(soap);
  5974. soap_serialize___tds__SetDPAddresses_(soap, &soap_tmp___tds__SetDPAddresses_);
  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___tds__SetDPAddresses_(soap, &soap_tmp___tds__SetDPAddresses_, "-tds:SetDPAddresses", 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___tds__SetDPAddresses_(soap, &soap_tmp___tds__SetDPAddresses_, "-tds:SetDPAddresses", 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 (!tds__SetDPAddressesResponse)
  5998. return soap_closesock(soap);
  5999. tds__SetDPAddressesResponse->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. tds__SetDPAddressesResponse->soap_get(soap, "tds:SetDPAddressesResponse", "");
  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 DeviceBindingProxy::GetHostname_(const char *endpoint, const char *soap_action, _tds__GetHostname *tds__GetHostname, _tds__GetHostnameResponse *tds__GetHostnameResponse)
  6015. { struct soap *soap = this;
  6016. struct __tds__GetHostname_ soap_tmp___tds__GetHostname_;
  6017. if (endpoint)
  6018. soap_endpoint = endpoint;
  6019. if (soap_action == NULL)
  6020. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetHostname";
  6021. soap_begin(soap);
  6022. soap->encodingStyle = NULL;
  6023. soap_tmp___tds__GetHostname_.tds__GetHostname = tds__GetHostname;
  6024. soap_set_version(soap, 2); /* SOAP1.2 */
  6025. soap_serializeheader(soap);
  6026. soap_serialize___tds__GetHostname_(soap, &soap_tmp___tds__GetHostname_);
  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___tds__GetHostname_(soap, &soap_tmp___tds__GetHostname_, "-tds:GetHostname", 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___tds__GetHostname_(soap, &soap_tmp___tds__GetHostname_, "-tds:GetHostname", 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 (!tds__GetHostnameResponse)
  6050. return soap_closesock(soap);
  6051. tds__GetHostnameResponse->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. tds__GetHostnameResponse->soap_get(soap, "tds:GetHostnameResponse", "");
  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 DeviceBindingProxy::SetHostname_(const char *endpoint, const char *soap_action, _tds__SetHostname *tds__SetHostname, _tds__SetHostnameResponse *tds__SetHostnameResponse)
  6067. { struct soap *soap = this;
  6068. struct __tds__SetHostname_ soap_tmp___tds__SetHostname_;
  6069. if (endpoint)
  6070. soap_endpoint = endpoint;
  6071. if (soap_action == NULL)
  6072. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetHostname";
  6073. soap_begin(soap);
  6074. soap->encodingStyle = NULL;
  6075. soap_tmp___tds__SetHostname_.tds__SetHostname = tds__SetHostname;
  6076. soap_set_version(soap, 2); /* SOAP1.2 */
  6077. soap_serializeheader(soap);
  6078. soap_serialize___tds__SetHostname_(soap, &soap_tmp___tds__SetHostname_);
  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___tds__SetHostname_(soap, &soap_tmp___tds__SetHostname_, "-tds:SetHostname", 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___tds__SetHostname_(soap, &soap_tmp___tds__SetHostname_, "-tds:SetHostname", 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 (!tds__SetHostnameResponse)
  6102. return soap_closesock(soap);
  6103. tds__SetHostnameResponse->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. tds__SetHostnameResponse->soap_get(soap, "tds:SetHostnameResponse", "");
  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 DeviceBindingProxy::SetHostnameFromDHCP_(const char *endpoint, const char *soap_action, _tds__SetHostnameFromDHCP *tds__SetHostnameFromDHCP, _tds__SetHostnameFromDHCPResponse *tds__SetHostnameFromDHCPResponse)
  6119. { struct soap *soap = this;
  6120. struct __tds__SetHostnameFromDHCP_ soap_tmp___tds__SetHostnameFromDHCP_;
  6121. if (endpoint)
  6122. soap_endpoint = endpoint;
  6123. if (soap_action == NULL)
  6124. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetHostnameFromDHCP";
  6125. soap_begin(soap);
  6126. soap->encodingStyle = NULL;
  6127. soap_tmp___tds__SetHostnameFromDHCP_.tds__SetHostnameFromDHCP = tds__SetHostnameFromDHCP;
  6128. soap_set_version(soap, 2); /* SOAP1.2 */
  6129. soap_serializeheader(soap);
  6130. soap_serialize___tds__SetHostnameFromDHCP_(soap, &soap_tmp___tds__SetHostnameFromDHCP_);
  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___tds__SetHostnameFromDHCP_(soap, &soap_tmp___tds__SetHostnameFromDHCP_, "-tds:SetHostnameFromDHCP", 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___tds__SetHostnameFromDHCP_(soap, &soap_tmp___tds__SetHostnameFromDHCP_, "-tds:SetHostnameFromDHCP", 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 (!tds__SetHostnameFromDHCPResponse)
  6154. return soap_closesock(soap);
  6155. tds__SetHostnameFromDHCPResponse->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. tds__SetHostnameFromDHCPResponse->soap_get(soap, "tds:SetHostnameFromDHCPResponse", "");
  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 DeviceBindingProxy::GetDNS_(const char *endpoint, const char *soap_action, _tds__GetDNS *tds__GetDNS, _tds__GetDNSResponse *tds__GetDNSResponse)
  6171. { struct soap *soap = this;
  6172. struct __tds__GetDNS_ soap_tmp___tds__GetDNS_;
  6173. if (endpoint)
  6174. soap_endpoint = endpoint;
  6175. if (soap_action == NULL)
  6176. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDNS";
  6177. soap_begin(soap);
  6178. soap->encodingStyle = NULL;
  6179. soap_tmp___tds__GetDNS_.tds__GetDNS = tds__GetDNS;
  6180. soap_set_version(soap, 2); /* SOAP1.2 */
  6181. soap_serializeheader(soap);
  6182. soap_serialize___tds__GetDNS_(soap, &soap_tmp___tds__GetDNS_);
  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___tds__GetDNS_(soap, &soap_tmp___tds__GetDNS_, "-tds:GetDNS", 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___tds__GetDNS_(soap, &soap_tmp___tds__GetDNS_, "-tds:GetDNS", 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 (!tds__GetDNSResponse)
  6206. return soap_closesock(soap);
  6207. tds__GetDNSResponse->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. tds__GetDNSResponse->soap_get(soap, "tds:GetDNSResponse", "");
  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 DeviceBindingProxy::SetDNS_(const char *endpoint, const char *soap_action, _tds__SetDNS *tds__SetDNS, _tds__SetDNSResponse *tds__SetDNSResponse)
  6223. { struct soap *soap = this;
  6224. struct __tds__SetDNS_ soap_tmp___tds__SetDNS_;
  6225. if (endpoint)
  6226. soap_endpoint = endpoint;
  6227. if (soap_action == NULL)
  6228. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDNS";
  6229. soap_begin(soap);
  6230. soap->encodingStyle = NULL;
  6231. soap_tmp___tds__SetDNS_.tds__SetDNS = tds__SetDNS;
  6232. soap_set_version(soap, 2); /* SOAP1.2 */
  6233. soap_serializeheader(soap);
  6234. soap_serialize___tds__SetDNS_(soap, &soap_tmp___tds__SetDNS_);
  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___tds__SetDNS_(soap, &soap_tmp___tds__SetDNS_, "-tds:SetDNS", 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___tds__SetDNS_(soap, &soap_tmp___tds__SetDNS_, "-tds:SetDNS", 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 (!tds__SetDNSResponse)
  6258. return soap_closesock(soap);
  6259. tds__SetDNSResponse->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. tds__SetDNSResponse->soap_get(soap, "tds:SetDNSResponse", "");
  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 DeviceBindingProxy::GetNTP_(const char *endpoint, const char *soap_action, _tds__GetNTP *tds__GetNTP, _tds__GetNTPResponse *tds__GetNTPResponse)
  6275. { struct soap *soap = this;
  6276. struct __tds__GetNTP_ soap_tmp___tds__GetNTP_;
  6277. if (endpoint)
  6278. soap_endpoint = endpoint;
  6279. if (soap_action == NULL)
  6280. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNTP";
  6281. soap_begin(soap);
  6282. soap->encodingStyle = NULL;
  6283. soap_tmp___tds__GetNTP_.tds__GetNTP = tds__GetNTP;
  6284. soap_set_version(soap, 2); /* SOAP1.2 */
  6285. soap_serializeheader(soap);
  6286. soap_serialize___tds__GetNTP_(soap, &soap_tmp___tds__GetNTP_);
  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___tds__GetNTP_(soap, &soap_tmp___tds__GetNTP_, "-tds:GetNTP", 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___tds__GetNTP_(soap, &soap_tmp___tds__GetNTP_, "-tds:GetNTP", 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 (!tds__GetNTPResponse)
  6310. return soap_closesock(soap);
  6311. tds__GetNTPResponse->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. tds__GetNTPResponse->soap_get(soap, "tds:GetNTPResponse", "");
  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 DeviceBindingProxy::SetNTP_(const char *endpoint, const char *soap_action, _tds__SetNTP *tds__SetNTP, _tds__SetNTPResponse *tds__SetNTPResponse)
  6327. { struct soap *soap = this;
  6328. struct __tds__SetNTP_ soap_tmp___tds__SetNTP_;
  6329. if (endpoint)
  6330. soap_endpoint = endpoint;
  6331. if (soap_action == NULL)
  6332. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNTP";
  6333. soap_begin(soap);
  6334. soap->encodingStyle = NULL;
  6335. soap_tmp___tds__SetNTP_.tds__SetNTP = tds__SetNTP;
  6336. soap_set_version(soap, 2); /* SOAP1.2 */
  6337. soap_serializeheader(soap);
  6338. soap_serialize___tds__SetNTP_(soap, &soap_tmp___tds__SetNTP_);
  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___tds__SetNTP_(soap, &soap_tmp___tds__SetNTP_, "-tds:SetNTP", 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___tds__SetNTP_(soap, &soap_tmp___tds__SetNTP_, "-tds:SetNTP", 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 (!tds__SetNTPResponse)
  6362. return soap_closesock(soap);
  6363. tds__SetNTPResponse->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. tds__SetNTPResponse->soap_get(soap, "tds:SetNTPResponse", "");
  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 DeviceBindingProxy::GetDynamicDNS_(const char *endpoint, const char *soap_action, _tds__GetDynamicDNS *tds__GetDynamicDNS, _tds__GetDynamicDNSResponse *tds__GetDynamicDNSResponse)
  6379. { struct soap *soap = this;
  6380. struct __tds__GetDynamicDNS_ soap_tmp___tds__GetDynamicDNS_;
  6381. if (endpoint)
  6382. soap_endpoint = endpoint;
  6383. if (soap_action == NULL)
  6384. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDynamicDNS";
  6385. soap_begin(soap);
  6386. soap->encodingStyle = NULL;
  6387. soap_tmp___tds__GetDynamicDNS_.tds__GetDynamicDNS = tds__GetDynamicDNS;
  6388. soap_set_version(soap, 2); /* SOAP1.2 */
  6389. soap_serializeheader(soap);
  6390. soap_serialize___tds__GetDynamicDNS_(soap, &soap_tmp___tds__GetDynamicDNS_);
  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___tds__GetDynamicDNS_(soap, &soap_tmp___tds__GetDynamicDNS_, "-tds:GetDynamicDNS", 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___tds__GetDynamicDNS_(soap, &soap_tmp___tds__GetDynamicDNS_, "-tds:GetDynamicDNS", 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 (!tds__GetDynamicDNSResponse)
  6414. return soap_closesock(soap);
  6415. tds__GetDynamicDNSResponse->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. tds__GetDynamicDNSResponse->soap_get(soap, "tds:GetDynamicDNSResponse", "");
  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 DeviceBindingProxy::SetDynamicDNS_(const char *endpoint, const char *soap_action, _tds__SetDynamicDNS *tds__SetDynamicDNS, _tds__SetDynamicDNSResponse *tds__SetDynamicDNSResponse)
  6431. { struct soap *soap = this;
  6432. struct __tds__SetDynamicDNS_ soap_tmp___tds__SetDynamicDNS_;
  6433. if (endpoint)
  6434. soap_endpoint = endpoint;
  6435. if (soap_action == NULL)
  6436. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDynamicDNS";
  6437. soap_begin(soap);
  6438. soap->encodingStyle = NULL;
  6439. soap_tmp___tds__SetDynamicDNS_.tds__SetDynamicDNS = tds__SetDynamicDNS;
  6440. soap_set_version(soap, 2); /* SOAP1.2 */
  6441. soap_serializeheader(soap);
  6442. soap_serialize___tds__SetDynamicDNS_(soap, &soap_tmp___tds__SetDynamicDNS_);
  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___tds__SetDynamicDNS_(soap, &soap_tmp___tds__SetDynamicDNS_, "-tds:SetDynamicDNS", 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___tds__SetDynamicDNS_(soap, &soap_tmp___tds__SetDynamicDNS_, "-tds:SetDynamicDNS", 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 (!tds__SetDynamicDNSResponse)
  6466. return soap_closesock(soap);
  6467. tds__SetDynamicDNSResponse->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. tds__SetDynamicDNSResponse->soap_get(soap, "tds:SetDynamicDNSResponse", "");
  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 DeviceBindingProxy::GetNetworkInterfaces_(const char *endpoint, const char *soap_action, _tds__GetNetworkInterfaces *tds__GetNetworkInterfaces, _tds__GetNetworkInterfacesResponse *tds__GetNetworkInterfacesResponse)
  6483. { struct soap *soap = this;
  6484. struct __tds__GetNetworkInterfaces_ soap_tmp___tds__GetNetworkInterfaces_;
  6485. if (endpoint)
  6486. soap_endpoint = endpoint;
  6487. if (soap_action == NULL)
  6488. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces";
  6489. soap_begin(soap);
  6490. soap->encodingStyle = NULL;
  6491. soap_tmp___tds__GetNetworkInterfaces_.tds__GetNetworkInterfaces = tds__GetNetworkInterfaces;
  6492. soap_set_version(soap, 2); /* SOAP1.2 */
  6493. soap_serializeheader(soap);
  6494. soap_serialize___tds__GetNetworkInterfaces_(soap, &soap_tmp___tds__GetNetworkInterfaces_);
  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___tds__GetNetworkInterfaces_(soap, &soap_tmp___tds__GetNetworkInterfaces_, "-tds:GetNetworkInterfaces", 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___tds__GetNetworkInterfaces_(soap, &soap_tmp___tds__GetNetworkInterfaces_, "-tds:GetNetworkInterfaces", 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 (!tds__GetNetworkInterfacesResponse)
  6518. return soap_closesock(soap);
  6519. tds__GetNetworkInterfacesResponse->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. tds__GetNetworkInterfacesResponse->soap_get(soap, "tds:GetNetworkInterfacesResponse", "");
  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 DeviceBindingProxy::SetNetworkInterfaces_(const char *endpoint, const char *soap_action, _tds__SetNetworkInterfaces *tds__SetNetworkInterfaces, _tds__SetNetworkInterfacesResponse *tds__SetNetworkInterfacesResponse)
  6535. { struct soap *soap = this;
  6536. struct __tds__SetNetworkInterfaces_ soap_tmp___tds__SetNetworkInterfaces_;
  6537. if (endpoint)
  6538. soap_endpoint = endpoint;
  6539. if (soap_action == NULL)
  6540. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkInterfaces";
  6541. soap_begin(soap);
  6542. soap->encodingStyle = NULL;
  6543. soap_tmp___tds__SetNetworkInterfaces_.tds__SetNetworkInterfaces = tds__SetNetworkInterfaces;
  6544. soap_set_version(soap, 2); /* SOAP1.2 */
  6545. soap_serializeheader(soap);
  6546. soap_serialize___tds__SetNetworkInterfaces_(soap, &soap_tmp___tds__SetNetworkInterfaces_);
  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___tds__SetNetworkInterfaces_(soap, &soap_tmp___tds__SetNetworkInterfaces_, "-tds:SetNetworkInterfaces", 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___tds__SetNetworkInterfaces_(soap, &soap_tmp___tds__SetNetworkInterfaces_, "-tds:SetNetworkInterfaces", 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 (!tds__SetNetworkInterfacesResponse)
  6570. return soap_closesock(soap);
  6571. tds__SetNetworkInterfacesResponse->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. tds__SetNetworkInterfacesResponse->soap_get(soap, "tds:SetNetworkInterfacesResponse", "");
  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 DeviceBindingProxy::GetNetworkProtocols_(const char *endpoint, const char *soap_action, _tds__GetNetworkProtocols *tds__GetNetworkProtocols, _tds__GetNetworkProtocolsResponse *tds__GetNetworkProtocolsResponse)
  6587. { struct soap *soap = this;
  6588. struct __tds__GetNetworkProtocols_ soap_tmp___tds__GetNetworkProtocols_;
  6589. if (endpoint)
  6590. soap_endpoint = endpoint;
  6591. if (soap_action == NULL)
  6592. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkProtocols";
  6593. soap_begin(soap);
  6594. soap->encodingStyle = NULL;
  6595. soap_tmp___tds__GetNetworkProtocols_.tds__GetNetworkProtocols = tds__GetNetworkProtocols;
  6596. soap_set_version(soap, 2); /* SOAP1.2 */
  6597. soap_serializeheader(soap);
  6598. soap_serialize___tds__GetNetworkProtocols_(soap, &soap_tmp___tds__GetNetworkProtocols_);
  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___tds__GetNetworkProtocols_(soap, &soap_tmp___tds__GetNetworkProtocols_, "-tds:GetNetworkProtocols", 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___tds__GetNetworkProtocols_(soap, &soap_tmp___tds__GetNetworkProtocols_, "-tds:GetNetworkProtocols", 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 (!tds__GetNetworkProtocolsResponse)
  6622. return soap_closesock(soap);
  6623. tds__GetNetworkProtocolsResponse->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. tds__GetNetworkProtocolsResponse->soap_get(soap, "tds:GetNetworkProtocolsResponse", "");
  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 DeviceBindingProxy::SetNetworkProtocols_(const char *endpoint, const char *soap_action, _tds__SetNetworkProtocols *tds__SetNetworkProtocols, _tds__SetNetworkProtocolsResponse *tds__SetNetworkProtocolsResponse)
  6639. { struct soap *soap = this;
  6640. struct __tds__SetNetworkProtocols_ soap_tmp___tds__SetNetworkProtocols_;
  6641. if (endpoint)
  6642. soap_endpoint = endpoint;
  6643. if (soap_action == NULL)
  6644. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkProtocols";
  6645. soap_begin(soap);
  6646. soap->encodingStyle = NULL;
  6647. soap_tmp___tds__SetNetworkProtocols_.tds__SetNetworkProtocols = tds__SetNetworkProtocols;
  6648. soap_set_version(soap, 2); /* SOAP1.2 */
  6649. soap_serializeheader(soap);
  6650. soap_serialize___tds__SetNetworkProtocols_(soap, &soap_tmp___tds__SetNetworkProtocols_);
  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___tds__SetNetworkProtocols_(soap, &soap_tmp___tds__SetNetworkProtocols_, "-tds:SetNetworkProtocols", 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___tds__SetNetworkProtocols_(soap, &soap_tmp___tds__SetNetworkProtocols_, "-tds:SetNetworkProtocols", 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 (!tds__SetNetworkProtocolsResponse)
  6674. return soap_closesock(soap);
  6675. tds__SetNetworkProtocolsResponse->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. tds__SetNetworkProtocolsResponse->soap_get(soap, "tds:SetNetworkProtocolsResponse", "");
  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 DeviceBindingProxy::GetNetworkDefaultGateway_(const char *endpoint, const char *soap_action, _tds__GetNetworkDefaultGateway *tds__GetNetworkDefaultGateway, _tds__GetNetworkDefaultGatewayResponse *tds__GetNetworkDefaultGatewayResponse)
  6691. { struct soap *soap = this;
  6692. struct __tds__GetNetworkDefaultGateway_ soap_tmp___tds__GetNetworkDefaultGateway_;
  6693. if (endpoint)
  6694. soap_endpoint = endpoint;
  6695. if (soap_action == NULL)
  6696. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetNetworkDefaultGateway";
  6697. soap_begin(soap);
  6698. soap->encodingStyle = NULL;
  6699. soap_tmp___tds__GetNetworkDefaultGateway_.tds__GetNetworkDefaultGateway = tds__GetNetworkDefaultGateway;
  6700. soap_set_version(soap, 2); /* SOAP1.2 */
  6701. soap_serializeheader(soap);
  6702. soap_serialize___tds__GetNetworkDefaultGateway_(soap, &soap_tmp___tds__GetNetworkDefaultGateway_);
  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___tds__GetNetworkDefaultGateway_(soap, &soap_tmp___tds__GetNetworkDefaultGateway_, "-tds:GetNetworkDefaultGateway", 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___tds__GetNetworkDefaultGateway_(soap, &soap_tmp___tds__GetNetworkDefaultGateway_, "-tds:GetNetworkDefaultGateway", 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 (!tds__GetNetworkDefaultGatewayResponse)
  6726. return soap_closesock(soap);
  6727. tds__GetNetworkDefaultGatewayResponse->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. tds__GetNetworkDefaultGatewayResponse->soap_get(soap, "tds:GetNetworkDefaultGatewayResponse", "");
  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 DeviceBindingProxy::SetNetworkDefaultGateway_(const char *endpoint, const char *soap_action, _tds__SetNetworkDefaultGateway *tds__SetNetworkDefaultGateway, _tds__SetNetworkDefaultGatewayResponse *tds__SetNetworkDefaultGatewayResponse)
  6743. { struct soap *soap = this;
  6744. struct __tds__SetNetworkDefaultGateway_ soap_tmp___tds__SetNetworkDefaultGateway_;
  6745. if (endpoint)
  6746. soap_endpoint = endpoint;
  6747. if (soap_action == NULL)
  6748. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetNetworkDefaultGateway";
  6749. soap_begin(soap);
  6750. soap->encodingStyle = NULL;
  6751. soap_tmp___tds__SetNetworkDefaultGateway_.tds__SetNetworkDefaultGateway = tds__SetNetworkDefaultGateway;
  6752. soap_set_version(soap, 2); /* SOAP1.2 */
  6753. soap_serializeheader(soap);
  6754. soap_serialize___tds__SetNetworkDefaultGateway_(soap, &soap_tmp___tds__SetNetworkDefaultGateway_);
  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___tds__SetNetworkDefaultGateway_(soap, &soap_tmp___tds__SetNetworkDefaultGateway_, "-tds:SetNetworkDefaultGateway", 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___tds__SetNetworkDefaultGateway_(soap, &soap_tmp___tds__SetNetworkDefaultGateway_, "-tds:SetNetworkDefaultGateway", 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 (!tds__SetNetworkDefaultGatewayResponse)
  6778. return soap_closesock(soap);
  6779. tds__SetNetworkDefaultGatewayResponse->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. tds__SetNetworkDefaultGatewayResponse->soap_get(soap, "tds:SetNetworkDefaultGatewayResponse", "");
  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 DeviceBindingProxy::GetZeroConfiguration_(const char *endpoint, const char *soap_action, _tds__GetZeroConfiguration *tds__GetZeroConfiguration, _tds__GetZeroConfigurationResponse *tds__GetZeroConfigurationResponse)
  6795. { struct soap *soap = this;
  6796. struct __tds__GetZeroConfiguration_ soap_tmp___tds__GetZeroConfiguration_;
  6797. if (endpoint)
  6798. soap_endpoint = endpoint;
  6799. if (soap_action == NULL)
  6800. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetZeroConfiguration";
  6801. soap_begin(soap);
  6802. soap->encodingStyle = NULL;
  6803. soap_tmp___tds__GetZeroConfiguration_.tds__GetZeroConfiguration = tds__GetZeroConfiguration;
  6804. soap_set_version(soap, 2); /* SOAP1.2 */
  6805. soap_serializeheader(soap);
  6806. soap_serialize___tds__GetZeroConfiguration_(soap, &soap_tmp___tds__GetZeroConfiguration_);
  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___tds__GetZeroConfiguration_(soap, &soap_tmp___tds__GetZeroConfiguration_, "-tds:GetZeroConfiguration", 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___tds__GetZeroConfiguration_(soap, &soap_tmp___tds__GetZeroConfiguration_, "-tds:GetZeroConfiguration", 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 (!tds__GetZeroConfigurationResponse)
  6830. return soap_closesock(soap);
  6831. tds__GetZeroConfigurationResponse->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. tds__GetZeroConfigurationResponse->soap_get(soap, "tds:GetZeroConfigurationResponse", "");
  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 DeviceBindingProxy::SetZeroConfiguration_(const char *endpoint, const char *soap_action, _tds__SetZeroConfiguration *tds__SetZeroConfiguration, _tds__SetZeroConfigurationResponse *tds__SetZeroConfigurationResponse)
  6847. { struct soap *soap = this;
  6848. struct __tds__SetZeroConfiguration_ soap_tmp___tds__SetZeroConfiguration_;
  6849. if (endpoint)
  6850. soap_endpoint = endpoint;
  6851. if (soap_action == NULL)
  6852. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetZeroConfiguration";
  6853. soap_begin(soap);
  6854. soap->encodingStyle = NULL;
  6855. soap_tmp___tds__SetZeroConfiguration_.tds__SetZeroConfiguration = tds__SetZeroConfiguration;
  6856. soap_set_version(soap, 2); /* SOAP1.2 */
  6857. soap_serializeheader(soap);
  6858. soap_serialize___tds__SetZeroConfiguration_(soap, &soap_tmp___tds__SetZeroConfiguration_);
  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___tds__SetZeroConfiguration_(soap, &soap_tmp___tds__SetZeroConfiguration_, "-tds:SetZeroConfiguration", 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___tds__SetZeroConfiguration_(soap, &soap_tmp___tds__SetZeroConfiguration_, "-tds:SetZeroConfiguration", 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 (!tds__SetZeroConfigurationResponse)
  6882. return soap_closesock(soap);
  6883. tds__SetZeroConfigurationResponse->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. tds__SetZeroConfigurationResponse->soap_get(soap, "tds:SetZeroConfigurationResponse", "");
  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 DeviceBindingProxy::GetIPAddressFilter_(const char *endpoint, const char *soap_action, _tds__GetIPAddressFilter *tds__GetIPAddressFilter, _tds__GetIPAddressFilterResponse *tds__GetIPAddressFilterResponse)
  6899. { struct soap *soap = this;
  6900. struct __tds__GetIPAddressFilter_ soap_tmp___tds__GetIPAddressFilter_;
  6901. if (endpoint)
  6902. soap_endpoint = endpoint;
  6903. if (soap_action == NULL)
  6904. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetIPAddressFilter";
  6905. soap_begin(soap);
  6906. soap->encodingStyle = NULL;
  6907. soap_tmp___tds__GetIPAddressFilter_.tds__GetIPAddressFilter = tds__GetIPAddressFilter;
  6908. soap_set_version(soap, 2); /* SOAP1.2 */
  6909. soap_serializeheader(soap);
  6910. soap_serialize___tds__GetIPAddressFilter_(soap, &soap_tmp___tds__GetIPAddressFilter_);
  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___tds__GetIPAddressFilter_(soap, &soap_tmp___tds__GetIPAddressFilter_, "-tds:GetIPAddressFilter", 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___tds__GetIPAddressFilter_(soap, &soap_tmp___tds__GetIPAddressFilter_, "-tds:GetIPAddressFilter", 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 (!tds__GetIPAddressFilterResponse)
  6934. return soap_closesock(soap);
  6935. tds__GetIPAddressFilterResponse->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. tds__GetIPAddressFilterResponse->soap_get(soap, "tds:GetIPAddressFilterResponse", "");
  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 DeviceBindingProxy::SetIPAddressFilter_(const char *endpoint, const char *soap_action, _tds__SetIPAddressFilter *tds__SetIPAddressFilter, _tds__SetIPAddressFilterResponse *tds__SetIPAddressFilterResponse)
  6951. { struct soap *soap = this;
  6952. struct __tds__SetIPAddressFilter_ soap_tmp___tds__SetIPAddressFilter_;
  6953. if (endpoint)
  6954. soap_endpoint = endpoint;
  6955. if (soap_action == NULL)
  6956. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetIPAddressFilter";
  6957. soap_begin(soap);
  6958. soap->encodingStyle = NULL;
  6959. soap_tmp___tds__SetIPAddressFilter_.tds__SetIPAddressFilter = tds__SetIPAddressFilter;
  6960. soap_set_version(soap, 2); /* SOAP1.2 */
  6961. soap_serializeheader(soap);
  6962. soap_serialize___tds__SetIPAddressFilter_(soap, &soap_tmp___tds__SetIPAddressFilter_);
  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___tds__SetIPAddressFilter_(soap, &soap_tmp___tds__SetIPAddressFilter_, "-tds:SetIPAddressFilter", 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___tds__SetIPAddressFilter_(soap, &soap_tmp___tds__SetIPAddressFilter_, "-tds:SetIPAddressFilter", 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 (!tds__SetIPAddressFilterResponse)
  6986. return soap_closesock(soap);
  6987. tds__SetIPAddressFilterResponse->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. tds__SetIPAddressFilterResponse->soap_get(soap, "tds:SetIPAddressFilterResponse", "");
  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 DeviceBindingProxy::AddIPAddressFilter_(const char *endpoint, const char *soap_action, _tds__AddIPAddressFilter *tds__AddIPAddressFilter, _tds__AddIPAddressFilterResponse *tds__AddIPAddressFilterResponse)
  7003. { struct soap *soap = this;
  7004. struct __tds__AddIPAddressFilter_ soap_tmp___tds__AddIPAddressFilter_;
  7005. if (endpoint)
  7006. soap_endpoint = endpoint;
  7007. if (soap_action == NULL)
  7008. soap_action = "http://www.onvif.org/ver10/device/wsdl/AddIPAddressFilter";
  7009. soap_begin(soap);
  7010. soap->encodingStyle = NULL;
  7011. soap_tmp___tds__AddIPAddressFilter_.tds__AddIPAddressFilter = tds__AddIPAddressFilter;
  7012. soap_set_version(soap, 2); /* SOAP1.2 */
  7013. soap_serializeheader(soap);
  7014. soap_serialize___tds__AddIPAddressFilter_(soap, &soap_tmp___tds__AddIPAddressFilter_);
  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___tds__AddIPAddressFilter_(soap, &soap_tmp___tds__AddIPAddressFilter_, "-tds:AddIPAddressFilter", 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___tds__AddIPAddressFilter_(soap, &soap_tmp___tds__AddIPAddressFilter_, "-tds:AddIPAddressFilter", 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 (!tds__AddIPAddressFilterResponse)
  7038. return soap_closesock(soap);
  7039. tds__AddIPAddressFilterResponse->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. tds__AddIPAddressFilterResponse->soap_get(soap, "tds:AddIPAddressFilterResponse", "");
  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 DeviceBindingProxy::RemoveIPAddressFilter_(const char *endpoint, const char *soap_action, _tds__RemoveIPAddressFilter *tds__RemoveIPAddressFilter, _tds__RemoveIPAddressFilterResponse *tds__RemoveIPAddressFilterResponse)
  7055. { struct soap *soap = this;
  7056. struct __tds__RemoveIPAddressFilter_ soap_tmp___tds__RemoveIPAddressFilter_;
  7057. if (endpoint)
  7058. soap_endpoint = endpoint;
  7059. if (soap_action == NULL)
  7060. soap_action = "http://www.onvif.org/ver10/device/wsdl/RemoveIPAddressFilter";
  7061. soap_begin(soap);
  7062. soap->encodingStyle = NULL;
  7063. soap_tmp___tds__RemoveIPAddressFilter_.tds__RemoveIPAddressFilter = tds__RemoveIPAddressFilter;
  7064. soap_set_version(soap, 2); /* SOAP1.2 */
  7065. soap_serializeheader(soap);
  7066. soap_serialize___tds__RemoveIPAddressFilter_(soap, &soap_tmp___tds__RemoveIPAddressFilter_);
  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___tds__RemoveIPAddressFilter_(soap, &soap_tmp___tds__RemoveIPAddressFilter_, "-tds:RemoveIPAddressFilter", 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___tds__RemoveIPAddressFilter_(soap, &soap_tmp___tds__RemoveIPAddressFilter_, "-tds:RemoveIPAddressFilter", 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 (!tds__RemoveIPAddressFilterResponse)
  7090. return soap_closesock(soap);
  7091. tds__RemoveIPAddressFilterResponse->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. tds__RemoveIPAddressFilterResponse->soap_get(soap, "tds:RemoveIPAddressFilterResponse", "");
  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 DeviceBindingProxy::GetAccessPolicy_(const char *endpoint, const char *soap_action, _tds__GetAccessPolicy *tds__GetAccessPolicy, _tds__GetAccessPolicyResponse *tds__GetAccessPolicyResponse)
  7107. { struct soap *soap = this;
  7108. struct __tds__GetAccessPolicy_ soap_tmp___tds__GetAccessPolicy_;
  7109. if (endpoint)
  7110. soap_endpoint = endpoint;
  7111. if (soap_action == NULL)
  7112. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetAccessPolicy";
  7113. soap_begin(soap);
  7114. soap->encodingStyle = NULL;
  7115. soap_tmp___tds__GetAccessPolicy_.tds__GetAccessPolicy = tds__GetAccessPolicy;
  7116. soap_set_version(soap, 2); /* SOAP1.2 */
  7117. soap_serializeheader(soap);
  7118. soap_serialize___tds__GetAccessPolicy_(soap, &soap_tmp___tds__GetAccessPolicy_);
  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___tds__GetAccessPolicy_(soap, &soap_tmp___tds__GetAccessPolicy_, "-tds:GetAccessPolicy", 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___tds__GetAccessPolicy_(soap, &soap_tmp___tds__GetAccessPolicy_, "-tds:GetAccessPolicy", 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 (!tds__GetAccessPolicyResponse)
  7142. return soap_closesock(soap);
  7143. tds__GetAccessPolicyResponse->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. tds__GetAccessPolicyResponse->soap_get(soap, "tds:GetAccessPolicyResponse", "");
  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 DeviceBindingProxy::SetAccessPolicy_(const char *endpoint, const char *soap_action, _tds__SetAccessPolicy *tds__SetAccessPolicy, _tds__SetAccessPolicyResponse *tds__SetAccessPolicyResponse)
  7159. { struct soap *soap = this;
  7160. struct __tds__SetAccessPolicy_ soap_tmp___tds__SetAccessPolicy_;
  7161. if (endpoint)
  7162. soap_endpoint = endpoint;
  7163. if (soap_action == NULL)
  7164. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetAccessPolicy";
  7165. soap_begin(soap);
  7166. soap->encodingStyle = NULL;
  7167. soap_tmp___tds__SetAccessPolicy_.tds__SetAccessPolicy = tds__SetAccessPolicy;
  7168. soap_set_version(soap, 2); /* SOAP1.2 */
  7169. soap_serializeheader(soap);
  7170. soap_serialize___tds__SetAccessPolicy_(soap, &soap_tmp___tds__SetAccessPolicy_);
  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___tds__SetAccessPolicy_(soap, &soap_tmp___tds__SetAccessPolicy_, "-tds:SetAccessPolicy", 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___tds__SetAccessPolicy_(soap, &soap_tmp___tds__SetAccessPolicy_, "-tds:SetAccessPolicy", 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 (!tds__SetAccessPolicyResponse)
  7194. return soap_closesock(soap);
  7195. tds__SetAccessPolicyResponse->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. tds__SetAccessPolicyResponse->soap_get(soap, "tds:SetAccessPolicyResponse", "");
  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 DeviceBindingProxy::CreateCertificate_(const char *endpoint, const char *soap_action, _tds__CreateCertificate *tds__CreateCertificate, _tds__CreateCertificateResponse *tds__CreateCertificateResponse)
  7211. { struct soap *soap = this;
  7212. struct __tds__CreateCertificate_ soap_tmp___tds__CreateCertificate_;
  7213. if (endpoint)
  7214. soap_endpoint = endpoint;
  7215. if (soap_action == NULL)
  7216. soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateCertificate";
  7217. soap_begin(soap);
  7218. soap->encodingStyle = NULL;
  7219. soap_tmp___tds__CreateCertificate_.tds__CreateCertificate = tds__CreateCertificate;
  7220. soap_set_version(soap, 2); /* SOAP1.2 */
  7221. soap_serializeheader(soap);
  7222. soap_serialize___tds__CreateCertificate_(soap, &soap_tmp___tds__CreateCertificate_);
  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___tds__CreateCertificate_(soap, &soap_tmp___tds__CreateCertificate_, "-tds:CreateCertificate", 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___tds__CreateCertificate_(soap, &soap_tmp___tds__CreateCertificate_, "-tds:CreateCertificate", 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 (!tds__CreateCertificateResponse)
  7246. return soap_closesock(soap);
  7247. tds__CreateCertificateResponse->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. tds__CreateCertificateResponse->soap_get(soap, "tds:CreateCertificateResponse", "");
  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 DeviceBindingProxy::GetCertificates_(const char *endpoint, const char *soap_action, _tds__GetCertificates *tds__GetCertificates, _tds__GetCertificatesResponse *tds__GetCertificatesResponse)
  7263. { struct soap *soap = this;
  7264. struct __tds__GetCertificates_ soap_tmp___tds__GetCertificates_;
  7265. if (endpoint)
  7266. soap_endpoint = endpoint;
  7267. if (soap_action == NULL)
  7268. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificates";
  7269. soap_begin(soap);
  7270. soap->encodingStyle = NULL;
  7271. soap_tmp___tds__GetCertificates_.tds__GetCertificates = tds__GetCertificates;
  7272. soap_set_version(soap, 2); /* SOAP1.2 */
  7273. soap_serializeheader(soap);
  7274. soap_serialize___tds__GetCertificates_(soap, &soap_tmp___tds__GetCertificates_);
  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___tds__GetCertificates_(soap, &soap_tmp___tds__GetCertificates_, "-tds:GetCertificates", 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___tds__GetCertificates_(soap, &soap_tmp___tds__GetCertificates_, "-tds:GetCertificates", 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 (!tds__GetCertificatesResponse)
  7298. return soap_closesock(soap);
  7299. tds__GetCertificatesResponse->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. tds__GetCertificatesResponse->soap_get(soap, "tds:GetCertificatesResponse", "");
  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 DeviceBindingProxy::GetCertificatesStatus_(const char *endpoint, const char *soap_action, _tds__GetCertificatesStatus *tds__GetCertificatesStatus, _tds__GetCertificatesStatusResponse *tds__GetCertificatesStatusResponse)
  7315. { struct soap *soap = this;
  7316. struct __tds__GetCertificatesStatus_ soap_tmp___tds__GetCertificatesStatus_;
  7317. if (endpoint)
  7318. soap_endpoint = endpoint;
  7319. if (soap_action == NULL)
  7320. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificatesStatus";
  7321. soap_begin(soap);
  7322. soap->encodingStyle = NULL;
  7323. soap_tmp___tds__GetCertificatesStatus_.tds__GetCertificatesStatus = tds__GetCertificatesStatus;
  7324. soap_set_version(soap, 2); /* SOAP1.2 */
  7325. soap_serializeheader(soap);
  7326. soap_serialize___tds__GetCertificatesStatus_(soap, &soap_tmp___tds__GetCertificatesStatus_);
  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___tds__GetCertificatesStatus_(soap, &soap_tmp___tds__GetCertificatesStatus_, "-tds:GetCertificatesStatus", 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___tds__GetCertificatesStatus_(soap, &soap_tmp___tds__GetCertificatesStatus_, "-tds:GetCertificatesStatus", 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 (!tds__GetCertificatesStatusResponse)
  7350. return soap_closesock(soap);
  7351. tds__GetCertificatesStatusResponse->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. tds__GetCertificatesStatusResponse->soap_get(soap, "tds:GetCertificatesStatusResponse", "");
  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 DeviceBindingProxy::SetCertificatesStatus_(const char *endpoint, const char *soap_action, _tds__SetCertificatesStatus *tds__SetCertificatesStatus, _tds__SetCertificatesStatusResponse *tds__SetCertificatesStatusResponse)
  7367. { struct soap *soap = this;
  7368. struct __tds__SetCertificatesStatus_ soap_tmp___tds__SetCertificatesStatus_;
  7369. if (endpoint)
  7370. soap_endpoint = endpoint;
  7371. if (soap_action == NULL)
  7372. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetCertificatesStatus";
  7373. soap_begin(soap);
  7374. soap->encodingStyle = NULL;
  7375. soap_tmp___tds__SetCertificatesStatus_.tds__SetCertificatesStatus = tds__SetCertificatesStatus;
  7376. soap_set_version(soap, 2); /* SOAP1.2 */
  7377. soap_serializeheader(soap);
  7378. soap_serialize___tds__SetCertificatesStatus_(soap, &soap_tmp___tds__SetCertificatesStatus_);
  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___tds__SetCertificatesStatus_(soap, &soap_tmp___tds__SetCertificatesStatus_, "-tds:SetCertificatesStatus", 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___tds__SetCertificatesStatus_(soap, &soap_tmp___tds__SetCertificatesStatus_, "-tds:SetCertificatesStatus", 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 (!tds__SetCertificatesStatusResponse)
  7402. return soap_closesock(soap);
  7403. tds__SetCertificatesStatusResponse->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. tds__SetCertificatesStatusResponse->soap_get(soap, "tds:SetCertificatesStatusResponse", "");
  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 DeviceBindingProxy::DeleteCertificates_(const char *endpoint, const char *soap_action, _tds__DeleteCertificates *tds__DeleteCertificates, _tds__DeleteCertificatesResponse *tds__DeleteCertificatesResponse)
  7419. { struct soap *soap = this;
  7420. struct __tds__DeleteCertificates_ soap_tmp___tds__DeleteCertificates_;
  7421. if (endpoint)
  7422. soap_endpoint = endpoint;
  7423. if (soap_action == NULL)
  7424. soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteCertificates";
  7425. soap_begin(soap);
  7426. soap->encodingStyle = NULL;
  7427. soap_tmp___tds__DeleteCertificates_.tds__DeleteCertificates = tds__DeleteCertificates;
  7428. soap_set_version(soap, 2); /* SOAP1.2 */
  7429. soap_serializeheader(soap);
  7430. soap_serialize___tds__DeleteCertificates_(soap, &soap_tmp___tds__DeleteCertificates_);
  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___tds__DeleteCertificates_(soap, &soap_tmp___tds__DeleteCertificates_, "-tds:DeleteCertificates", 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___tds__DeleteCertificates_(soap, &soap_tmp___tds__DeleteCertificates_, "-tds:DeleteCertificates", 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 (!tds__DeleteCertificatesResponse)
  7454. return soap_closesock(soap);
  7455. tds__DeleteCertificatesResponse->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. tds__DeleteCertificatesResponse->soap_get(soap, "tds:DeleteCertificatesResponse", "");
  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 DeviceBindingProxy::GetPkcs10Request_(const char *endpoint, const char *soap_action, _tds__GetPkcs10Request *tds__GetPkcs10Request, _tds__GetPkcs10RequestResponse *tds__GetPkcs10RequestResponse)
  7471. { struct soap *soap = this;
  7472. struct __tds__GetPkcs10Request_ soap_tmp___tds__GetPkcs10Request_;
  7473. if (endpoint)
  7474. soap_endpoint = endpoint;
  7475. if (soap_action == NULL)
  7476. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetPkcs10Request";
  7477. soap_begin(soap);
  7478. soap->encodingStyle = NULL;
  7479. soap_tmp___tds__GetPkcs10Request_.tds__GetPkcs10Request = tds__GetPkcs10Request;
  7480. soap_set_version(soap, 2); /* SOAP1.2 */
  7481. soap_serializeheader(soap);
  7482. soap_serialize___tds__GetPkcs10Request_(soap, &soap_tmp___tds__GetPkcs10Request_);
  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___tds__GetPkcs10Request_(soap, &soap_tmp___tds__GetPkcs10Request_, "-tds:GetPkcs10Request", 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___tds__GetPkcs10Request_(soap, &soap_tmp___tds__GetPkcs10Request_, "-tds:GetPkcs10Request", 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 (!tds__GetPkcs10RequestResponse)
  7506. return soap_closesock(soap);
  7507. tds__GetPkcs10RequestResponse->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. tds__GetPkcs10RequestResponse->soap_get(soap, "tds:GetPkcs10RequestResponse", "");
  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 DeviceBindingProxy::LoadCertificates_(const char *endpoint, const char *soap_action, _tds__LoadCertificates *tds__LoadCertificates, _tds__LoadCertificatesResponse *tds__LoadCertificatesResponse)
  7523. { struct soap *soap = this;
  7524. struct __tds__LoadCertificates_ soap_tmp___tds__LoadCertificates_;
  7525. if (endpoint)
  7526. soap_endpoint = endpoint;
  7527. if (soap_action == NULL)
  7528. soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCertificates";
  7529. soap_begin(soap);
  7530. soap->encodingStyle = NULL;
  7531. soap_tmp___tds__LoadCertificates_.tds__LoadCertificates = tds__LoadCertificates;
  7532. soap_set_version(soap, 2); /* SOAP1.2 */
  7533. soap_serializeheader(soap);
  7534. soap_serialize___tds__LoadCertificates_(soap, &soap_tmp___tds__LoadCertificates_);
  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___tds__LoadCertificates_(soap, &soap_tmp___tds__LoadCertificates_, "-tds:LoadCertificates", 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___tds__LoadCertificates_(soap, &soap_tmp___tds__LoadCertificates_, "-tds:LoadCertificates", 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 (!tds__LoadCertificatesResponse)
  7558. return soap_closesock(soap);
  7559. tds__LoadCertificatesResponse->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. tds__LoadCertificatesResponse->soap_get(soap, "tds:LoadCertificatesResponse", "");
  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 DeviceBindingProxy::GetClientCertificateMode_(const char *endpoint, const char *soap_action, _tds__GetClientCertificateMode *tds__GetClientCertificateMode, _tds__GetClientCertificateModeResponse *tds__GetClientCertificateModeResponse)
  7575. { struct soap *soap = this;
  7576. struct __tds__GetClientCertificateMode_ soap_tmp___tds__GetClientCertificateMode_;
  7577. if (endpoint)
  7578. soap_endpoint = endpoint;
  7579. if (soap_action == NULL)
  7580. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetClientCertificateMode";
  7581. soap_begin(soap);
  7582. soap->encodingStyle = NULL;
  7583. soap_tmp___tds__GetClientCertificateMode_.tds__GetClientCertificateMode = tds__GetClientCertificateMode;
  7584. soap_set_version(soap, 2); /* SOAP1.2 */
  7585. soap_serializeheader(soap);
  7586. soap_serialize___tds__GetClientCertificateMode_(soap, &soap_tmp___tds__GetClientCertificateMode_);
  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___tds__GetClientCertificateMode_(soap, &soap_tmp___tds__GetClientCertificateMode_, "-tds:GetClientCertificateMode", 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___tds__GetClientCertificateMode_(soap, &soap_tmp___tds__GetClientCertificateMode_, "-tds:GetClientCertificateMode", 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 (!tds__GetClientCertificateModeResponse)
  7610. return soap_closesock(soap);
  7611. tds__GetClientCertificateModeResponse->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. tds__GetClientCertificateModeResponse->soap_get(soap, "tds:GetClientCertificateModeResponse", "");
  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 DeviceBindingProxy::SetClientCertificateMode_(const char *endpoint, const char *soap_action, _tds__SetClientCertificateMode *tds__SetClientCertificateMode, _tds__SetClientCertificateModeResponse *tds__SetClientCertificateModeResponse)
  7627. { struct soap *soap = this;
  7628. struct __tds__SetClientCertificateMode_ soap_tmp___tds__SetClientCertificateMode_;
  7629. if (endpoint)
  7630. soap_endpoint = endpoint;
  7631. if (soap_action == NULL)
  7632. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetClientCertificateMode";
  7633. soap_begin(soap);
  7634. soap->encodingStyle = NULL;
  7635. soap_tmp___tds__SetClientCertificateMode_.tds__SetClientCertificateMode = tds__SetClientCertificateMode;
  7636. soap_set_version(soap, 2); /* SOAP1.2 */
  7637. soap_serializeheader(soap);
  7638. soap_serialize___tds__SetClientCertificateMode_(soap, &soap_tmp___tds__SetClientCertificateMode_);
  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___tds__SetClientCertificateMode_(soap, &soap_tmp___tds__SetClientCertificateMode_, "-tds:SetClientCertificateMode", 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___tds__SetClientCertificateMode_(soap, &soap_tmp___tds__SetClientCertificateMode_, "-tds:SetClientCertificateMode", 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 (!tds__SetClientCertificateModeResponse)
  7662. return soap_closesock(soap);
  7663. tds__SetClientCertificateModeResponse->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. tds__SetClientCertificateModeResponse->soap_get(soap, "tds:SetClientCertificateModeResponse", "");
  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 DeviceBindingProxy::GetRelayOutputs_(const char *endpoint, const char *soap_action, _tds__GetRelayOutputs *tds__GetRelayOutputs, _tds__GetRelayOutputsResponse *tds__GetRelayOutputsResponse)
  7679. { struct soap *soap = this;
  7680. struct __tds__GetRelayOutputs_ soap_tmp___tds__GetRelayOutputs_;
  7681. if (endpoint)
  7682. soap_endpoint = endpoint;
  7683. if (soap_action == NULL)
  7684. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetRelayOutputs";
  7685. soap_begin(soap);
  7686. soap->encodingStyle = NULL;
  7687. soap_tmp___tds__GetRelayOutputs_.tds__GetRelayOutputs = tds__GetRelayOutputs;
  7688. soap_set_version(soap, 2); /* SOAP1.2 */
  7689. soap_serializeheader(soap);
  7690. soap_serialize___tds__GetRelayOutputs_(soap, &soap_tmp___tds__GetRelayOutputs_);
  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___tds__GetRelayOutputs_(soap, &soap_tmp___tds__GetRelayOutputs_, "-tds:GetRelayOutputs", 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___tds__GetRelayOutputs_(soap, &soap_tmp___tds__GetRelayOutputs_, "-tds:GetRelayOutputs", 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 (!tds__GetRelayOutputsResponse)
  7714. return soap_closesock(soap);
  7715. tds__GetRelayOutputsResponse->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. tds__GetRelayOutputsResponse->soap_get(soap, "tds:GetRelayOutputsResponse", "");
  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 DeviceBindingProxy::SetRelayOutputSettings_(const char *endpoint, const char *soap_action, _tds__SetRelayOutputSettings *tds__SetRelayOutputSettings, _tds__SetRelayOutputSettingsResponse *tds__SetRelayOutputSettingsResponse)
  7731. { struct soap *soap = this;
  7732. struct __tds__SetRelayOutputSettings_ soap_tmp___tds__SetRelayOutputSettings_;
  7733. if (endpoint)
  7734. soap_endpoint = endpoint;
  7735. if (soap_action == NULL)
  7736. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputSettings";
  7737. soap_begin(soap);
  7738. soap->encodingStyle = NULL;
  7739. soap_tmp___tds__SetRelayOutputSettings_.tds__SetRelayOutputSettings = tds__SetRelayOutputSettings;
  7740. soap_set_version(soap, 2); /* SOAP1.2 */
  7741. soap_serializeheader(soap);
  7742. soap_serialize___tds__SetRelayOutputSettings_(soap, &soap_tmp___tds__SetRelayOutputSettings_);
  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___tds__SetRelayOutputSettings_(soap, &soap_tmp___tds__SetRelayOutputSettings_, "-tds:SetRelayOutputSettings", 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___tds__SetRelayOutputSettings_(soap, &soap_tmp___tds__SetRelayOutputSettings_, "-tds:SetRelayOutputSettings", 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 (!tds__SetRelayOutputSettingsResponse)
  7766. return soap_closesock(soap);
  7767. tds__SetRelayOutputSettingsResponse->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. tds__SetRelayOutputSettingsResponse->soap_get(soap, "tds:SetRelayOutputSettingsResponse", "");
  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 DeviceBindingProxy::SetRelayOutputState_(const char *endpoint, const char *soap_action, _tds__SetRelayOutputState *tds__SetRelayOutputState, _tds__SetRelayOutputStateResponse *tds__SetRelayOutputStateResponse)
  7783. { struct soap *soap = this;
  7784. struct __tds__SetRelayOutputState_ soap_tmp___tds__SetRelayOutputState_;
  7785. if (endpoint)
  7786. soap_endpoint = endpoint;
  7787. if (soap_action == NULL)
  7788. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetRelayOutputState";
  7789. soap_begin(soap);
  7790. soap->encodingStyle = NULL;
  7791. soap_tmp___tds__SetRelayOutputState_.tds__SetRelayOutputState = tds__SetRelayOutputState;
  7792. soap_set_version(soap, 2); /* SOAP1.2 */
  7793. soap_serializeheader(soap);
  7794. soap_serialize___tds__SetRelayOutputState_(soap, &soap_tmp___tds__SetRelayOutputState_);
  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___tds__SetRelayOutputState_(soap, &soap_tmp___tds__SetRelayOutputState_, "-tds:SetRelayOutputState", 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___tds__SetRelayOutputState_(soap, &soap_tmp___tds__SetRelayOutputState_, "-tds:SetRelayOutputState", 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 (!tds__SetRelayOutputStateResponse)
  7818. return soap_closesock(soap);
  7819. tds__SetRelayOutputStateResponse->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. tds__SetRelayOutputStateResponse->soap_get(soap, "tds:SetRelayOutputStateResponse", "");
  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 DeviceBindingProxy::SendAuxiliaryCommand_(const char *endpoint, const char *soap_action, _tds__SendAuxiliaryCommand *tds__SendAuxiliaryCommand, _tds__SendAuxiliaryCommandResponse *tds__SendAuxiliaryCommandResponse)
  7835. { struct soap *soap = this;
  7836. struct __tds__SendAuxiliaryCommand_ soap_tmp___tds__SendAuxiliaryCommand_;
  7837. if (endpoint)
  7838. soap_endpoint = endpoint;
  7839. if (soap_action == NULL)
  7840. soap_action = "http://www.onvif.org/ver10/device/wsdl/SendAuxiliaryCommand";
  7841. soap_begin(soap);
  7842. soap->encodingStyle = NULL;
  7843. soap_tmp___tds__SendAuxiliaryCommand_.tds__SendAuxiliaryCommand = tds__SendAuxiliaryCommand;
  7844. soap_set_version(soap, 2); /* SOAP1.2 */
  7845. soap_serializeheader(soap);
  7846. soap_serialize___tds__SendAuxiliaryCommand_(soap, &soap_tmp___tds__SendAuxiliaryCommand_);
  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___tds__SendAuxiliaryCommand_(soap, &soap_tmp___tds__SendAuxiliaryCommand_, "-tds:SendAuxiliaryCommand", 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___tds__SendAuxiliaryCommand_(soap, &soap_tmp___tds__SendAuxiliaryCommand_, "-tds:SendAuxiliaryCommand", 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 (!tds__SendAuxiliaryCommandResponse)
  7870. return soap_closesock(soap);
  7871. tds__SendAuxiliaryCommandResponse->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. tds__SendAuxiliaryCommandResponse->soap_get(soap, "tds:SendAuxiliaryCommandResponse", "");
  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 DeviceBindingProxy::GetCACertificates_(const char *endpoint, const char *soap_action, _tds__GetCACertificates *tds__GetCACertificates, _tds__GetCACertificatesResponse *tds__GetCACertificatesResponse)
  7887. { struct soap *soap = this;
  7888. struct __tds__GetCACertificates_ soap_tmp___tds__GetCACertificates_;
  7889. if (endpoint)
  7890. soap_endpoint = endpoint;
  7891. if (soap_action == NULL)
  7892. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCACertificates";
  7893. soap_begin(soap);
  7894. soap->encodingStyle = NULL;
  7895. soap_tmp___tds__GetCACertificates_.tds__GetCACertificates = tds__GetCACertificates;
  7896. soap_set_version(soap, 2); /* SOAP1.2 */
  7897. soap_serializeheader(soap);
  7898. soap_serialize___tds__GetCACertificates_(soap, &soap_tmp___tds__GetCACertificates_);
  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___tds__GetCACertificates_(soap, &soap_tmp___tds__GetCACertificates_, "-tds:GetCACertificates", 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___tds__GetCACertificates_(soap, &soap_tmp___tds__GetCACertificates_, "-tds:GetCACertificates", 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 (!tds__GetCACertificatesResponse)
  7922. return soap_closesock(soap);
  7923. tds__GetCACertificatesResponse->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. tds__GetCACertificatesResponse->soap_get(soap, "tds:GetCACertificatesResponse", "");
  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 DeviceBindingProxy::LoadCertificateWithPrivateKey_(const char *endpoint, const char *soap_action, _tds__LoadCertificateWithPrivateKey *tds__LoadCertificateWithPrivateKey, _tds__LoadCertificateWithPrivateKeyResponse *tds__LoadCertificateWithPrivateKeyResponse)
  7939. { struct soap *soap = this;
  7940. struct __tds__LoadCertificateWithPrivateKey_ soap_tmp___tds__LoadCertificateWithPrivateKey_;
  7941. if (endpoint)
  7942. soap_endpoint = endpoint;
  7943. if (soap_action == NULL)
  7944. soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCertificateWithPrivateKey";
  7945. soap_begin(soap);
  7946. soap->encodingStyle = NULL;
  7947. soap_tmp___tds__LoadCertificateWithPrivateKey_.tds__LoadCertificateWithPrivateKey = tds__LoadCertificateWithPrivateKey;
  7948. soap_set_version(soap, 2); /* SOAP1.2 */
  7949. soap_serializeheader(soap);
  7950. soap_serialize___tds__LoadCertificateWithPrivateKey_(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey_);
  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___tds__LoadCertificateWithPrivateKey_(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey_, "-tds:LoadCertificateWithPrivateKey", 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___tds__LoadCertificateWithPrivateKey_(soap, &soap_tmp___tds__LoadCertificateWithPrivateKey_, "-tds:LoadCertificateWithPrivateKey", 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 (!tds__LoadCertificateWithPrivateKeyResponse)
  7974. return soap_closesock(soap);
  7975. tds__LoadCertificateWithPrivateKeyResponse->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. tds__LoadCertificateWithPrivateKeyResponse->soap_get(soap, "tds:LoadCertificateWithPrivateKeyResponse", "");
  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 DeviceBindingProxy::GetCertificateInformation_(const char *endpoint, const char *soap_action, _tds__GetCertificateInformation *tds__GetCertificateInformation, _tds__GetCertificateInformationResponse *tds__GetCertificateInformationResponse)
  7991. { struct soap *soap = this;
  7992. struct __tds__GetCertificateInformation_ soap_tmp___tds__GetCertificateInformation_;
  7993. if (endpoint)
  7994. soap_endpoint = endpoint;
  7995. if (soap_action == NULL)
  7996. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetCertificateInformation";
  7997. soap_begin(soap);
  7998. soap->encodingStyle = NULL;
  7999. soap_tmp___tds__GetCertificateInformation_.tds__GetCertificateInformation = tds__GetCertificateInformation;
  8000. soap_set_version(soap, 2); /* SOAP1.2 */
  8001. soap_serializeheader(soap);
  8002. soap_serialize___tds__GetCertificateInformation_(soap, &soap_tmp___tds__GetCertificateInformation_);
  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___tds__GetCertificateInformation_(soap, &soap_tmp___tds__GetCertificateInformation_, "-tds:GetCertificateInformation", 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___tds__GetCertificateInformation_(soap, &soap_tmp___tds__GetCertificateInformation_, "-tds:GetCertificateInformation", 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 (!tds__GetCertificateInformationResponse)
  8026. return soap_closesock(soap);
  8027. tds__GetCertificateInformationResponse->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. tds__GetCertificateInformationResponse->soap_get(soap, "tds:GetCertificateInformationResponse", "");
  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 DeviceBindingProxy::LoadCACertificates_(const char *endpoint, const char *soap_action, _tds__LoadCACertificates *tds__LoadCACertificates, _tds__LoadCACertificatesResponse *tds__LoadCACertificatesResponse)
  8043. { struct soap *soap = this;
  8044. struct __tds__LoadCACertificates_ soap_tmp___tds__LoadCACertificates_;
  8045. if (endpoint)
  8046. soap_endpoint = endpoint;
  8047. if (soap_action == NULL)
  8048. soap_action = "http://www.onvif.org/ver10/device/wsdl/LoadCACertificates";
  8049. soap_begin(soap);
  8050. soap->encodingStyle = NULL;
  8051. soap_tmp___tds__LoadCACertificates_.tds__LoadCACertificates = tds__LoadCACertificates;
  8052. soap_set_version(soap, 2); /* SOAP1.2 */
  8053. soap_serializeheader(soap);
  8054. soap_serialize___tds__LoadCACertificates_(soap, &soap_tmp___tds__LoadCACertificates_);
  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___tds__LoadCACertificates_(soap, &soap_tmp___tds__LoadCACertificates_, "-tds:LoadCACertificates", 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___tds__LoadCACertificates_(soap, &soap_tmp___tds__LoadCACertificates_, "-tds:LoadCACertificates", 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 (!tds__LoadCACertificatesResponse)
  8078. return soap_closesock(soap);
  8079. tds__LoadCACertificatesResponse->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. tds__LoadCACertificatesResponse->soap_get(soap, "tds:LoadCACertificatesResponse", "");
  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 DeviceBindingProxy::CreateDot1XConfiguration_(const char *endpoint, const char *soap_action, _tds__CreateDot1XConfiguration *tds__CreateDot1XConfiguration, _tds__CreateDot1XConfigurationResponse *tds__CreateDot1XConfigurationResponse)
  8095. { struct soap *soap = this;
  8096. struct __tds__CreateDot1XConfiguration_ soap_tmp___tds__CreateDot1XConfiguration_;
  8097. if (endpoint)
  8098. soap_endpoint = endpoint;
  8099. if (soap_action == NULL)
  8100. soap_action = "http://www.onvif.org/ver10/device/wsdl/CreateDot1XConfiguration";
  8101. soap_begin(soap);
  8102. soap->encodingStyle = NULL;
  8103. soap_tmp___tds__CreateDot1XConfiguration_.tds__CreateDot1XConfiguration = tds__CreateDot1XConfiguration;
  8104. soap_set_version(soap, 2); /* SOAP1.2 */
  8105. soap_serializeheader(soap);
  8106. soap_serialize___tds__CreateDot1XConfiguration_(soap, &soap_tmp___tds__CreateDot1XConfiguration_);
  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___tds__CreateDot1XConfiguration_(soap, &soap_tmp___tds__CreateDot1XConfiguration_, "-tds:CreateDot1XConfiguration", 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___tds__CreateDot1XConfiguration_(soap, &soap_tmp___tds__CreateDot1XConfiguration_, "-tds:CreateDot1XConfiguration", 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 (!tds__CreateDot1XConfigurationResponse)
  8130. return soap_closesock(soap);
  8131. tds__CreateDot1XConfigurationResponse->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. tds__CreateDot1XConfigurationResponse->soap_get(soap, "tds:CreateDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::SetDot1XConfiguration_(const char *endpoint, const char *soap_action, _tds__SetDot1XConfiguration *tds__SetDot1XConfiguration, _tds__SetDot1XConfigurationResponse *tds__SetDot1XConfigurationResponse)
  8147. { struct soap *soap = this;
  8148. struct __tds__SetDot1XConfiguration_ soap_tmp___tds__SetDot1XConfiguration_;
  8149. if (endpoint)
  8150. soap_endpoint = endpoint;
  8151. if (soap_action == NULL)
  8152. soap_action = "http://www.onvif.org/ver10/device/wsdl/SetDot1XConfiguration";
  8153. soap_begin(soap);
  8154. soap->encodingStyle = NULL;
  8155. soap_tmp___tds__SetDot1XConfiguration_.tds__SetDot1XConfiguration = tds__SetDot1XConfiguration;
  8156. soap_set_version(soap, 2); /* SOAP1.2 */
  8157. soap_serializeheader(soap);
  8158. soap_serialize___tds__SetDot1XConfiguration_(soap, &soap_tmp___tds__SetDot1XConfiguration_);
  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___tds__SetDot1XConfiguration_(soap, &soap_tmp___tds__SetDot1XConfiguration_, "-tds:SetDot1XConfiguration", 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___tds__SetDot1XConfiguration_(soap, &soap_tmp___tds__SetDot1XConfiguration_, "-tds:SetDot1XConfiguration", 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 (!tds__SetDot1XConfigurationResponse)
  8182. return soap_closesock(soap);
  8183. tds__SetDot1XConfigurationResponse->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. tds__SetDot1XConfigurationResponse->soap_get(soap, "tds:SetDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::GetDot1XConfiguration_(const char *endpoint, const char *soap_action, _tds__GetDot1XConfiguration *tds__GetDot1XConfiguration, _tds__GetDot1XConfigurationResponse *tds__GetDot1XConfigurationResponse)
  8199. { struct soap *soap = this;
  8200. struct __tds__GetDot1XConfiguration_ soap_tmp___tds__GetDot1XConfiguration_;
  8201. if (endpoint)
  8202. soap_endpoint = endpoint;
  8203. if (soap_action == NULL)
  8204. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfiguration";
  8205. soap_begin(soap);
  8206. soap->encodingStyle = NULL;
  8207. soap_tmp___tds__GetDot1XConfiguration_.tds__GetDot1XConfiguration = tds__GetDot1XConfiguration;
  8208. soap_set_version(soap, 2); /* SOAP1.2 */
  8209. soap_serializeheader(soap);
  8210. soap_serialize___tds__GetDot1XConfiguration_(soap, &soap_tmp___tds__GetDot1XConfiguration_);
  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___tds__GetDot1XConfiguration_(soap, &soap_tmp___tds__GetDot1XConfiguration_, "-tds:GetDot1XConfiguration", 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___tds__GetDot1XConfiguration_(soap, &soap_tmp___tds__GetDot1XConfiguration_, "-tds:GetDot1XConfiguration", 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 (!tds__GetDot1XConfigurationResponse)
  8234. return soap_closesock(soap);
  8235. tds__GetDot1XConfigurationResponse->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. tds__GetDot1XConfigurationResponse->soap_get(soap, "tds:GetDot1XConfigurationResponse", "");
  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 DeviceBindingProxy::GetDot1XConfigurations_(const char *endpoint, const char *soap_action, _tds__GetDot1XConfigurations *tds__GetDot1XConfigurations, _tds__GetDot1XConfigurationsResponse *tds__GetDot1XConfigurationsResponse)
  8251. { struct soap *soap = this;
  8252. struct __tds__GetDot1XConfigurations_ soap_tmp___tds__GetDot1XConfigurations_;
  8253. if (endpoint)
  8254. soap_endpoint = endpoint;
  8255. if (soap_action == NULL)
  8256. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot1XConfigurations";
  8257. soap_begin(soap);
  8258. soap->encodingStyle = NULL;
  8259. soap_tmp___tds__GetDot1XConfigurations_.tds__GetDot1XConfigurations = tds__GetDot1XConfigurations;
  8260. soap_set_version(soap, 2); /* SOAP1.2 */
  8261. soap_serializeheader(soap);
  8262. soap_serialize___tds__GetDot1XConfigurations_(soap, &soap_tmp___tds__GetDot1XConfigurations_);
  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___tds__GetDot1XConfigurations_(soap, &soap_tmp___tds__GetDot1XConfigurations_, "-tds:GetDot1XConfigurations", 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___tds__GetDot1XConfigurations_(soap, &soap_tmp___tds__GetDot1XConfigurations_, "-tds:GetDot1XConfigurations", 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 (!tds__GetDot1XConfigurationsResponse)
  8286. return soap_closesock(soap);
  8287. tds__GetDot1XConfigurationsResponse->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. tds__GetDot1XConfigurationsResponse->soap_get(soap, "tds:GetDot1XConfigurationsResponse", "");
  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 DeviceBindingProxy::DeleteDot1XConfiguration_(const char *endpoint, const char *soap_action, _tds__DeleteDot1XConfiguration *tds__DeleteDot1XConfiguration, _tds__DeleteDot1XConfigurationResponse *tds__DeleteDot1XConfigurationResponse)
  8303. { struct soap *soap = this;
  8304. struct __tds__DeleteDot1XConfiguration_ soap_tmp___tds__DeleteDot1XConfiguration_;
  8305. if (endpoint)
  8306. soap_endpoint = endpoint;
  8307. if (soap_action == NULL)
  8308. soap_action = "http://www.onvif.org/ver10/device/wsdl/DeleteDot1XConfiguration";
  8309. soap_begin(soap);
  8310. soap->encodingStyle = NULL;
  8311. soap_tmp___tds__DeleteDot1XConfiguration_.tds__DeleteDot1XConfiguration = tds__DeleteDot1XConfiguration;
  8312. soap_set_version(soap, 2); /* SOAP1.2 */
  8313. soap_serializeheader(soap);
  8314. soap_serialize___tds__DeleteDot1XConfiguration_(soap, &soap_tmp___tds__DeleteDot1XConfiguration_);
  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___tds__DeleteDot1XConfiguration_(soap, &soap_tmp___tds__DeleteDot1XConfiguration_, "-tds:DeleteDot1XConfiguration", 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___tds__DeleteDot1XConfiguration_(soap, &soap_tmp___tds__DeleteDot1XConfiguration_, "-tds:DeleteDot1XConfiguration", 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 (!tds__DeleteDot1XConfigurationResponse)
  8338. return soap_closesock(soap);
  8339. tds__DeleteDot1XConfigurationResponse->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. tds__DeleteDot1XConfigurationResponse->soap_get(soap, "tds:DeleteDot1XConfigurationResponse", "");
  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. int DeviceBindingProxy::GetDot11Capabilities_(const char *endpoint, const char *soap_action, _tds__GetDot11Capabilities *tds__GetDot11Capabilities, _tds__GetDot11CapabilitiesResponse *tds__GetDot11CapabilitiesResponse)
  8355. { struct soap *soap = this;
  8356. struct __tds__GetDot11Capabilities_ soap_tmp___tds__GetDot11Capabilities_;
  8357. if (endpoint)
  8358. soap_endpoint = endpoint;
  8359. if (soap_action == NULL)
  8360. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot11Capabilities";
  8361. soap_begin(soap);
  8362. soap->encodingStyle = NULL;
  8363. soap_tmp___tds__GetDot11Capabilities_.tds__GetDot11Capabilities = tds__GetDot11Capabilities;
  8364. soap_set_version(soap, 2); /* SOAP1.2 */
  8365. soap_serializeheader(soap);
  8366. soap_serialize___tds__GetDot11Capabilities_(soap, &soap_tmp___tds__GetDot11Capabilities_);
  8367. if (soap_begin_count(soap))
  8368. return soap->error;
  8369. if (soap->mode & SOAP_IO_LENGTH)
  8370. { if (soap_envelope_begin_out(soap)
  8371. || soap_putheader(soap)
  8372. || soap_body_begin_out(soap)
  8373. || soap_put___tds__GetDot11Capabilities_(soap, &soap_tmp___tds__GetDot11Capabilities_, "-tds:GetDot11Capabilities", NULL)
  8374. || soap_body_end_out(soap)
  8375. || soap_envelope_end_out(soap))
  8376. return soap->error;
  8377. }
  8378. if (soap_end_count(soap))
  8379. return soap->error;
  8380. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8381. || soap_envelope_begin_out(soap)
  8382. || soap_putheader(soap)
  8383. || soap_body_begin_out(soap)
  8384. || soap_put___tds__GetDot11Capabilities_(soap, &soap_tmp___tds__GetDot11Capabilities_, "-tds:GetDot11Capabilities", NULL)
  8385. || soap_body_end_out(soap)
  8386. || soap_envelope_end_out(soap)
  8387. || soap_end_send(soap))
  8388. return soap_closesock(soap);
  8389. if (!tds__GetDot11CapabilitiesResponse)
  8390. return soap_closesock(soap);
  8391. tds__GetDot11CapabilitiesResponse->soap_default(soap);
  8392. if (soap_begin_recv(soap)
  8393. || soap_envelope_begin_in(soap)
  8394. || soap_recv_header(soap)
  8395. || soap_body_begin_in(soap))
  8396. return soap_closesock(soap);
  8397. tds__GetDot11CapabilitiesResponse->soap_get(soap, "tds:GetDot11CapabilitiesResponse", "");
  8398. if (soap->error)
  8399. return soap_recv_fault(soap, 0);
  8400. if (soap_body_end_in(soap)
  8401. || soap_envelope_end_in(soap)
  8402. || soap_end_recv(soap))
  8403. return soap_closesock(soap);
  8404. return soap_closesock(soap);
  8405. }
  8406. int DeviceBindingProxy::GetDot11Status_(const char *endpoint, const char *soap_action, _tds__GetDot11Status *tds__GetDot11Status, _tds__GetDot11StatusResponse *tds__GetDot11StatusResponse)
  8407. { struct soap *soap = this;
  8408. struct __tds__GetDot11Status_ soap_tmp___tds__GetDot11Status_;
  8409. if (endpoint)
  8410. soap_endpoint = endpoint;
  8411. if (soap_action == NULL)
  8412. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetDot11Status";
  8413. soap_begin(soap);
  8414. soap->encodingStyle = NULL;
  8415. soap_tmp___tds__GetDot11Status_.tds__GetDot11Status = tds__GetDot11Status;
  8416. soap_set_version(soap, 2); /* SOAP1.2 */
  8417. soap_serializeheader(soap);
  8418. soap_serialize___tds__GetDot11Status_(soap, &soap_tmp___tds__GetDot11Status_);
  8419. if (soap_begin_count(soap))
  8420. return soap->error;
  8421. if (soap->mode & SOAP_IO_LENGTH)
  8422. { if (soap_envelope_begin_out(soap)
  8423. || soap_putheader(soap)
  8424. || soap_body_begin_out(soap)
  8425. || soap_put___tds__GetDot11Status_(soap, &soap_tmp___tds__GetDot11Status_, "-tds:GetDot11Status", NULL)
  8426. || soap_body_end_out(soap)
  8427. || soap_envelope_end_out(soap))
  8428. return soap->error;
  8429. }
  8430. if (soap_end_count(soap))
  8431. return soap->error;
  8432. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8433. || soap_envelope_begin_out(soap)
  8434. || soap_putheader(soap)
  8435. || soap_body_begin_out(soap)
  8436. || soap_put___tds__GetDot11Status_(soap, &soap_tmp___tds__GetDot11Status_, "-tds:GetDot11Status", NULL)
  8437. || soap_body_end_out(soap)
  8438. || soap_envelope_end_out(soap)
  8439. || soap_end_send(soap))
  8440. return soap_closesock(soap);
  8441. if (!tds__GetDot11StatusResponse)
  8442. return soap_closesock(soap);
  8443. tds__GetDot11StatusResponse->soap_default(soap);
  8444. if (soap_begin_recv(soap)
  8445. || soap_envelope_begin_in(soap)
  8446. || soap_recv_header(soap)
  8447. || soap_body_begin_in(soap))
  8448. return soap_closesock(soap);
  8449. tds__GetDot11StatusResponse->soap_get(soap, "tds:GetDot11StatusResponse", "");
  8450. if (soap->error)
  8451. return soap_recv_fault(soap, 0);
  8452. if (soap_body_end_in(soap)
  8453. || soap_envelope_end_in(soap)
  8454. || soap_end_recv(soap))
  8455. return soap_closesock(soap);
  8456. return soap_closesock(soap);
  8457. }
  8458. int DeviceBindingProxy::ScanAvailableDot11Networks_(const char *endpoint, const char *soap_action, _tds__ScanAvailableDot11Networks *tds__ScanAvailableDot11Networks, _tds__ScanAvailableDot11NetworksResponse *tds__ScanAvailableDot11NetworksResponse)
  8459. { struct soap *soap = this;
  8460. struct __tds__ScanAvailableDot11Networks_ soap_tmp___tds__ScanAvailableDot11Networks_;
  8461. if (endpoint)
  8462. soap_endpoint = endpoint;
  8463. if (soap_action == NULL)
  8464. soap_action = "http://www.onvif.org/ver10/device/wsdl/ScanAvailableDot11Networks";
  8465. soap_begin(soap);
  8466. soap->encodingStyle = NULL;
  8467. soap_tmp___tds__ScanAvailableDot11Networks_.tds__ScanAvailableDot11Networks = tds__ScanAvailableDot11Networks;
  8468. soap_set_version(soap, 2); /* SOAP1.2 */
  8469. soap_serializeheader(soap);
  8470. soap_serialize___tds__ScanAvailableDot11Networks_(soap, &soap_tmp___tds__ScanAvailableDot11Networks_);
  8471. if (soap_begin_count(soap))
  8472. return soap->error;
  8473. if (soap->mode & SOAP_IO_LENGTH)
  8474. { if (soap_envelope_begin_out(soap)
  8475. || soap_putheader(soap)
  8476. || soap_body_begin_out(soap)
  8477. || soap_put___tds__ScanAvailableDot11Networks_(soap, &soap_tmp___tds__ScanAvailableDot11Networks_, "-tds:ScanAvailableDot11Networks", NULL)
  8478. || soap_body_end_out(soap)
  8479. || soap_envelope_end_out(soap))
  8480. return soap->error;
  8481. }
  8482. if (soap_end_count(soap))
  8483. return soap->error;
  8484. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8485. || soap_envelope_begin_out(soap)
  8486. || soap_putheader(soap)
  8487. || soap_body_begin_out(soap)
  8488. || soap_put___tds__ScanAvailableDot11Networks_(soap, &soap_tmp___tds__ScanAvailableDot11Networks_, "-tds:ScanAvailableDot11Networks", NULL)
  8489. || soap_body_end_out(soap)
  8490. || soap_envelope_end_out(soap)
  8491. || soap_end_send(soap))
  8492. return soap_closesock(soap);
  8493. if (!tds__ScanAvailableDot11NetworksResponse)
  8494. return soap_closesock(soap);
  8495. tds__ScanAvailableDot11NetworksResponse->soap_default(soap);
  8496. if (soap_begin_recv(soap)
  8497. || soap_envelope_begin_in(soap)
  8498. || soap_recv_header(soap)
  8499. || soap_body_begin_in(soap))
  8500. return soap_closesock(soap);
  8501. tds__ScanAvailableDot11NetworksResponse->soap_get(soap, "tds:ScanAvailableDot11NetworksResponse", "");
  8502. if (soap->error)
  8503. return soap_recv_fault(soap, 0);
  8504. if (soap_body_end_in(soap)
  8505. || soap_envelope_end_in(soap)
  8506. || soap_end_recv(soap))
  8507. return soap_closesock(soap);
  8508. return soap_closesock(soap);
  8509. }
  8510. int DeviceBindingProxy::GetSystemUris_(const char *endpoint, const char *soap_action, _tds__GetSystemUris *tds__GetSystemUris, _tds__GetSystemUrisResponse *tds__GetSystemUrisResponse)
  8511. { struct soap *soap = this;
  8512. struct __tds__GetSystemUris_ soap_tmp___tds__GetSystemUris_;
  8513. if (endpoint)
  8514. soap_endpoint = endpoint;
  8515. if (soap_action == NULL)
  8516. soap_action = "http://www.onvif.org/ver10/device/wsdl/GetSystemUris";
  8517. soap_begin(soap);
  8518. soap->encodingStyle = NULL;
  8519. soap_tmp___tds__GetSystemUris_.tds__GetSystemUris = tds__GetSystemUris;
  8520. soap_set_version(soap, 2); /* SOAP1.2 */
  8521. soap_serializeheader(soap);
  8522. soap_serialize___tds__GetSystemUris_(soap, &soap_tmp___tds__GetSystemUris_);
  8523. if (soap_begin_count(soap))
  8524. return soap->error;
  8525. if (soap->mode & SOAP_IO_LENGTH)
  8526. { if (soap_envelope_begin_out(soap)
  8527. || soap_putheader(soap)
  8528. || soap_body_begin_out(soap)
  8529. || soap_put___tds__GetSystemUris_(soap, &soap_tmp___tds__GetSystemUris_, "-tds:GetSystemUris", NULL)
  8530. || soap_body_end_out(soap)
  8531. || soap_envelope_end_out(soap))
  8532. return soap->error;
  8533. }
  8534. if (soap_end_count(soap))
  8535. return soap->error;
  8536. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8537. || soap_envelope_begin_out(soap)
  8538. || soap_putheader(soap)
  8539. || soap_body_begin_out(soap)
  8540. || soap_put___tds__GetSystemUris_(soap, &soap_tmp___tds__GetSystemUris_, "-tds:GetSystemUris", NULL)
  8541. || soap_body_end_out(soap)
  8542. || soap_envelope_end_out(soap)
  8543. || soap_end_send(soap))
  8544. return soap_closesock(soap);
  8545. if (!tds__GetSystemUrisResponse)
  8546. return soap_closesock(soap);
  8547. tds__GetSystemUrisResponse->soap_default(soap);
  8548. if (soap_begin_recv(soap)
  8549. || soap_envelope_begin_in(soap)
  8550. || soap_recv_header(soap)
  8551. || soap_body_begin_in(soap))
  8552. return soap_closesock(soap);
  8553. tds__GetSystemUrisResponse->soap_get(soap, "tds:GetSystemUrisResponse", "");
  8554. if (soap->error)
  8555. return soap_recv_fault(soap, 0);
  8556. if (soap_body_end_in(soap)
  8557. || soap_envelope_end_in(soap)
  8558. || soap_end_recv(soap))
  8559. return soap_closesock(soap);
  8560. return soap_closesock(soap);
  8561. }
  8562. int DeviceBindingProxy::StartFirmwareUpgrade_(const char *endpoint, const char *soap_action, _tds__StartFirmwareUpgrade *tds__StartFirmwareUpgrade, _tds__StartFirmwareUpgradeResponse *tds__StartFirmwareUpgradeResponse)
  8563. { struct soap *soap = this;
  8564. struct __tds__StartFirmwareUpgrade_ soap_tmp___tds__StartFirmwareUpgrade_;
  8565. if (endpoint)
  8566. soap_endpoint = endpoint;
  8567. if (soap_action == NULL)
  8568. soap_action = "http://www.onvif.org/ver10/device/wsdl/StartFirmwareUpgrade";
  8569. soap_begin(soap);
  8570. soap->encodingStyle = NULL;
  8571. soap_tmp___tds__StartFirmwareUpgrade_.tds__StartFirmwareUpgrade = tds__StartFirmwareUpgrade;
  8572. soap_set_version(soap, 2); /* SOAP1.2 */
  8573. soap_serializeheader(soap);
  8574. soap_serialize___tds__StartFirmwareUpgrade_(soap, &soap_tmp___tds__StartFirmwareUpgrade_);
  8575. if (soap_begin_count(soap))
  8576. return soap->error;
  8577. if (soap->mode & SOAP_IO_LENGTH)
  8578. { if (soap_envelope_begin_out(soap)
  8579. || soap_putheader(soap)
  8580. || soap_body_begin_out(soap)
  8581. || soap_put___tds__StartFirmwareUpgrade_(soap, &soap_tmp___tds__StartFirmwareUpgrade_, "-tds:StartFirmwareUpgrade", NULL)
  8582. || soap_body_end_out(soap)
  8583. || soap_envelope_end_out(soap))
  8584. return soap->error;
  8585. }
  8586. if (soap_end_count(soap))
  8587. return soap->error;
  8588. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8589. || soap_envelope_begin_out(soap)
  8590. || soap_putheader(soap)
  8591. || soap_body_begin_out(soap)
  8592. || soap_put___tds__StartFirmwareUpgrade_(soap, &soap_tmp___tds__StartFirmwareUpgrade_, "-tds:StartFirmwareUpgrade", NULL)
  8593. || soap_body_end_out(soap)
  8594. || soap_envelope_end_out(soap)
  8595. || soap_end_send(soap))
  8596. return soap_closesock(soap);
  8597. if (!tds__StartFirmwareUpgradeResponse)
  8598. return soap_closesock(soap);
  8599. tds__StartFirmwareUpgradeResponse->soap_default(soap);
  8600. if (soap_begin_recv(soap)
  8601. || soap_envelope_begin_in(soap)
  8602. || soap_recv_header(soap)
  8603. || soap_body_begin_in(soap))
  8604. return soap_closesock(soap);
  8605. tds__StartFirmwareUpgradeResponse->soap_get(soap, "tds:StartFirmwareUpgradeResponse", "");
  8606. if (soap->error)
  8607. return soap_recv_fault(soap, 0);
  8608. if (soap_body_end_in(soap)
  8609. || soap_envelope_end_in(soap)
  8610. || soap_end_recv(soap))
  8611. return soap_closesock(soap);
  8612. return soap_closesock(soap);
  8613. }
  8614. int DeviceBindingProxy::StartSystemRestore_(const char *endpoint, const char *soap_action, _tds__StartSystemRestore *tds__StartSystemRestore, _tds__StartSystemRestoreResponse *tds__StartSystemRestoreResponse)
  8615. { struct soap *soap = this;
  8616. struct __tds__StartSystemRestore_ soap_tmp___tds__StartSystemRestore_;
  8617. if (endpoint)
  8618. soap_endpoint = endpoint;
  8619. if (soap_action == NULL)
  8620. soap_action = "http://www.onvif.org/ver10/device/wsdl/StartSystemRestore";
  8621. soap_begin(soap);
  8622. soap->encodingStyle = NULL;
  8623. soap_tmp___tds__StartSystemRestore_.tds__StartSystemRestore = tds__StartSystemRestore;
  8624. soap_set_version(soap, 2); /* SOAP1.2 */
  8625. soap_serializeheader(soap);
  8626. soap_serialize___tds__StartSystemRestore_(soap, &soap_tmp___tds__StartSystemRestore_);
  8627. if (soap_begin_count(soap))
  8628. return soap->error;
  8629. if (soap->mode & SOAP_IO_LENGTH)
  8630. { if (soap_envelope_begin_out(soap)
  8631. || soap_putheader(soap)
  8632. || soap_body_begin_out(soap)
  8633. || soap_put___tds__StartSystemRestore_(soap, &soap_tmp___tds__StartSystemRestore_, "-tds:StartSystemRestore", NULL)
  8634. || soap_body_end_out(soap)
  8635. || soap_envelope_end_out(soap))
  8636. return soap->error;
  8637. }
  8638. if (soap_end_count(soap))
  8639. return soap->error;
  8640. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  8641. || soap_envelope_begin_out(soap)
  8642. || soap_putheader(soap)
  8643. || soap_body_begin_out(soap)
  8644. || soap_put___tds__StartSystemRestore_(soap, &soap_tmp___tds__StartSystemRestore_, "-tds:StartSystemRestore", NULL)
  8645. || soap_body_end_out(soap)
  8646. || soap_envelope_end_out(soap)
  8647. || soap_end_send(soap))
  8648. return soap_closesock(soap);
  8649. if (!tds__StartSystemRestoreResponse)
  8650. return soap_closesock(soap);
  8651. tds__StartSystemRestoreResponse->soap_default(soap);
  8652. if (soap_begin_recv(soap)
  8653. || soap_envelope_begin_in(soap)
  8654. || soap_recv_header(soap)
  8655. || soap_body_begin_in(soap))
  8656. return soap_closesock(soap);
  8657. tds__StartSystemRestoreResponse->soap_get(soap, "tds:StartSystemRestoreResponse", "");
  8658. if (soap->error)
  8659. return soap_recv_fault(soap, 0);
  8660. if (soap_body_end_in(soap)
  8661. || soap_envelope_end_in(soap)
  8662. || soap_end_recv(soap))
  8663. return soap_closesock(soap);
  8664. return soap_closesock(soap);
  8665. }
  8666. /* End of client proxy code */