faithoflifedev / easy_onvif_workspace

This package works with a variety of ONVIF compatible devices allowing for IP Cameras and NVRs (network video recorders) to be integrated into Dart and Flutter applications.
33 stars 21 forks source link

Unable to get preset #49

Closed dinurymomshad closed 11 months ago

dinurymomshad commented 12 months ago

Version:

Flutter 3.13.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ead455963c (9 weeks ago) • 2023-09-26 18:28:17 -0700
Engine • revision a794cf2681
Tools • Dart 3.1.3 • DevTools 2.25.0

Dependencies:

  easy_onvif: ^2.1.3+3
  loggy: ^2.0.3

Reproduceable Code:

import 'dart:developer';

import 'package:easy_onvif/onvif.dart';
import 'package:flutter/material.dart';
import 'package:loggy/loggy.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final OnVIFService onvifService = OnVIFService();

  @override
  void initState() {
    init();
    super.initState();
  }

  init() async {
    await onvifService.connect(ip: "10.201.1.6");
    onvifService.getToken().then((value) {
      onvifService.getPresets();
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Onvif Test'),
        centerTitle: true,
      ),
      body: Container(),
    );
  }
}

class OnVIFService {
  late final Onvif onvif;
  String? token;

  Future<void> connect({required String ip}) async {
    onvif = await Onvif.connect(
        host: ip,
        username: 'admin',
        password: '123456',
        logOptions: const LogOptions(
          LogLevel.debug,
          stackTraceLevel: LogLevel.error,
        ),
        printer: const PrettyPrinter(
          showColors: true,
        ));

    log('OnVIFService: connected to $ip');
  }

  Future<void> getToken() async {
    final profiles = await onvif.media.getProfiles();
    final profile = profiles.last;
    token = profile.token;

    log('OnVIFService: got token $token');
  }

  Future<String> getSnapshot() async {
    final snapshot = await onvif.media.getSnapshotUri(token!);
    log('OnVIFService: got snapshot $snapshot');
    return snapshot;
  }

  Future<void> getPresets() async {
    final presets = await onvif.ptz.getPresets(token!, limit: 10);
    log('OnVIFService: got presets $presets');
  }
}

Error Log:

Performing hot restart...
Syncing files to device SM A135F...
Restarted application in 3,081ms.
I/flutter (22608): 👻 18:02:56.505226 INFO     UI Loggy - Onvif - initializing ...
I/flutter (22608): 🐛 18:02:56.556251 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
I/flutter (22608): 🐛 18:02:57.882572 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
I/flutter (22608): 🐛 18:02:57.883507 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
I/flutter (22608): 🐛 18:02:58.465847 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?>
I/flutter (22608): <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.or
I/flutter (22608): 🐛 18:02:58.918573 DEBUG    UI Loggy - DeviceManagement - getServices
I/flutter (22608): 🐛 18:02:58.998275 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
I/flutter (22608): 🐛 18:02:58.999242 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">o8RXJ33+JIE3Pks/EleFA8ltqeU=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">oH2fgyza5Y5/tofPXxF5pw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T02:55:58.016049Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.
I/flutter (22608): 🐛 18:02:59.045113 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?>
I/flutter (22608): <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.or
I/flutter (22608): 👻 18:02:59.154024 INFO     UI Loggy - Onvif - initialization complete
[log] OnVIFService: connected to 10.201.1.6
I/flutter (22608): 🐛 18:02:59.163917 DEBUG    UI Loggy - Media2 - getProfiles
I/flutter (22608): 🐛 18:02:59.177832 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/Media2
I/flutter (22608): 🐛 18:02:59.178787 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">vnevNkx/gfmeGnFqpHpImil97Ds=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">VHWQZEHefc7a6VH3/CcfsQ==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T02:55:58.251876Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.
I/flutter (22608): 🐛 18:02:59.227557 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?>
I/flutter (22608): <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.or
I/flutter (22608): 🐛 18:02:59.354876 DEBUG    UI Loggy - Ptz - getPresets
[log] OnVIFService: got token SubStream
I/flutter (22608): 🐛 18:02:59.365670 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
I/flutter (22608): 🐛 18:02:59.366529 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">fXWUDhafJl0s01KRVP4IiS+BUaM=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">xsKkeq+kQNXw4SmSE+0Y+w==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T02:55:58.443815Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.
I/flutter (22608): ‼️ 18:02:59.406946 ERROR    UI Loggy - LoggingInterceptors - ERROR:
I/flutter (22608): DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
I/flutter (22608): The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
I/flutter (22608): Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
I/flutter (22608): In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
I/flutter (22608): 
I/flutter (22608): #0      Loggy.log (package:loggy/src/loggy.dart:225:33)
I/flutter (22608): #1      Loggy.error (package:loggy/src/loggy.dart:269:7)
I/flutter (22608): #2      LoggingInterceptors.onError (package:easy_onvif/src/util/logging_interceptors.dart:28:11)
I/flutter (22608): #3      DioMixin.fetch.errorInterceptorWrapper.<anonymous closure>.handleError (package:dio/src/dio_mixin.dart:429:22)
I/flutter (22608): #4      new Future.<anonymous closure> (dart:async/future.dart:256:37)
I/flutter (22608): #5      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
I/flutter (22608): #6      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
I/flutter (22608): #7      _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
I/flutter (22608): #8      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
I/flutter (22608): ‼️ 18:02:59.411994 ERROR    UI Loggy - Transport - ERROR RESPONSE:
I/flutter (22608): <?xml version="1.0" encoding="UTF-8"?>
I/flutter (22608): <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ve
I/flutter (22608): #0      Loggy.log (package:loggy/src/loggy.dart:225:33)
I/flutter (22608): #1      Loggy.error (package:loggy/src/loggy.dart:269:7)
I/flutter (22608): #2      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:39:17)
I/flutter (22608): <asynchronous suspension>
I/flutter (22608): #3      Ptz.getPresets (package:easy_onvif/src/ptz.dart:204:22)
I/flutter (22608): <asynchronous suspension>
I/flutter (22608): #4      OnVIFService.getPresets (package:longshot_playground/main.dart:93:21)
I/flutter (22608): <asynchronous suspension>
E/flutter (22608): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Error code: {"Code":{"Value":"SOAP-ENV:Sender","Subcode":{"Value":{"$":"wsa:ActionNotSupported"}}},"Reason":{"lang":"en","note":"The [action] cannot be processed at the receiver."},"Node":null,"Role":null,"Detail":null}
E/flutter (22608): #0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:46:13)
E/flutter (22608): <asynchronous suspension>
E/flutter (22608): #1      Ptz.getPresets (package:easy_onvif/src/ptz.dart:204:22)
E/flutter (22608): <asynchronous suspension>
E/flutter (22608): #2      OnVIFService.getPresets (package:longshot_playground/main.dart:93:21)
E/flutter (22608): <asynchronous suspension>
E/flutter (22608): 

Camera Model: Link

IP IR SPEED DEOM CAMERA
5.0 MEGA PIXEL
MODEL-IP-MU50-36S/MC-B
dinurymomshad commented 12 months ago

@faithoflifedev Would you please look into this issue? I have tried in many way. But it is not working

faithoflifedev commented 12 months ago

Hi @dinurymomshad,

The log information provided in your post has the text cut-off due to line length limitations. In this case the error is a "bad response", but I can't see the entire response, so there's not really any way for me to determine the cause.

My recommendation is to use the cli tool provided with the package - https://github.com/faithoflifedev/easy_onvif#onvif-cli-onvif-at-the-command-prompt - and - https://github.com/faithoflifedev/easy_onvif/blob/main/bin/README.md#quick-start - with --log-level all to output the entire request/response interaction with your device. Also keep in mind that when getting presets with the cli tool you'll need to provide a --profile-token appropriate for your device.

onvif media get-profiles
dinurymomshad commented 12 months ago

Hi @dinurymomshad,

The log information provided in your post has the text cut-off due to line length limitations. In this case the error is a "bad response", but I can't see the entire response, so there's not really any way for me to determine the cause.

My recommendation is to use the cli tool provided with the package - https://github.com/faithoflifedev/easy_onvif#onvif-cli-onvif-at-the-command-prompt - and - https://github.com/faithoflifedev/easy_onvif/blob/main/bin/README.md#quick-start - with --log-level all to output the entire request/response interaction with your device. Also keep in mind that when getting presets with the cli tool you'll need to provide a --profile-token appropriate for your device.

onvif media get-profiles

Here is the log:

dinury@BS879s-MacBook-Pro ~ % onvif ptz get-presets --limit 3 --profile-token SubStream --log-level all
👻 14:36:15.895421 INFO     UI Loggy - Onvif - initializing ...
🐛 14:36:15.898201 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 14:36:15.912401 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 14:36:15.912443 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 14:36:15.991926 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>23</tt:Hour><tt:Minute>19</tt:Minute><tt:Second>21</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>7</tt:Hour><tt:Minute>19</tt:Minute><tt:Second>21</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>2</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 14:36:16.019734 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 14:36:16.026301 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 14:36:16.026363 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">jI6o0muH78WsICqHC20o5VOh1JI=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JAce3Kh45XOxEzXo3xH9hw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T23:19:21.001139Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
‼️ 14:36:36.037509 ERROR    UI Loggy - LoggingInterceptors - ERROR:
DioException [connection timeout]: The request connection took longer than 0:00:20.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:20.000000 or improve the response time of the server.
Unhandled exception:
Exception: DioException [connection timeout]: The request connection took longer than 0:00:20.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:20.000000 or improve the response time of the server.
#0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:51:7)
<asynchronous suspension>
#1      DeviceManagement.getServices (package:easy_onvif/src/device_management.dart:221:22)
<asynchronous suspension>
#2      Onvif.initialize (package:easy_onvif/src/onvif_base.dart:124:25)
<asynchronous suspension>
#3      Onvif.connect (package:easy_onvif/src/onvif_base.dart:100:5)
<asynchronous suspension>
#4      OnvifHelperCommand.initializeOnvif (package:easy_onvif/src/cmd/onvif_helper_command.dart:37:14)
<asynchronous suspension>
#5      OnvifGetPresetsPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:353:5)
<asynchronous suspension>
#6      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
dinurymomshad commented 12 months ago

Hi @dinurymomshad, The log information provided in your post has the text cut-off due to line length limitations. In this case the error is a "bad response", but I can't see the entire response, so there's not really any way for me to determine the cause. My recommendation is to use the cli tool provided with the package - https://github.com/faithoflifedev/easy_onvif#onvif-cli-onvif-at-the-command-prompt - and - https://github.com/faithoflifedev/easy_onvif/blob/main/bin/README.md#quick-start - with --log-level all to output the entire request/response interaction with your device. Also keep in mind that when getting presets with the cli tool you'll need to provide a --profile-token appropriate for your device.

onvif media get-profiles

Here is the log:

dinury@BS879s-MacBook-Pro ~ % onvif ptz get-presets --limit 3 --profile-token SubStream --log-level all
👻 14:36:15.895421 INFO     UI Loggy - Onvif - initializing ...
🐛 14:36:15.898201 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 14:36:15.912401 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 14:36:15.912443 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 14:36:15.991926 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>23</tt:Hour><tt:Minute>19</tt:Minute><tt:Second>21</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>7</tt:Hour><tt:Minute>19</tt:Minute><tt:Second>21</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>2</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 14:36:16.019734 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 14:36:16.026301 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 14:36:16.026363 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">jI6o0muH78WsICqHC20o5VOh1JI=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JAce3Kh45XOxEzXo3xH9hw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T23:19:21.001139Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
‼️ 14:36:36.037509 ERROR    UI Loggy - LoggingInterceptors - ERROR:
DioException [connection timeout]: The request connection took longer than 0:00:20.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:20.000000 or improve the response time of the server.
Unhandled exception:
Exception: DioException [connection timeout]: The request connection took longer than 0:00:20.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:20.000000 or improve the response time of the server.
#0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:51:7)
<asynchronous suspension>
#1      DeviceManagement.getServices (package:easy_onvif/src/device_management.dart:221:22)
<asynchronous suspension>
#2      Onvif.initialize (package:easy_onvif/src/onvif_base.dart:124:25)
<asynchronous suspension>
#3      Onvif.connect (package:easy_onvif/src/onvif_base.dart:100:5)
<asynchronous suspension>
#4      OnvifHelperCommand.initializeOnvif (package:easy_onvif/src/cmd/onvif_helper_command.dart:37:14)
<asynchronous suspension>
#5      OnvifGetPresetsPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:353:5)
<asynchronous suspension>
#6      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>

Here is the other one for Media1 Profile:

dinury@BS879s-MacBook-Pro ~ % onvif ptz get-presets --limit 3 --profile-token MainStream --log-level all
👻 15:02:33.661652 INFO     UI Loggy - Onvif - initializing ...
🐛 15:02:33.664442 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 15:02:33.678710 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 15:02:33.678757 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 15:02:33.754474 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>23</tt:Hour><tt:Minute>45</tt:Minute><tt:Second>38</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>7</tt:Hour><tt:Minute>45</tt:Minute><tt:Second>38</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>2</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 15:02:33.781070 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 15:02:33.787681 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 15:02:33.787725 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">tp+elZqKJXbk43UDC4nPZVYd6j4=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">zuw5dpW6wCgn4wXQpeYWZQ==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T23:45:38.001019Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 15:02:33.830150 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">tp+elZqKJXbk43UDC4nPZVYd6j4=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">zuw5dpW6wCgn4wXQpeYWZQ==</wsse:Nonce><wsu:Created>2018-01-01T23:45:38.001019Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 15:02:33.838709 INFO     UI Loggy - Onvif - initialization complete
🐛 15:02:33.839164 DEBUG    UI Loggy - Ptz - getPresets
🐛 15:02:33.840037 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 15:02:33.840060 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">awAHy4Vj2dmkMK5dWp+gZ2BJE98=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">9Rd3DnHS3dp+wwWzq1p07Q==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-01T23:45:38.058523Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetPresets xmlns="http://www.onvif.org/ver10/device/wsdl"><ProfileToken>MainStream</ProfileToken></GetPresets></s:Body></s:Envelope>
‼️ 15:02:33.874973 ERROR    UI Loggy - LoggingInterceptors - ERROR:
DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

‼️ 15:02:33.875224 ERROR    UI Loggy - Transport - ERROR RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsa:To SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsa:Action SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>wsa:ActionNotSupported</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en">The [action] cannot be processed at the receiver.</SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Unhandled exception:
Exception: Error code: {"Code":{"Value":"SOAP-ENV:Sender","Subcode":{"Value":{"$":"wsa:ActionNotSupported"}}},"Reason":{"lang":"en","note":"The [action] cannot be processed at the receiver."},"Node":null,"Role":null,"Detail":null}
#0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:46:13)
<asynchronous suspension>
#1      Ptz.getPresets (package:easy_onvif/src/ptz.dart:204:22)
<asynchronous suspension>
#2      OnvifGetPresetsPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:356:23)
<asynchronous suspension>
#3      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
dinurymomshad commented 11 months ago

@faithoflifedev would you please take a look at this issue?

faithoflifedev commented 11 months ago

Hi @dinurymomshad,

Sorry for the delayed response. Looking at the log, the error I see is:

The [action] cannot be processed at the receiver.

Your command line is:

onvif ptz get-presets --limit 3 --profile-token SubStream --log-level all

But the log shows:

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetPresets xmlns="http://www.onvif.org/ver10/device/wsdl">
    <ProfileToken>MainStream</ProfileToken>
</GetPresets>
</s:Body>

The <ProfileToken>MainStream</ProfileToken> does not match the profile token of SubStream that was submitted the command line. So it appears that the command line and output are for separate commands.

I recommend running the command:

onvif media get-profiles  --log-level all

Which will list the media profiles configured on the device and will also output the ProfileTokens that the device supports, this way you can ensure that you have a valid ProfileToken that works for your device.

Once you have a valid ProfileToken then try running the get-presets command again:

onvif ptz get-presets --limit 3 --profile-token [your valid profile token] --log-level all
dinurymomshad commented 11 months ago

@faithoflifedev

Ran: onvif media2 get-profiles --log-level all

Output:

dinury@BS879s-MBP Longshot-Flutter-App % onvif media2 get-profiles  --log-level all
👻 11:33:08.331209 INFO     UI Loggy - Onvif - initializing ...
🐛 11:33:08.334353 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 11:33:08.349960 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 11:33:08.350031 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 11:33:08.412339 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>17</tt:Hour><tt:Minute>1</tt:Minute><tt:Second>35</tt:Second></tt:Time><tt:Date><tt:Year>2017</tt:Year><tt:Month>12</tt:Month><tt:Day>31</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>1</tt:Hour><tt:Minute>1</tt:Minute><tt:Second>35</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 11:33:08.439683 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 11:33:08.445103 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 11:33:08.445143 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">PZZe1ihF/h1oDXjvKTfOyStjijs=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">3DfLIEhGBkF+0ftTlA4uWQ==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T17:01:35.000977Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 11:33:08.522777 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">PZZe1ihF/h1oDXjvKTfOyStjijs=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">3DfLIEhGBkF+0ftTlA4uWQ==</wsse:Nonce><wsu:Created>2017-12-31T17:01:35.000977Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 11:33:08.538876 INFO     UI Loggy - Onvif - initialization complete
🐛 11:33:08.539262 DEBUG    UI Loggy - Media2 - getProfiles
🐛 11:33:08.540068 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/Media2
🐛 11:33:08.540092 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">gP/es8C4la2V2kMjgSQoNO3g19o=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JsoW7a6F9s+//oIe9HSzVA==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T17:01:35.099926Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetProfiles xmlns="http://www.onvif.org/ver20/media/wsdl"/></s:Body></s:Envelope>
🐛 11:33:08.618807 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">gP/es8C4la2V2kMjgSQoNO3g19o=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">JsoW7a6F9s+//oIe9HSzVA==</wsse:Nonce><wsu:Created>2017-12-31T17:01:35.099926Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt2:GetProfilesResponse><trt2:Profiles token="MainStream" fixed="true"><trt2:Name>MainStream</trt2:Name><trt2:Configurations><trt2:VideoSource token="VideoSourceMain"><tt:Name>VideoSourceMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>VideoSourceMain</tt:SourceToken><tt:Bounds x="0" y="0" width="2592" height="1944"></tt:Bounds></trt2:VideoSource><trt2:AudioSource token="AudioMainToken"><tt:Name>AudioMainName</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>AudioMainSrcToken</tt:SourceToken></trt2:AudioSource><trt2:VideoEncoder token="VideoEncodeMain" GovLength="100" Profile="High"><tt:Name>VideoEncodeMain</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>2592</tt:Width><tt:Height>1944</tt:Height></tt:Resolution><tt:RateControl ConstantBitRate="false"><tt:FrameRateLimit>25</tt:FrameRateLimit><tt:BitrateLimit>8000</tt:BitrateLimit></tt:RateControl><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>0</tt:Port><tt:TTL>0</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:Quality>50</tt:Quality></trt2:VideoEncoder><trt2:AudioEncoder token="G711"><tt:Name>AudioMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:Encoding>G711</tt:Encoding><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>80</tt:Port><tt:TTL>1</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:Bitrate>64000</tt:Bitrate><tt:SampleRate>8000</tt:SampleRate></trt2:AudioEncoder><trt2:Analytics token="VideoAnalyticsToken"><tt:Name>VideoAnalyticsName</tt:Name><tt:UseCount>3</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Type="tt:CellMotionEngine" Name="MyCellMotionModule"><tt:Parameters><tt:SimpleItem Name="Sensitivity" Value="0"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Rows="18" Columns="22"><tt:Transformation><tt:Translate y="-1" x="-1" /><tt:Scale y="9.99999997E-07" x="9.99999997E-07" /></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Type="tt:CellMotionDetector" Name="MyMotionDetectorRule"><tt:Parameters><tt:SimpleItem Name="MinCount" Value="5"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOffDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="ActiveCells" Value="zwA="></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></trt2:Analytics><trt2:PTZ token="ptz0"><tt:Name>ptz0</tt:Name><tt:UseCount>2</tt:UseCount><tt:NodeToken>ptz0</tt:NodeToken><tt:DefaultAbsolutePantTiltPositionSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:DefaultAbsolutePantTiltPositionSpace><tt:DefaultAbsoluteZoomPositionSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:DefaultAbsoluteZoomPositionSpace><tt:DefaultRelativePanTiltTranslationSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationGenericSpace</tt:DefaultRelativePanTiltTranslationSpace><tt:DefaultRelativeZoomTranslationSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/TranslationGenericSpace</tt:DefaultRelativeZoomTranslationSpace><tt:DefaultContinuousPanTiltVelocitySpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/VelocityGenericSpace</tt:DefaultContinuousPanTiltVelocitySpace><tt:DefaultContinuousZoomVelocitySpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/VelocityGenericSpace</tt:DefaultContinuousZoomVelocitySpace><tt:DefaultPTZSpeed><tt:PanTilt x="1" y="1" space="http://www.onvif.org/ver10/tptz/PanTiltSpaces/GenericSpeedSpace"></tt:PanTilt><tt:Zoom x="1" space="http://www.onvif.org/ver10/tptz/ZoomSpaces/ZoomGenericSpeedSpace"></tt:Zoom></tt:DefaultPTZSpeed><tt:DefaultPTZTimeout>PT00H01M00S</tt:DefaultPTZTimeout><tt:PanTiltLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange><tt:YRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:YRange></tt:Range></tt:PanTiltLimits><tt:ZoomLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange></tt:Range></tt:ZoomLimits></trt2:PTZ></trt2:Configurations></trt2:Profiles><trt2:Profiles token="SubStream" fixed="true"><trt2:Name>SubStream</trt2:Name><trt2:Configurations><trt2:VideoSource token="VideoSourceMain"><tt:Name>VideoSourceMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>VideoSourceMain</tt:SourceToken><tt:Bounds x="0" y="0" width="704" height="576"></tt:Bounds></trt2:VideoSource><trt2:AudioSource token="AudioMainToken"><tt:Name>AudioMainName</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>AudioMainSrcToken</tt:SourceToken></trt2:AudioSource><trt2:VideoEncoder token="VideoEncodeSub" GovLength="100" Profile="High"><tt:Name>VideoEncodeSub</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H265</tt:Encoding><tt:Resolution><tt:Width>704</tt:Width><tt:Height>576</tt:Height></tt:Resolution><tt:RateControl ConstantBitRate="false"><tt:FrameRateLimit>25</tt:FrameRateLimit><tt:BitrateLimit>500</tt:BitrateLimit></tt:RateControl><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>0</tt:Port><tt:TTL>0</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:Quality>50</tt:Quality></trt2:VideoEncoder><trt2:AudioEncoder token="G711"><tt:Name>AudioMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:Encoding>G711</tt:Encoding><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>80</tt:Port><tt:TTL>1</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:Bitrate>64000</tt:Bitrate><tt:SampleRate>8000</tt:SampleRate></trt2:AudioEncoder><trt2:Analytics token="VideoAnalyticsToken"><tt:Name>VideoAnalyticsName</tt:Name><tt:UseCount>3</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Type="tt:CellMotionEngine" Name="MyCellMotionModule"><tt:Parameters><tt:SimpleItem Name="Sensitivity" Value="80"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Rows="18" Columns="22"><tt:Transformation><tt:Translate y="-1" x="-1" /><tt:Scale y="9.99999997E-07" x="9.99999997E-07" /></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Type="tt:CellMotionDetector" Name="MyMotionDetectorRule"><tt:Parameters><tt:SimpleItem Name="MinCount" Value="5"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOffDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="ActiveCells" Value="zwA="></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></trt2:Analytics><trt2:PTZ token="ptz0"><tt:Name>ptz0</tt:Name><tt:UseCount>2</tt:UseCount><tt:NodeToken>ptz0</tt:NodeToken><tt:DefaultAbsolutePantTiltPositionSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:DefaultAbsolutePantTiltPositionSpace><tt:DefaultAbsoluteZoomPositionSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:DefaultAbsoluteZoomPositionSpace><tt:DefaultRelativePanTiltTranslationSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationGenericSpace</tt:DefaultRelativePanTiltTranslationSpace><tt:DefaultRelativeZoomTranslationSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/TranslationGenericSpace</tt:DefaultRelativeZoomTranslationSpace><tt:DefaultContinuousPanTiltVelocitySpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/VelocityGenericSpace</tt:DefaultContinuousPanTiltVelocitySpace><tt:DefaultContinuousZoomVelocitySpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/VelocityGenericSpace</tt:DefaultContinuousZoomVelocitySpace><tt:DefaultPTZSpeed><tt:PanTilt x="1" y="1" space="http://www.onvif.org/ver10/tptz/PanTiltSpaces/GenericSpeedSpace"></tt:PanTilt><tt:Zoom x="1" space="http://www.onvif.org/ver10/tptz/ZoomSpaces/ZoomGenericSpeedSpace"></tt:Zoom></tt:DefaultPTZSpeed><tt:DefaultPTZTimeout>PT00H01M00S</tt:DefaultPTZTimeout><tt:PanTiltLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange><tt:YRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:YRange></tt:Range></tt:PanTiltLimits><tt:ZoomLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange></tt:Range></tt:ZoomLimits></trt2:PTZ></trt2:Configurations></trt2:Profiles></trt2:GetProfilesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

[{"@token":"MainStream","@fixed":true,"Name":"MainStream","Configurations":{"VideoSourceConfiguration":null,"AudioSourceConfiguration":null,"VideoEncoderConfiguration":null,"AudioEncoderConfiguration":null,"VideoAnalyticsConfiguration":null,"PTZConfiguration":null,"MetadataConfiguration":null,"ProfileExtension":null}}, {"@token":"SubStream","@fixed":true,"Name":"SubStream","Configurations":{"VideoSourceConfiguration":null,"AudioSourceConfiguration":null,"VideoEncoderConfiguration":null,"AudioEncoderConfiguration":null,"VideoAnalyticsConfiguration":null,"PTZConfiguration":null,"MetadataConfiguration":null,"ProfileExtension":null}}]

And for media1 profile:

dinury@BS879s-MBP Longshot-Flutter-App % onvif media1 get-profiles  --log-level all
👻 11:46:27.164534 INFO     UI Loggy - Onvif - initializing ...
🐛 11:46:27.167294 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 11:46:27.181371 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 11:46:27.181417 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 11:46:27.240530 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>17</tt:Hour><tt:Minute>14</tt:Minute><tt:Second>54</tt:Second></tt:Time><tt:Date><tt:Year>2017</tt:Year><tt:Month>12</tt:Month><tt:Day>31</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>1</tt:Hour><tt:Minute>14</tt:Minute><tt:Second>54</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 11:46:27.270621 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 11:46:27.277613 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 11:46:27.277673 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">uaYXXFsJRKp1sMlMepHDnrkhfck=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">To9P330JwgjA0tOcnNfSag==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T17:14:54.001021Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 11:46:27.325057 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">uaYXXFsJRKp1sMlMepHDnrkhfck=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">To9P330JwgjA0tOcnNfSag==</wsse:Nonce><wsu:Created>2017-12-31T17:14:54.001021Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 11:46:27.555603 INFO     UI Loggy - Onvif - initialization complete
🐛 11:46:27.556051 DEBUG    UI Loggy - Media1 - getProfiles
🐛 11:46:27.556913 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/Media
🐛 11:46:27.556939 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Llp7BifRtqOjw4Os8OjuT2En9Xs=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">0pCKzk6YwAmkXi8kDDzPnw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T17:14:54.285811Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetProfiles xmlns="http://www.onvif.org/ver10/media/wsdl"/></s:Body></s:Envelope>
🐛 11:46:27.727840 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Llp7BifRtqOjw4Os8OjuT2En9Xs=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">0pCKzk6YwAmkXi8kDDzPnw==</wsse:Nonce><wsu:Created>2017-12-31T17:14:54.285811Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetProfilesResponse><trt:Profiles token="MainStream" fixed="false"><tt:Name>MainStream</tt:Name><tt:VideoSourceConfiguration token="VideoSourceMain"><tt:Name>VideoSourceMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>VideoSourceMain</tt:SourceToken><tt:Bounds x="0" y="0" width="2592" height="1944"></tt:Bounds></tt:VideoSourceConfiguration><tt:AudioSourceConfiguration token="AudioMainToken"><tt:Name>AudioMainName</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>AudioMainSrcToken</tt:SourceToken></tt:AudioSourceConfiguration><tt:VideoEncoderConfiguration token="VideoEncodeMain"><tt:Name>VideoEncodeMain</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>2592</tt:Width><tt:Height>1944</tt:Height></tt:Resolution><tt:Quality>50</tt:Quality><tt:RateControl><tt:FrameRateLimit>25</tt:FrameRateLimit><tt:EncodingInterval>1</tt:EncodingInterval><tt:BitrateLimit>8000</tt:BitrateLimit></tt:RateControl><tt:MPEG4><tt:GovLength>0</tt:GovLength><tt:Mpeg4Profile>SP</tt:Mpeg4Profile></tt:MPEG4><tt:H264><tt:GovLength>100</tt:GovLength><tt:H264Profile>High</tt:H264Profile></tt:H264><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>0</tt:Port><tt:TTL>0</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT00H12M00S</tt:SessionTimeout></tt:VideoEncoderConfiguration><tt:AudioEncoderConfiguration token="G711"><tt:Name>AudioMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:Encoding>G711</tt:Encoding><tt:Bitrate>64000</tt:Bitrate><tt:SampleRate>8000</tt:SampleRate><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>80</tt:Port><tt:TTL>1</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT00H00M00.060S</tt:SessionTimeout></tt:AudioEncoderConfiguration><tt:VideoAnalyticsConfiguration token="VideoAnalyticsToken"><tt:Name>VideoAnalyticsName</tt:Name><tt:UseCount>3</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Type="tt:CellMotionEngine" Name="MyCellMotionModule"><tt:Parameters><tt:SimpleItem Name="Sensitivity" Value="0"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Rows="18" Columns="22"><tt:Transformation><tt:Translate y="-1" x="-1" /><tt:Scale y="9.99999997E-07" x="9.99999997E-07" /></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Type="tt:CellMotionDetector" Name="MyMotionDetectorRule"><tt:Parameters><tt:SimpleItem Name="MinCount" Value="5"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOffDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="ActiveCells" Value="zwA="></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></tt:VideoAnalyticsConfiguration><tt:PTZConfiguration token="ptz0"><tt:Name>ptz0</tt:Name><tt:UseCount>2</tt:UseCount><tt:NodeToken>ptz0</tt:NodeToken><tt:DefaultAbsolutePantTiltPositionSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:DefaultAbsolutePantTiltPositionSpace><tt:DefaultAbsoluteZoomPositionSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:DefaultAbsoluteZoomPositionSpace><tt:DefaultRelativePanTiltTranslationSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationGenericSpace</tt:DefaultRelativePanTiltTranslationSpace><tt:DefaultRelativeZoomTranslationSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/TranslationGenericSpace</tt:DefaultRelativeZoomTranslationSpace><tt:DefaultContinuousPanTiltVelocitySpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/VelocityGenericSpace</tt:DefaultContinuousPanTiltVelocitySpace><tt:DefaultContinuousZoomVelocitySpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/VelocityGenericSpace</tt:DefaultContinuousZoomVelocitySpace><tt:DefaultPTZSpeed><tt:PanTilt x="1" y="1" space="http://www.onvif.org/ver10/tptz/PanTiltSpaces/GenericSpeedSpace"></tt:PanTilt><tt:Zoom x="1" space="http://www.onvif.org/ver10/tptz/ZoomSpaces/ZoomGenericSpeedSpace"></tt:Zoom></tt:DefaultPTZSpeed><tt:DefaultPTZTimeout>PT00H01M00S</tt:DefaultPTZTimeout><tt:PanTiltLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange><tt:YRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:YRange></tt:Range></tt:PanTiltLimits><tt:ZoomLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange></tt:Range></tt:ZoomLimits></tt:PTZConfiguration></trt:Profiles><trt:Profiles token="SubStream" fixed="false"><tt:Name>SubStream</tt:Name><tt:VideoSourceConfiguration token="VideoSourceMain"><tt:Name>VideoSourceMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>VideoSourceMain</tt:SourceToken><tt:Bounds x="0" y="0" width="704" height="576"></tt:Bounds></tt:VideoSourceConfiguration><tt:AudioSourceConfiguration token="AudioMainToken"><tt:Name>AudioMainName</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>AudioMainSrcToken</tt:SourceToken></tt:AudioSourceConfiguration><tt:VideoEncoderConfiguration token="VideoEncodeSub"><tt:Name>VideoEncodeSub</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>704</tt:Width><tt:Height>576</tt:Height></tt:Resolution><tt:Quality>50</tt:Quality><tt:RateControl><tt:FrameRateLimit>25</tt:FrameRateLimit><tt:EncodingInterval>1</tt:EncodingInterval><tt:BitrateLimit>500</tt:BitrateLimit></tt:RateControl><tt:MPEG4><tt:GovLength>0</tt:GovLength><tt:Mpeg4Profile>SP</tt:Mpeg4Profile></tt:MPEG4><tt:H264><tt:GovLength>100</tt:GovLength><tt:H264Profile>High</tt:H264Profile></tt:H264><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>0</tt:Port><tt:TTL>0</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT00H12M00S</tt:SessionTimeout></tt:VideoEncoderConfiguration><tt:AudioEncoderConfiguration token="G711"><tt:Name>AudioMain</tt:Name><tt:UseCount>2</tt:UseCount><tt:Encoding>G711</tt:Encoding><tt:Bitrate>64000</tt:Bitrate><tt:SampleRate>8000</tt:SampleRate><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>10.201.1.6</tt:IPv4Address></tt:Address><tt:Port>80</tt:Port><tt:TTL>1</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT00H00M00.060S</tt:SessionTimeout></tt:AudioEncoderConfiguration><tt:VideoAnalyticsConfiguration token="VideoAnalyticsToken"><tt:Name>VideoAnalyticsName</tt:Name><tt:UseCount>3</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Type="tt:CellMotionEngine" Name="MyCellMotionModule"><tt:Parameters><tt:SimpleItem Name="Sensitivity" Value="80"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Rows="18" Columns="22"><tt:Transformation><tt:Translate y="-1" x="-1" /><tt:Scale y="9.99999997E-07" x="9.99999997E-07" /></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Type="tt:CellMotionDetector" Name="MyMotionDetectorRule"><tt:Parameters><tt:SimpleItem Name="MinCount" Value="5"></tt:SimpleItem><tt:SimpleItem Name="AlarmOnDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="AlarmOffDelay" Value="100"></tt:SimpleItem><tt:SimpleItem Name="ActiveCells" Value="zwA="></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></tt:VideoAnalyticsConfiguration><tt:PTZConfiguration token="ptz0"><tt:Name>ptz0</tt:Name><tt:UseCount>2</tt:UseCount><tt:NodeToken>ptz0</tt:NodeToken><tt:DefaultAbsolutePantTiltPositionSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:DefaultAbsolutePantTiltPositionSpace><tt:DefaultAbsoluteZoomPositionSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:DefaultAbsoluteZoomPositionSpace><tt:DefaultRelativePanTiltTranslationSpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationGenericSpace</tt:DefaultRelativePanTiltTranslationSpace><tt:DefaultRelativeZoomTranslationSpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/TranslationGenericSpace</tt:DefaultRelativeZoomTranslationSpace><tt:DefaultContinuousPanTiltVelocitySpace>http://www.onvif.org/ver10/tptz/PanTiltSpaces/VelocityGenericSpace</tt:DefaultContinuousPanTiltVelocitySpace><tt:DefaultContinuousZoomVelocitySpace>http://www.onvif.org/ver10/tptz/ZoomSpaces/VelocityGenericSpace</tt:DefaultContinuousZoomVelocitySpace><tt:DefaultPTZSpeed><tt:PanTilt x="1" y="1" space="http://www.onvif.org/ver10/tptz/PanTiltSpaces/GenericSpeedSpace"></tt:PanTilt><tt:Zoom x="1" space="http://www.onvif.org/ver10/tptz/ZoomSpaces/ZoomGenericSpeedSpace"></tt:Zoom></tt:DefaultPTZSpeed><tt:DefaultPTZTimeout>PT00H01M00S</tt:DefaultPTZTimeout><tt:PanTiltLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange><tt:YRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:YRange></tt:Range></tt:PanTiltLimits><tt:ZoomLimits><tt:Range><tt:URI>http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace</tt:URI><tt:XRange><tt:Min>-1</tt:Min><tt:Max>1</tt:Max></tt:XRange></tt:Range></tt:ZoomLimits></tt:PTZConfiguration></trt:Profiles></trt:GetProfilesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

[{"@token":"MainStream","@fixed":false,"Name":"MainStream","VideoSourceConfiguration":{"Name":"VideoSourceMain","UseCount":2,"SourceToken":"VideoSourceMain","Bounds":{"@x":0,"@y":0,"@width":2592,"@height":1944},"Extension":null},"AudioSourceConfiguration":{"Name":"AudioMainName","UseCount":2,"SourceToken":"AudioMainSrcToken"},"VideoEncoderConfiguration":{"@token":"VideoEncodeMain","Name":"VideoEncodeMain","UseCount":1,"Encoding":"H264","Resolution":{"Width":2592,"Height":1944},"Quality":50.0,"RateControl":{"FrameRateLimit":25,"EncodingInterval":1,"BitrateLimit":8000},"MPEG4":{"GovLength":0,"Mpeg4Profile":"SP"},"H264":{"GovLength":100,"H264Profile":"High"},"Multicast":{"Address":{"Type":"IPv4","IPv4Address":"10.201.1.6","IPv6Address":null},"Port":0,"TTL":0,"AutoStart":false},"SessionTimeout":"PT00H12M00S"},"AudioEncoderConfiguration":{"Name":"AudioMain","UseCount":2,"Encoding":"G711","Bitrate":64000,"SampleRate":8000,"Multicast":{"Address":{"Type":"IPv4","IPv4Address":"10.201.1.6","IPv6Address":null},"Port":80,"TTL":1,"AutoStart":false},"SessionTimeout":"PT00H00M00.060S"},"VideoAnalyticsConfiguration":{"Name":"VideoAnalyticsName","UseCount":3},"PTZConfiguration":{"@token":"ptz0","Name":"ptz0","UseCount":2,"MoveRamp":null,"PresetRamp":null,"PresetTourRamp":null,"NodeToken":"ptz0","DefaultAbsolutePantTiltPositionSpace":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace","DefaultAbsoluteZoomPositionSpace":"http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace","DefaultRelativePanTiltTranslationSpace":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationGenericSpace","DefaultRelativeZoomTranslationSpace":"http://www.onvif.org/ver10/tptz/ZoomSpaces/TranslationGenericSpace","DefaultContinuousPanTiltVelocitySpace":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/VelocityGenericSpace","DefaultContinuousZoomVelocitySpace":"http://www.onvif.org/ver10/tptz/ZoomSpaces/VelocityGenericSpace","PtzSpeed":null,"DefaultPTZTimeout":"PT00H01M00S","PanTiltLimits":{"Range":{"URI":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace","XRange":{"Min":-1.0,"Max":1.0},"YRange":{"Min":-1.0,"Max":1.0}}},"ZoomLimits":{"Range":{"URI":"http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace","XRange":{"Min":-1.0,"Max":1.0}}}}}, {"@token":"SubStream","@fixed":false,"Name":"SubStream","VideoSourceConfiguration":{"Name":"VideoSourceMain","UseCount":2,"SourceToken":"VideoSourceMain","Bounds":{"@x":0,"@y":0,"@width":704,"@height":576},"Extension":null},"AudioSourceConfiguration":{"Name":"AudioMainName","UseCount":2,"SourceToken":"AudioMainSrcToken"},"VideoEncoderConfiguration":{"@token":"VideoEncodeSub","Name":"VideoEncodeSub","UseCount":1,"Encoding":"H264","Resolution":{"Width":704,"Height":576},"Quality":50.0,"RateControl":{"FrameRateLimit":25,"EncodingInterval":1,"BitrateLimit":500},"MPEG4":{"GovLength":0,"Mpeg4Profile":"SP"},"H264":{"GovLength":100,"H264Profile":"High"},"Multicast":{"Address":{"Type":"IPv4","IPv4Address":"10.201.1.6","IPv6Address":null},"Port":0,"TTL":0,"AutoStart":false},"SessionTimeout":"PT00H12M00S"},"AudioEncoderConfiguration":{"Name":"AudioMain","UseCount":2,"Encoding":"G711","Bitrate":64000,"SampleRate":8000,"Multicast":{"Address":{"Type":"IPv4","IPv4Address":"10.201.1.6","IPv6Address":null},"Port":80,"TTL":1,"AutoStart":false},"SessionTimeout":"PT00H00M00.060S"},"VideoAnalyticsConfiguration":{"Name":"VideoAnalyticsName","UseCount":3},"PTZConfiguration":{"@token":"ptz0","Name":"ptz0","UseCount":2,"MoveRamp":null,"PresetRamp":null,"PresetTourRamp":null,"NodeToken":"ptz0","DefaultAbsolutePantTiltPositionSpace":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace","DefaultAbsoluteZoomPositionSpace":"http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace","DefaultRelativePanTiltTranslationSpace":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/TranslationGenericSpace","DefaultRelativeZoomTranslationSpace":"http://www.onvif.org/ver10/tptz/ZoomSpaces/TranslationGenericSpace","DefaultContinuousPanTiltVelocitySpace":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/VelocityGenericSpace","DefaultContinuousZoomVelocitySpace":"http://www.onvif.org/ver10/tptz/ZoomSpaces/VelocityGenericSpace","PtzSpeed":null,"DefaultPTZTimeout":"PT00H01M00S","PanTiltLimits":{"Range":{"URI":"http://www.onvif.org/ver10/tptz/PanTiltSpaces/PositionGenericSpace","XRange":{"Min":-1.0,"Max":1.0},"YRange":{"Min":-1.0,"Max":1.0}}},"ZoomLimits":{"Range":{"URI":"http://www.onvif.org/ver10/tptz/ZoomSpaces/PositionGenericSpace","XRange":{"Min":-1.0,"Max":1.0}}}}}]
dinurymomshad commented 11 months ago

@faithoflifedev Here is the output for MainStream profile token

PS C:\Users\BS349> onvif ptz get-presets --profile-token MainStream --log-level all
👻 13:12:43.912224 INFO     UI Loggy - Onvif - initializing ...
🐛 13:12:43.927793 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 13:12:43.974660 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 13:12:43.974660 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 13:12:44.115249 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>18</tt:Hour><tt:Minute>41</tt:Minute><tt:Second>40</tt:Second></tt:Time><tt:Date><tt:Year>2017</tt:Year><tt:Month>12</tt:Month><tt:Day>31</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>2</tt:Hour><tt:Minute>41</tt:Minute><tt:Second>40</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 13:12:44.208980 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 13:12:44.240220 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 13:12:44.240220 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">VFfmlrxk6Rj4ueN/Y2b40qUvlXc=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">WWnGOlSm1vnX84lKtiMS1A==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T18:41:40.015618Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 13:12:44.240220 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">VFfmlrxk6Rj4ueN/Y2b40qUvlXc=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">WWnGOlSm1vnX84lKtiMS1A==</wsse:Nonce><wsu:Created>2017-12-31T18:41:40.015618Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 13:12:44.271463 INFO     UI Loggy - Onvif - initialization complete
🐛 13:12:44.271463 DEBUG    UI Loggy - Ptz - getPresets
🐛 13:12:44.271463 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 13:12:44.271463 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">sZeH9Ud6O9QRpQCRc6s22Rsnwec=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">zKzTgesK9oK+jv2lUON5Yw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T18:41:40.062483Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetPresets xmlns="http://www.onvif.org/ver10/device/wsdl"><ProfileToken>MainStream</ProfileToken></GetPresets></s:Body></s:Envelope>
‼️ 13:12:44.287092 ERROR    UI Loggy - LoggingInterceptors - ERROR:
DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

‼️ 13:12:44.302709 ERROR    UI Loggy - Transport - ERROR RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsa:To SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsa:Action SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>wsa:ActionNotSupported</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en">The [action] cannot be processed at the receiver.</SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Unhandled exception:
Exception: Error code: {"Code":{"Value":"SOAP-ENV:Sender","Subcode":{"Value":{"$":"wsa:ActionNotSupported"}}},"Reason":{"lang":"en","note":"The [action] cannot be processed at the receiver."},"Node":null,"Role":null,"Detail":null}
#0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:46:13)
<asynchronous suspension>
#1      Ptz.getPresets (package:easy_onvif/src/ptz.dart:204:22)
<asynchronous suspension>
#2      OnvifGetPresetsPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:431:23)
<asynchronous suspension>
#3      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>

And here is the outcome for SubStream profile token:

PS C:\Users\BS349> onvif ptz get-presets --profile-token SubStream --log-level all
👻 13:18:31.194792 INFO     UI Loggy - Onvif - initializing ...
🐛 13:18:31.194792 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 13:18:31.241651 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 13:18:31.241651 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 13:18:31.382254 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST-8</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>18</tt:Hour><tt:Minute>47</tt:Minute><tt:Second>28</tt:Second></tt:Time><tt:Date><tt:Year>2017</tt:Year><tt:Month>12</tt:Month><tt:Day>31</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>2</tt:Hour><tt:Minute>47</tt:Minute><tt:Second>28</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 13:18:31.475971 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 13:18:31.507213 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 13:18:31.507213 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">DHordK3KJYQh7cY6vJt9ZOvMtAM=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">A7w0K0hYCJ5xcZqvnRLEMA==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T18:47:28.015647Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 13:18:31.522836 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">DHordK3KJYQh7cY6vJt9ZOvMtAM=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">A7w0K0hYCJ5xcZqvnRLEMA==</wsse:Nonce><wsu:Created>2017-12-31T18:47:28.015647Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 13:18:31.538458 INFO     UI Loggy - Onvif - initialization complete
🐛 13:18:31.554103 DEBUG    UI Loggy - Ptz - getPresets
🐛 13:18:31.554103 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 13:18:31.554103 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NF7gpb6oXkkjWIXnuCGy+ak6kx4=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">cq/WcrwO8wdQMg7+aRT3Zw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2017-12-31T18:47:28.078132Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetPresets xmlns="http://www.onvif.org/ver10/device/wsdl"><ProfileToken>SubStream</ProfileToken></GetPresets></s:Body></s:Envelope>
‼️ 13:18:31.569698 ERROR    UI Loggy - LoggingInterceptors - ERROR:
DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

‼️ 13:18:31.569698 ERROR    UI Loggy - Transport - ERROR RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema"><SOAP-ENV:Header><wsa:To SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsa:Action SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>wsa:ActionNotSupported</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en">The [action] cannot be processed at the receiver.</SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Unhandled exception:
Exception: Error code: {"Code":{"Value":"SOAP-ENV:Sender","Subcode":{"Value":{"$":"wsa:ActionNotSupported"}}},"Reason":{"lang":"en","note":"The [action] cannot be processed at the receiver."},"Node":null,"Role":null,"Detail":null}
#0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:46:13)
<asynchronous suspension>
#1      Ptz.getPresets (package:easy_onvif/src/ptz.dart:204:22)
<asynchronous suspension>
#2      OnvifGetPresetsPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:431:23)
<asynchronous suspension>
#3      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
cdavis-venngo commented 11 months ago

HI @dinurymomshad,

Some good news. I've been able to recreate the issue on one of my own devices. I'll dig into the issue and provide further details once they're available.

cdavis-venngo commented 11 months ago

Hello @dinurymomshad, I just published easy_onvif: ^2.1.3+5

It should resolve this issue. Please confirm.

dinurymomshad commented 11 months ago

@faithoflifedev thanks for prompt response. I haven't had the time to check it, but I need to know if I change this line in this version easy_onvif: 2.0.13+19 will it work the same? Because I need to use that version.

Screenshot 2023-12-13 at 11 09 55 PM
dinurymomshad commented 11 months ago

@faithoflifedev thanks for prompt response. I haven't had the time to check it, but I need to know if I change this line in this version easy_onvif: 2.0.13+19 will it work the same? Because I need to use that version.

Screenshot 2023-12-13 at 11 09 55 PM

I downloaded the source code of version 2.0.13+19 and changed this line:

Screenshot 2023-12-13 at 11 36 53 PM

Will this work? @faithoflifedev

cdavis-venngo commented 11 months ago

Yes, that should work.

dinurymomshad commented 11 months ago

Getting this error. I think you have already solved it somewhere. Can you please share with me? @faithoflifedev

Screenshot 2023-12-14 at 3 23 26 PM
faithoflifedev commented 11 months ago

I'd need to see the results of

onvif ptz get-presets --profile-token MainStream --log-level all

now that it's working to determine why the response is not being parsed correctly.

dinurymomshad commented 11 months ago

Here is the output of: onvif ptz get-presets --profile-token MainStream --log-level all

Output:

PS C:\Users\Admin\Documents\GitHub\Longshot-Flutter-App> onvif ptz get-presets --profile-token MainStream --log-level all
👻 23:29:55.273174 INFO     UI Loggy - Onvif - initializing ...
🐛 23:29:55.281175 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 23:29:55.329177 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 23:29:55.330177 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs
d="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 23:29:55.471189 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSche
ma" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addr
essing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.
oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsd
l" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
rity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200
401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/
media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.
onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="h
ttp://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeRespo
nse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST6CDT,M3.2.0,M11.1.0</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>19</tt:Hour><tt:
Minute>48</tt:Minute><tt:Second>50</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>2</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>13</tt:Hour><tt:Minute>48</tt:Minute>
<tt:Second>50</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>2</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelo
pe>

🐛 23:29:55.576198 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 23:29:55.589195 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 23:29:55.590198 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http
://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-
profile-1.0#PasswordDigest">EdGkJgxy1OOo1Th4UzCRG0TaZZ8=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">Ci0J8oteDlDxVoTQGbtkiw==</Nonce><Created xml
ns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-02T19:48:50.003998Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml
ns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 23:29:55.596912 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSche
ma" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addr
essing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.
oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsd
l" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
rity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200
401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/
media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.
onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="h
ttp://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:U
sername><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">EdGkJgxy1OOo1Th4UzCRG0TaZZ8=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss
/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">Ci0J8oteDlDxVoTQGbtkiw==</wsse:Nonce><wsu:Created>2018-01-02T19:48:50.003998Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><
tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major
><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Medi
a</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder Audi
oSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Mino
r></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Cap
abilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource A
udioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor><
/tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Cap
abilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Se
rvice><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausa
bleSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detec
tion</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Maj
or>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201
.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Name
space>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Mes
sage>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabi
lities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:N
amespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Messa
ge></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" Audio
Sources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, 
Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 23:29:55.618912 INFO     UI Loggy - Onvif - initialization complete
🐛 23:29:55.620912 DEBUG    UI Loggy - Ptz - getPresets
🐛 23:29:55.622912 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 23:29:55.622912 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http
://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-
profile-1.0#PasswordDigest">NdLoMR1p5u3ewI9ATcjSN7x4BR4=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">k5n8g9T8QuJgNM8MJJn3sQ==</Nonce><Created xml
ns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-02T19:48:50.046716Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml
ns:xsd="http://www.w3.org/2001/XMLSchema"><GetPresets xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken></GetPresets></s:Body></s:Envelope>
🐛 23:29:55.634914 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSche
ma" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addr
essing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.
oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsd
l" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
rity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200
401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/
media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.
onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="h
ttp://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:U
sername><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">NdLoMR1p5u3ewI9ATcjSN7x4BR4=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss
/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">k5n8g9T8QuJgNM8MJJn3sQ==</wsse:Nonce><wsu:Created>2018-01-02T19:48:50.046716Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><
tptz:GetPresetsResponse><tptz:Preset token="1"><tt:Name>1</tt:Name></tptz:Preset><tptz:Preset token="2"><tt:Name>2</tt:Name></tptz:Preset><tptz:Preset token="3"><tt:Name>3</tt:Name></tptz:Preset><tptz:Preset token="4"><tt:Name>4
</tt:Name></tptz:Preset><tptz:Preset token="5"><tt:Name>5</tt:Name></tptz:Preset><tptz:Preset token="6"><tt:Name>6</tt:Name></tptz:Preset><tptz:Preset token="7"><tt:Name>7</tt:Name></tptz:Preset><tptz:Preset token="8"><tt:Name>8
</tt:Name></tptz:Preset><tptz:Preset token="9"><tt:Name>9</tt:Name></tptz:Preset><tptz:Preset token="10"><tt:Name>10</tt:Name></tptz:Preset><tptz:Preset token="11"><tt:Name>11</tt:Name></tptz:Preset><tptz:Preset token="12"><tt:N
ame>12</tt:Name></tptz:Preset><tptz:Preset token="13"><tt:Name>13</tt:Name></tptz:Preset><tptz:Preset token="14"><tt:Name>14</tt:Name></tptz:Preset><tptz:Preset token="15"><tt:Name>15</tt:Name></tptz:Preset><tptz:Preset token="1
6"><tt:Name>16</tt:Name></tptz:Preset><tptz:Preset token="17"><tt:Name>17</tt:Name></tptz:Preset><tptz:Preset token="18"><tt:Name>18</tt:Name></tptz:Preset><tptz:Preset token="19"><tt:Name>19</tt:Name></tptz:Preset><tptz:Preset 
token="20"><tt:Name>20</tt:Name></tptz:Preset><tptz:Preset token="21"><tt:Name>21</tt:Name></tptz:Preset><tptz:Preset token="22"><tt:Name>22</tt:Name></tptz:Preset><tptz:Preset token="23"><tt:Name>23</tt:Name></tptz:Preset><tptz
:Preset token="24"><tt:Name>24</tt:Name></tptz:Preset><tptz:Preset token="25"><tt:Name>25</tt:Name></tptz:Preset><tptz:Preset token="26"><tt:Name>26</tt:Name></tptz:Preset><tptz:Preset token="27"><tt:Name>27</tt:Name></tptz:Pres
et><tptz:Preset token="28"><tt:Name>28</tt:Name></tptz:Preset><tptz:Preset token="29"><tt:Name>29</tt:Name></tptz:Preset><tptz:Preset token="30"><tt:Name>30</tt:Name></tptz:Preset><tptz:Preset token="31"><tt:Name>31</tt:Name></t
ptz:Preset><tptz:Preset token="32"><tt:Name>32</tt:Name></tptz:Preset><tptz:Preset token="33"><tt:Name>33</tt:Name></tptz:Preset><tptz:Preset token="34"><tt:Name>34</tt:Name></tptz:Preset><tptz:Preset token="35"><tt:Name>35</tt:
Name></tptz:Preset><tptz:Preset token="36"><tt:Name>36</tt:Name></tptz:Preset><tptz:Preset token="37"><tt:Name>37</tt:Name></tptz:Preset><tptz:Preset token="38"><tt:Name>38</tt:Name></tptz:Preset><tptz:Preset token="39"><tt:Name
>39</tt:Name></tptz:Preset><tptz:Preset token="40"><tt:Name>40</tt:Name></tptz:Preset><tptz:Preset token="41"><tt:Name>41</tt:Name></tptz:Preset><tptz:Preset token="42"><tt:Name>42</tt:Name></tptz:Preset><tptz:Preset token="43">
<tt:Name>43</tt:Name></tptz:Preset><tptz:Preset token="44"><tt:Name>44</tt:Name></tptz:Preset><tptz:Preset token="45"><tt:Name>45</tt:Name></tptz:Preset><tptz:Preset token="46"><tt:Name>46</tt:Name></tptz:Preset><tptz:Preset tok
en="47"><tt:Name>47</tt:Name></tptz:Preset><tptz:Preset token="48"><tt:Name>48</tt:Name></tptz:Preset><tptz:Preset token="49"><tt:Name>49</tt:Name></tptz:Preset><tptz:Preset token="50"><tt:Name>50</tt:Name></tptz:Preset><tptz:Pr
eset token="51"><tt:Name>51</tt:Name></tptz:Preset><tptz:Preset token="52"><tt:Name>52</tt:Name></tptz:Preset><tptz:Preset token="53"><tt:Name>53</tt:Name></tptz:Preset><tptz:Preset token="54"><tt:Name>54</tt:Name></tptz:Preset>
<tptz:Preset token="55"><tt:Name>55</tt:Name></tptz:Preset><tptz:Preset token="56"><tt:Name>56</tt:Name></tptz:Preset><tptz:Preset token="57"><tt:Name>57</tt:Name></tptz:Preset><tptz:Preset token="58"><tt:Name>58</tt:Name></tptz
:Preset><tptz:Preset token="59"><tt:Name>59</tt:Name></tptz:Preset><tptz:Preset token="60"><tt:Name>60</tt:Name></tptz:Preset><tptz:Preset token="61"><tt:Name>61</tt:Name></tptz:Preset><tptz:Preset token="62"><tt:Name>62</tt:Nam
e></tptz:Preset><tptz:Preset token="63"><tt:Name>63</tt:Name></tptz:Preset><tptz:Preset token="64"><tt:Name>64</tt:Name></tptz:Preset><tptz:Preset token="65"><tt:Name>65</tt:Name></tptz:Preset><tptz:Preset token="66"><tt:Name>66
</tt:Name></tptz:Preset><tptz:Preset token="67"><tt:Name>67</tt:Name></tptz:Preset><tptz:Preset token="68"><tt:Name>68</tt:Name></tptz:Preset><tptz:Preset token="69"><tt:Name>69</tt:Name></tptz:Preset><tptz:Preset token="70"><tt
:Name>70</tt:Name></tptz:Preset><tptz:Preset token="71"><tt:Name>71</tt:Name></tptz:Preset><tptz:Preset token="72"><tt:Name>72</tt:Name></tptz:Preset><tptz:Preset token="73"><tt:Name>73</tt:Name></tptz:Preset><tptz:Preset token=
"74"><tt:Name>74</tt:Name></tptz:Preset><tptz:Preset token="75"><tt:Name>75</tt:Name></tptz:Preset><tptz:Preset token="76"><tt:Name>76</tt:Name></tptz:Preset><tptz:Preset token="77"><tt:Name>77</tt:Name></tptz:Preset><tptz:Prese
t token="78"><tt:Name>78</tt:Name></tptz:Preset><tptz:Preset token="79"><tt:Name>79</tt:Name></tptz:Preset><tptz:Preset token="80"><tt:Name>80</tt:Name></tptz:Preset><tptz:Preset token="81"><tt:Name>81</tt:Name></tptz:Preset><tp
tz:Preset token="82"><tt:Name>82</tt:Name></tptz:Preset><tptz:Preset token="83"><tt:Name>83</tt:Name></tptz:Preset><tptz:Preset token="84"><tt:Name>84</tt:Name></tptz:Preset><tptz:Preset token="85"><tt:Name>85</tt:Name></tptz:Pr
eset><tptz:Preset token="86"><tt:Name>86</tt:Name></tptz:Preset><tptz:Preset token="87"><tt:Name>87</tt:Name></tptz:Preset><tptz:Preset token="88"><tt:Name>88</tt:Name></tptz:Preset><tptz:Preset token="89"><tt:Name>89</tt:Name><
/tptz:Preset><tptz:Preset token="90"><tt:Name>90</tt:Name></tptz:Preset><tptz:Preset token="91"><tt:Name>91</tt:Name></tptz:Preset><tptz:Preset token="92"><tt:Name>92</tt:Name></tptz:Preset><tptz:Preset token="93"><tt:Name>93</t
t:Name></tptz:Preset><tptz:Preset token="94"><tt:Name>94</tt:Name></tptz:Preset><tptz:Preset token="95"><tt:Name>95</tt:Name></tptz:Preset><tptz:Preset token="96"><tt:Name>96</tt:Name></tptz:Preset><tptz:Preset token="97"><tt:Na
me>97</tt:Name></tptz:Preset><tptz:Preset token="98"><tt:Name>98</tt:Name></tptz:Preset><tptz:Preset token="99"><tt:Name>99</tt:Name></tptz:Preset><tptz:Preset token="100"><tt:Name>100</tt:Name></tptz:Preset><tptz:Preset token="
101"><tt:Name>101</tt:Name></tptz:Preset><tptz:Preset token="102"><tt:Name>102</tt:Name></tptz:Preset><tptz:Preset token="103"><tt:Name>103</tt:Name></tptz:Preset><tptz:Preset token="104"><tt:Name>104</tt:Name></tptz:Preset><tpt
z:Preset token="105"><tt:Name>105</tt:Name></tptz:Preset><tptz:Preset token="106"><tt:Name>106</tt:Name></tptz:Preset><tptz:Preset token="107"><tt:Name>107</tt:Name></tptz:Preset><tptz:Preset token="108"><tt:Name>108</tt:Name></
tptz:Preset><tptz:Preset token="109"><tt:Name>109</tt:Name></tptz:Preset><tptz:Preset token="110"><tt:Name>110</tt:Name></tptz:Preset><tptz:Preset token="111"><tt:Name>111</tt:Name></tptz:Preset><tptz:Preset token="112"><tt:Name
>112</tt:Name></tptz:Preset><tptz:Preset token="113"><tt:Name>113</tt:Name></tptz:Preset><tptz:Preset token="114"><tt:Name>114</tt:Name></tptz:Preset><tptz:Preset token="115"><tt:Name>115</tt:Name></tptz:Preset><tptz:Preset toke
n="116"><tt:Name>116</tt:Name></tptz:Preset><tptz:Preset token="117"><tt:Name>117</tt:Name></tptz:Preset><tptz:Preset token="118"><tt:Name>118</tt:Name></tptz:Preset><tptz:Preset token="119"><tt:Name>119</tt:Name></tptz:Preset><
tptz:Preset token="120"><tt:Name>120</tt:Name></tptz:Preset><tptz:Preset token="121"><tt:Name>121</tt:Name></tptz:Preset><tptz:Preset token="122"><tt:Name>122</tt:Name></tptz:Preset><tptz:Preset token="123"><tt:Name>123</tt:Name
></tptz:Preset><tptz:Preset token="124"><tt:Name>124</tt:Name></tptz:Preset><tptz:Preset token="125"><tt:Name>125</tt:Name></tptz:Preset><tptz:Preset token="126"><tt:Name>126</tt:Name></tptz:Preset><tptz:Preset token="127"><tt:N
ame>127</tt:Name></tptz:Preset><tptz:Preset token="128"><tt:Name>128</tt:Name></tptz:Preset><tptz:Preset token="129"><tt:Name>129</tt:Name></tptz:Preset><tptz:Preset token="130"><tt:Name>130</tt:Name></tptz:Preset><tptz:Preset t
oken="131"><tt:Name>131</tt:Name></tptz:Preset><tptz:Preset token="132"><tt:Name>132</tt:Name></tptz:Preset><tptz:Preset token="133"><tt:Name>133</tt:Name></tptz:Preset><tptz:Preset token="134"><tt:Name>134</tt:Name></tptz:Prese
t><tptz:Preset token="135"><tt:Name>135</tt:Name></tptz:Preset><tptz:Preset token="136"><tt:Name>136</tt:Name></tptz:Preset><tptz:Preset token="137"><tt:Name>137</tt:Name></tptz:Preset><tptz:Preset token="138"><tt:Name>138</tt:N
ame></tptz:Preset><tptz:Preset token="139"><tt:Name>139</tt:Name></tptz:Preset><tptz:Preset token="140"><tt:Name>140</tt:Name></tptz:Preset><tptz:Preset token="141"><tt:Name>141</tt:Name></tptz:Preset><tptz:Preset token="142"><t
t:Name>142</tt:Name></tptz:Preset><tptz:Preset token="143"><tt:Name>143</tt:Name></tptz:Preset><tptz:Preset token="144"><tt:Name>144</tt:Name></tptz:Preset><tptz:Preset token="145"><tt:Name>145</tt:Name></tptz:Preset><tptz:Prese
t token="146"><tt:Name>146</tt:Name></tptz:Preset><tptz:Preset token="147"><tt:Name>147</tt:Name></tptz:Preset><tptz:Preset token="148"><tt:Name>148</tt:Name></tptz:Preset><tptz:Preset token="149"><tt:Name>149</tt:Name></tptz:Pr
eset><tptz:Preset token="150"><tt:Name>150</tt:Name></tptz:Preset><tptz:Preset token="151"><tt:Name>151</tt:Name></tptz:Preset><tptz:Preset token="152"><tt:Name>152</tt:Name></tptz:Preset><tptz:Preset token="153"><tt:Name>153</t
t:Name></tptz:Preset><tptz:Preset token="154"><tt:Name>154</tt:Name></tptz:Preset><tptz:Preset token="155"><tt:Name>155</tt:Name></tptz:Preset><tptz:Preset token="156"><tt:Name>156</tt:Name></tptz:Preset><tptz:Preset token="157"
><tt:Name>157</tt:Name></tptz:Preset><tptz:Preset token="158"><tt:Name>158</tt:Name></tptz:Preset><tptz:Preset token="159"><tt:Name>159</tt:Name></tptz:Preset><tptz:Preset token="160"><tt:Name>160</tt:Name></tptz:Preset><tptz:Pr
eset token="161"><tt:Name>161</tt:Name></tptz:Preset><tptz:Preset token="162"><tt:Name>162</tt:Name></tptz:Preset><tptz:Preset token="163"><tt:Name>163</tt:Name></tptz:Preset><tptz:Preset token="164"><tt:Name>164</tt:Name></tptz
:Preset><tptz:Preset token="165"><tt:Name>165</tt:Name></tptz:Preset><tptz:Preset token="166"><tt:Name>166</tt:Name></tptz:Preset><tptz:Preset token="167"><tt:Name>167</tt:Name></tptz:Preset><tptz:Preset token="168"><tt:Name>168
</tt:Name></tptz:Preset><tptz:Preset token="169"><tt:Name>169</tt:Name></tptz:Preset><tptz:Preset token="170"><tt:Name>170</tt:Name></tptz:Preset><tptz:Preset token="171"><tt:Name>171</tt:Name></tptz:Preset><tptz:Preset token="1
72"><tt:Name>172</tt:Name></tptz:Preset><tptz:Preset token="173"><tt:Name>173</tt:Name></tptz:Preset><tptz:Preset token="174"><tt:Name>174</tt:Name></tptz:Preset><tptz:Preset token="175"><tt:Name>175</tt:Name></tptz:Preset><tptz
:Preset token="176"><tt:Name>176</tt:Name></tptz:Preset><tptz:Preset token="177"><tt:Name>177</tt:Name></tptz:Preset><tptz:Preset token="178"><tt:Name>178</tt:Name></tptz:Preset><tptz:Preset token="179"><tt:Name>179</tt:Name></t
ptz:Preset><tptz:Preset token="180"><tt:Name>180</tt:Name></tptz:Preset><tptz:Preset token="181"><tt:Name>181</tt:Name></tptz:Preset><tptz:Preset token="182"><tt:Name>182</tt:Name></tptz:Preset><tptz:Preset token="183"><tt:Name>
183</tt:Name></tptz:Preset><tptz:Preset token="184"><tt:Name>184</tt:Name></tptz:Preset><tptz:Preset token="185"><tt:Name>185</tt:Name></tptz:Preset><tptz:Preset token="186"><tt:Name>186</tt:Name></tptz:Preset><tptz:Preset token
="187"><tt:Name>187</tt:Name></tptz:Preset><tptz:Preset token="188"><tt:Name>188</tt:Name></tptz:Preset><tptz:Preset token="189"><tt:Name>189</tt:Name></tptz:Preset><tptz:Preset token="190"><tt:Name>190</tt:Name></tptz:Preset><t
ptz:Preset token="191"><tt:Name>191</tt:Name></tptz:Preset><tptz:Preset token="192"><tt:Name>192</tt:Name></tptz:Preset><tptz:Preset token="193"><tt:Name>193</tt:Name></tptz:Preset><tptz:Preset token="194"><tt:Name>194</tt:Name>
</tptz:Preset><tptz:Preset token="195"><tt:Name>195</tt:Name></tptz:Preset><tptz:Preset token="196"><tt:Name>196</tt:Name></tptz:Preset><tptz:Preset token="197"><tt:Name>197</tt:Name></tptz:Preset><tptz:Preset token="198"><tt:Na
me>198</tt:Name></tptz:Preset><tptz:Preset token="199"><tt:Name>199</tt:Name></tptz:Preset><tptz:Preset token="200"><tt:Name>200</tt:Name></tptz:Preset><tptz:Preset token="201"><tt:Name>201</tt:Name></tptz:Preset><tptz:Preset to
ken="202"><tt:Name>202</tt:Name></tptz:Preset><tptz:Preset token="203"><tt:Name>203</tt:Name></tptz:Preset><tptz:Preset token="204"><tt:Name>204</tt:Name></tptz:Preset><tptz:Preset token="205"><tt:Name>205</tt:Name></tptz:Preset
><tptz:Preset token="206"><tt:Name>206</tt:Name></tptz:Preset><tptz:Preset token="207"><tt:Name>207</tt:Name></tptz:Preset><tptz:Preset token="208"><tt:Name>208</tt:Name></tptz:Preset><tptz:Preset token="209"><tt:Name>209</tt:Na
me></tptz:Preset><tptz:Preset token="210"><tt:Name>210</tt:Name></tptz:Preset><tptz:Preset token="211"><tt:Name>211</tt:Name></tptz:Preset><tptz:Preset token="212"><tt:Name>212</tt:Name></tptz:Preset><tptz:Preset token="213"><tt
:Name>213</tt:Name></tptz:Preset><tptz:Preset token="214"><tt:Name>214</tt:Name></tptz:Preset><tptz:Preset token="215"><tt:Name>215</tt:Name></tptz:Preset><tptz:Preset token="216"><tt:Name>216</tt:Name></tptz:Preset><tptz:Preset
 token="217"><tt:Name>217</tt:Name></tptz:Preset><tptz:Preset token="218"><tt:Name>218</tt:Name></tptz:Preset><tptz:Preset token="219"><tt:Name>219</tt:Name></tptz:Preset><tptz:Preset token="220"><tt:Name>220</tt:Name></tptz:Pre
set><tptz:Preset token="221"><tt:Name>221</tt:Name></tptz:Preset><tptz:Preset token="222"><tt:Name>222</tt:Name></tptz:Preset><tptz:Preset token="223"><tt:Name>223</tt:Name></tptz:Preset><tptz:Preset token="224"><tt:Name>224</tt
:Name></tptz:Preset><tptz:Preset token="225"><tt:Name>225</tt:Name></tptz:Preset><tptz:Preset token="226"><tt:Name>226</tt:Name></tptz:Preset><tptz:Preset token="227"><tt:Name>227</tt:Name></tptz:Preset><tptz:Preset token="228">
<tt:Name>228</tt:Name></tptz:Preset><tptz:Preset token="229"><tt:Name>229</tt:Name></tptz:Preset><tptz:Preset token="230"><tt:Name>230</tt:Name></tptz:Preset><tptz:Preset token="231"><tt:Name>231</tt:Name></tptz:Preset><tptz:Pre
set token="232"><tt:Name>232</tt:Name></tptz:Preset><tptz:Preset token="233"><tt:Name>233</tt:Name></tptz:Preset><tptz:Preset token="234"><tt:Name>234</tt:Name></tptz:Preset><tptz:Preset token="235"><tt:Name>235</tt:Name></tptz:
Preset><tptz:Preset token="236"><tt:Name>236</tt:Name></tptz:Preset><tptz:Preset token="237"><tt:Name>237</tt:Name></tptz:Preset><tptz:Preset token="238"><tt:Name>238</tt:Name></tptz:Preset><tptz:Preset token="239"><tt:Name>239<
/tt:Name></tptz:Preset><tptz:Preset token="240"><tt:Name>240</tt:Name></tptz:Preset><tptz:Preset token="241"><tt:Name>241</tt:Name></tptz:Preset><tptz:Preset token="242"><tt:Name>242</tt:Name></tptz:Preset><tptz:Preset token="24
3"><tt:Name>243</tt:Name></tptz:Preset><tptz:Preset token="244"><tt:Name>244</tt:Name></tptz:Preset><tptz:Preset token="245"><tt:Name>245</tt:Name></tptz:Preset><tptz:Preset token="246"><tt:Name>246</tt:Name></tptz:Preset><tptz:
Preset token="247"><tt:Name>247</tt:Name></tptz:Preset><tptz:Preset token="248"><tt:Name>248</tt:Name></tptz:Preset><tptz:Preset token="249"><tt:Name>249</tt:Name></tptz:Preset><tptz:Preset token="250"><tt:Name>250</tt:Name></tp
tz:Preset><tptz:Preset token="251"><tt:Name>251</tt:Name></tptz:Preset><tptz:Preset token="252"><tt:Name>252</tt:Name></tptz:Preset><tptz:Preset token="253"><tt:Name>253</tt:Name></tptz:Preset><tptz:Preset token="254"><tt:Name>2
54</tt:Name></tptz:Preset><tptz:Preset token="255"><tt:Name>255</tt:Name></tptz:Preset></tptz:GetPresetsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Unhandled exception:
type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast
#0      _$PresetFromJson (package:easy_onvif/src/model/ptz/preset.g.dart:13:52)
#1      new Preset.fromJson (package:easy_onvif/src/model/ptz/preset.dart:23:57)
#2      GetPresetsResponse._listIfEmpty.<anonymous closure> (package:easy_onvif/src/model/ptz/get_presets_response.dart:25:32)
#3      MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#4      ListIterator.moveNext (dart:_internal/iterable.dart:344:26)
#5      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#6      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#7      new List.of (dart:core-patch/array_patch.dart:47:28)
#8      ListIterable.toList (dart:_internal/iterable.dart:214:7)
#9      GetPresetsResponse._listIfEmpty (package:easy_onvif/src/model/ptz/get_presets_response.dart:25:69)
#10     _$GetPresetsResponseFromJson (package:easy_onvif/src/model/ptz/get_presets_response.g.dart:11:35)
#11     new GetPresetsResponse.fromJson (package:easy_onvif/src/model/ptz/get_presets_response.dart:17:7)
#12     Ptz.getPresets (package:easy_onvif/src/ptz.dart:210:28)
<asynchronous suspension>
#13     OnvifGetPresetsPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:431:23)
<asynchronous suspension>
#14     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
faithoflifedev commented 11 months ago

Hi @dinurymomshad,

It looks like your device doesn't follow the Onvif spec by providing the "position" of the stored presets.

I've published easy_onvif: ^2.1.3+7

The changes are outlined in this commit

dinurymomshad commented 11 months ago

Following up on my previous question, @faithoflifedev. I confirmed your fix for fetching presets, but I'm encountering further issues:

  1. Setting a preset doesn't trigger an error, but the camera (WEB GUI) doesn't display it.
  2. "Goto preset" results in an error.

Here's the log for your reference:

C:\Users\Admin>onvif ptz get-presets --profile-token MainStream --log-level all
👻 01:19:48.756290 INFO     UI Loggy - Onvif - initializing ...
🐛 01:19:48.764291 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 01:19:48.807294 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 01:19:48.808294 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 01:19:48.926302 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST6CDT,M3.2.0,M11.1.0</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>5</tt:Hour><tt:Minute>51</tt:Minute><tt:Second>24</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>3</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>23</tt:Hour><tt:Minute>51</tt:Minute><tt:Second>24</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>2</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 01:19:49.025310 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 01:19:49.040311 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 01:19:49.041313 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">KFxX+IxNPNj5AFvMwB9EKgfjMmU=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">drXXQF6O4Sk61S/VPwXsqw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-03T05:51:24.004Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 01:19:49.051681 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">KFxX+IxNPNj5AFvMwB9EKgfjMmU=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">drXXQF6O4Sk61S/VPwXsqw==</wsse:Nonce><wsu:Created>2018-01-03T05:51:24.004Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 01:19:49.073681 INFO     UI Loggy - Onvif - initialization complete
🐛 01:19:49.074682 DEBUG    UI Loggy - Ptz - getPresets
🐛 01:19:49.077682 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 01:19:49.077682 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">QUhTthZx1Me3s8b9BLXu5cNbFio=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">kei8DHPVSOJZwvW0y+aYCA==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-03T05:51:24.051372Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetPresets xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken>MainStream</ProfileToken></GetPresets></s:Body></s:Envelope>
🐛 01:19:49.087354 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">QUhTthZx1Me3s8b9BLXu5cNbFio=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">kei8DHPVSOJZwvW0y+aYCA==</wsse:Nonce><wsu:Created>2018-01-03T05:51:24.051372Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tptz:GetPresetsResponse><tptz:Preset token="1"><tt:Name>1</tt:Name></tptz:Preset><tptz:Preset token="2"><tt:Name>2</tt:Name></tptz:Preset><tptz:Preset token="3"><tt:Name>3</tt:Name></tptz:Preset><tptz:Preset token="4"><tt:Name>4</tt:Name></tptz:Preset><tptz:Preset token="5"><tt:Name>5</tt:Name></tptz:Preset><tptz:Preset token="6"><tt:Name>6</tt:Name></tptz:Preset><tptz:Preset token="7"><tt:Name>7</tt:Name></tptz:Preset><tptz:Preset token="8"><tt:Name>8</tt:Name></tptz:Preset><tptz:Preset token="9"><tt:Name>9</tt:Name></tptz:Preset><tptz:Preset token="10"><tt:Name>10</tt:Name></tptz:Preset><tptz:Preset token="11"><tt:Name>11</tt:Name></tptz:Preset><tptz:Preset token="12"><tt:Name>12</tt:Name></tptz:Preset><tptz:Preset token="13"><tt:Name>13</tt:Name></tptz:Preset><tptz:Preset token="14"><tt:Name>14</tt:Name></tptz:Preset><tptz:Preset token="15"><tt:Name>15</tt:Name></tptz:Preset><tptz:Preset token="16"><tt:Name>16</tt:Name></tptz:Preset><tptz:Preset token="17"><tt:Name>17</tt:Name></tptz:Preset><tptz:Preset token="18"><tt:Name>18</tt:Name></tptz:Preset><tptz:Preset token="19"><tt:Name>19</tt:Name></tptz:Preset><tptz:Preset token="20"><tt:Name>20</tt:Name></tptz:Preset><tptz:Preset token="21"><tt:Name>21</tt:Name></tptz:Preset><tptz:Preset token="22"><tt:Name>22</tt:Name></tptz:Preset><tptz:Preset token="23"><tt:Name>23</tt:Name></tptz:Preset><tptz:Preset token="24"><tt:Name>24</tt:Name></tptz:Preset><tptz:Preset token="25"><tt:Name>25</tt:Name></tptz:Preset><tptz:Preset token="26"><tt:Name>26</tt:Name></tptz:Preset><tptz:Preset token="27"><tt:Name>27</tt:Name></tptz:Preset><tptz:Preset token="28"><tt:Name>28</tt:Name></tptz:Preset><tptz:Preset token="29"><tt:Name>29</tt:Name></tptz:Preset><tptz:Preset token="30"><tt:Name>30</tt:Name></tptz:Preset><tptz:Preset token="31"><tt:Name>31</tt:Name></tptz:Preset><tptz:Preset token="32"><tt:Name>32</tt:Name></tptz:Preset><tptz:Preset token="33"><tt:Name>33</tt:Name></tptz:Preset><tptz:Preset token="34"><tt:Name>34</tt:Name></tptz:Preset><tptz:Preset token="35"><tt:Name>35</tt:Name></tptz:Preset><tptz:Preset token="36"><tt:Name>36</tt:Name></tptz:Preset><tptz:Preset token="37"><tt:Name>37</tt:Name></tptz:Preset><tptz:Preset token="38"><tt:Name>38</tt:Name></tptz:Preset><tptz:Preset token="39"><tt:Name>39</tt:Name></tptz:Preset><tptz:Preset token="40"><tt:Name>40</tt:Name></tptz:Preset><tptz:Preset token="41"><tt:Name>41</tt:Name></tptz:Preset><tptz:Preset token="42"><tt:Name>42</tt:Name></tptz:Preset><tptz:Preset token="43"><tt:Name>43</tt:Name></tptz:Preset><tptz:Preset token="44"><tt:Name>44</tt:Name></tptz:Preset><tptz:Preset token="45"><tt:Name>45</tt:Name></tptz:Preset><tptz:Preset token="46"><tt:Name>46</tt:Name></tptz:Preset><tptz:Preset token="47"><tt:Name>47</tt:Name></tptz:Preset><tptz:Preset token="48"><tt:Name>48</tt:Name></tptz:Preset><tptz:Preset token="49"><tt:Name>49</tt:Name></tptz:Preset><tptz:Preset token="50"><tt:Name>50</tt:Name></tptz:Preset><tptz:Preset token="51"><tt:Name>51</tt:Name></tptz:Preset><tptz:Preset token="52"><tt:Name>52</tt:Name></tptz:Preset><tptz:Preset token="53"><tt:Name>53</tt:Name></tptz:Preset><tptz:Preset token="54"><tt:Name>54</tt:Name></tptz:Preset><tptz:Preset token="55"><tt:Name>55</tt:Name></tptz:Preset><tptz:Preset token="56"><tt:Name>56</tt:Name></tptz:Preset><tptz:Preset token="57"><tt:Name>57</tt:Name></tptz:Preset><tptz:Preset token="58"><tt:Name>58</tt:Name></tptz:Preset><tptz:Preset token="59"><tt:Name>59</tt:Name></tptz:Preset><tptz:Preset token="60"><tt:Name>60</tt:Name></tptz:Preset><tptz:Preset token="61"><tt:Name>61</tt:Name></tptz:Preset><tptz:Preset token="62"><tt:Name>62</tt:Name></tptz:Preset><tptz:Preset token="63"><tt:Name>63</tt:Name></tptz:Preset><tptz:Preset token="64"><tt:Name>64</tt:Name></tptz:Preset><tptz:Preset token="65"><tt:Name>65</tt:Name></tptz:Preset><tptz:Preset token="66"><tt:Name>66</tt:Name></tptz:Preset><tptz:Preset token="67"><tt:Name>67</tt:Name></tptz:Preset><tptz:Preset token="68"><tt:Name>68</tt:Name></tptz:Preset><tptz:Preset token="69"><tt:Name>69</tt:Name></tptz:Preset><tptz:Preset token="70"><tt:Name>70</tt:Name></tptz:Preset><tptz:Preset token="71"><tt:Name>71</tt:Name></tptz:Preset><tptz:Preset token="72"><tt:Name>72</tt:Name></tptz:Preset><tptz:Preset token="73"><tt:Name>73</tt:Name></tptz:Preset><tptz:Preset token="74"><tt:Name>74</tt:Name></tptz:Preset><tptz:Preset token="75"><tt:Name>75</tt:Name></tptz:Preset><tptz:Preset token="76"><tt:Name>76</tt:Name></tptz:Preset><tptz:Preset token="77"><tt:Name>77</tt:Name></tptz:Preset><tptz:Preset token="78"><tt:Name>78</tt:Name></tptz:Preset><tptz:Preset token="79"><tt:Name>79</tt:Name></tptz:Preset><tptz:Preset token="80"><tt:Name>80</tt:Name></tptz:Preset><tptz:Preset token="81"><tt:Name>81</tt:Name></tptz:Preset><tptz:Preset token="82"><tt:Name>82</tt:Name></tptz:Preset><tptz:Preset token="83"><tt:Name>83</tt:Name></tptz:Preset><tptz:Preset token="84"><tt:Name>84</tt:Name></tptz:Preset><tptz:Preset token="85"><tt:Name>85</tt:Name></tptz:Preset><tptz:Preset token="86"><tt:Name>86</tt:Name></tptz:Preset><tptz:Preset token="87"><tt:Name>87</tt:Name></tptz:Preset><tptz:Preset token="88"><tt:Name>88</tt:Name></tptz:Preset><tptz:Preset token="89"><tt:Name>89</tt:Name></tptz:Preset><tptz:Preset token="90"><tt:Name>90</tt:Name></tptz:Preset><tptz:Preset token="91"><tt:Name>91</tt:Name></tptz:Preset><tptz:Preset token="92"><tt:Name>92</tt:Name></tptz:Preset><tptz:Preset token="93"><tt:Name>93</tt:Name></tptz:Preset><tptz:Preset token="94"><tt:Name>94</tt:Name></tptz:Preset><tptz:Preset token="95"><tt:Name>95</tt:Name></tptz:Preset><tptz:Preset token="96"><tt:Name>96</tt:Name></tptz:Preset><tptz:Preset token="97"><tt:Name>97</tt:Name></tptz:Preset><tptz:Preset token="98"><tt:Name>98</tt:Name></tptz:Preset><tptz:Preset token="99"><tt:Name>99</tt:Name></tptz:Preset><tptz:Preset token="100"><tt:Name>100</tt:Name></tptz:Preset><tptz:Preset token="101"><tt:Name>101</tt:Name></tptz:Preset><tptz:Preset token="102"><tt:Name>102</tt:Name></tptz:Preset><tptz:Preset token="103"><tt:Name>103</tt:Name></tptz:Preset><tptz:Preset token="104"><tt:Name>104</tt:Name></tptz:Preset><tptz:Preset token="105"><tt:Name>105</tt:Name></tptz:Preset><tptz:Preset token="106"><tt:Name>106</tt:Name></tptz:Preset><tptz:Preset token="107"><tt:Name>107</tt:Name></tptz:Preset><tptz:Preset token="108"><tt:Name>108</tt:Name></tptz:Preset><tptz:Preset token="109"><tt:Name>109</tt:Name></tptz:Preset><tptz:Preset token="110"><tt:Name>110</tt:Name></tptz:Preset><tptz:Preset token="111"><tt:Name>111</tt:Name></tptz:Preset><tptz:Preset token="112"><tt:Name>112</tt:Name></tptz:Preset><tptz:Preset token="113"><tt:Name>113</tt:Name></tptz:Preset><tptz:Preset token="114"><tt:Name>114</tt:Name></tptz:Preset><tptz:Preset token="115"><tt:Name>115</tt:Name></tptz:Preset><tptz:Preset token="116"><tt:Name>116</tt:Name></tptz:Preset><tptz:Preset token="117"><tt:Name>117</tt:Name></tptz:Preset><tptz:Preset token="118"><tt:Name>118</tt:Name></tptz:Preset><tptz:Preset token="119"><tt:Name>119</tt:Name></tptz:Preset><tptz:Preset token="120"><tt:Name>120</tt:Name></tptz:Preset><tptz:Preset token="121"><tt:Name>121</tt:Name></tptz:Preset><tptz:Preset token="122"><tt:Name>122</tt:Name></tptz:Preset><tptz:Preset token="123"><tt:Name>123</tt:Name></tptz:Preset><tptz:Preset token="124"><tt:Name>124</tt:Name></tptz:Preset><tptz:Preset token="125"><tt:Name>125</tt:Name></tptz:Preset><tptz:Preset token="126"><tt:Name>126</tt:Name></tptz:Preset><tptz:Preset token="127"><tt:Name>127</tt:Name></tptz:Preset><tptz:Preset token="128"><tt:Name>128</tt:Name></tptz:Preset><tptz:Preset token="129"><tt:Name>129</tt:Name></tptz:Preset><tptz:Preset token="130"><tt:Name>130</tt:Name></tptz:Preset><tptz:Preset token="131"><tt:Name>131</tt:Name></tptz:Preset><tptz:Preset token="132"><tt:Name>132</tt:Name></tptz:Preset><tptz:Preset token="133"><tt:Name>133</tt:Name></tptz:Preset><tptz:Preset token="134"><tt:Name>134</tt:Name></tptz:Preset><tptz:Preset token="135"><tt:Name>135</tt:Name></tptz:Preset><tptz:Preset token="136"><tt:Name>136</tt:Name></tptz:Preset><tptz:Preset token="137"><tt:Name>137</tt:Name></tptz:Preset><tptz:Preset token="138"><tt:Name>138</tt:Name></tptz:Preset><tptz:Preset token="139"><tt:Name>139</tt:Name></tptz:Preset><tptz:Preset token="140"><tt:Name>140</tt:Name></tptz:Preset><tptz:Preset token="141"><tt:Name>141</tt:Name></tptz:Preset><tptz:Preset token="142"><tt:Name>142</tt:Name></tptz:Preset><tptz:Preset token="143"><tt:Name>143</tt:Name></tptz:Preset><tptz:Preset token="144"><tt:Name>144</tt:Name></tptz:Preset><tptz:Preset token="145"><tt:Name>145</tt:Name></tptz:Preset><tptz:Preset token="146"><tt:Name>146</tt:Name></tptz:Preset><tptz:Preset token="147"><tt:Name>147</tt:Name></tptz:Preset><tptz:Preset token="148"><tt:Name>148</tt:Name></tptz:Preset><tptz:Preset token="149"><tt:Name>149</tt:Name></tptz:Preset><tptz:Preset token="150"><tt:Name>150</tt:Name></tptz:Preset><tptz:Preset token="151"><tt:Name>151</tt:Name></tptz:Preset><tptz:Preset token="152"><tt:Name>152</tt:Name></tptz:Preset><tptz:Preset token="153"><tt:Name>153</tt:Name></tptz:Preset><tptz:Preset token="154"><tt:Name>154</tt:Name></tptz:Preset><tptz:Preset token="155"><tt:Name>155</tt:Name></tptz:Preset><tptz:Preset token="156"><tt:Name>156</tt:Name></tptz:Preset><tptz:Preset token="157"><tt:Name>157</tt:Name></tptz:Preset><tptz:Preset token="158"><tt:Name>158</tt:Name></tptz:Preset><tptz:Preset token="159"><tt:Name>159</tt:Name></tptz:Preset><tptz:Preset token="160"><tt:Name>160</tt:Name></tptz:Preset><tptz:Preset token="161"><tt:Name>161</tt:Name></tptz:Preset><tptz:Preset token="162"><tt:Name>162</tt:Name></tptz:Preset><tptz:Preset token="163"><tt:Name>163</tt:Name></tptz:Preset><tptz:Preset token="164"><tt:Name>164</tt:Name></tptz:Preset><tptz:Preset token="165"><tt:Name>165</tt:Name></tptz:Preset><tptz:Preset token="166"><tt:Name>166</tt:Name></tptz:Preset><tptz:Preset token="167"><tt:Name>167</tt:Name></tptz:Preset><tptz:Preset token="168"><tt:Name>168</tt:Name></tptz:Preset><tptz:Preset token="169"><tt:Name>169</tt:Name></tptz:Preset><tptz:Preset token="170"><tt:Name>170</tt:Name></tptz:Preset><tptz:Preset token="171"><tt:Name>171</tt:Name></tptz:Preset><tptz:Preset token="172"><tt:Name>172</tt:Name></tptz:Preset><tptz:Preset token="173"><tt:Name>173</tt:Name></tptz:Preset><tptz:Preset token="174"><tt:Name>174</tt:Name></tptz:Preset><tptz:Preset token="175"><tt:Name>175</tt:Name></tptz:Preset><tptz:Preset token="176"><tt:Name>176</tt:Name></tptz:Preset><tptz:Preset token="177"><tt:Name>177</tt:Name></tptz:Preset><tptz:Preset token="178"><tt:Name>178</tt:Name></tptz:Preset><tptz:Preset token="179"><tt:Name>179</tt:Name></tptz:Preset><tptz:Preset token="180"><tt:Name>180</tt:Name></tptz:Preset><tptz:Preset token="181"><tt:Name>181</tt:Name></tptz:Preset><tptz:Preset token="182"><tt:Name>182</tt:Name></tptz:Preset><tptz:Preset token="183"><tt:Name>183</tt:Name></tptz:Preset><tptz:Preset token="184"><tt:Name>184</tt:Name></tptz:Preset><tptz:Preset token="185"><tt:Name>185</tt:Name></tptz:Preset><tptz:Preset token="186"><tt:Name>186</tt:Name></tptz:Preset><tptz:Preset token="187"><tt:Name>187</tt:Name></tptz:Preset><tptz:Preset token="188"><tt:Name>188</tt:Name></tptz:Preset><tptz:Preset token="189"><tt:Name>189</tt:Name></tptz:Preset><tptz:Preset token="190"><tt:Name>190</tt:Name></tptz:Preset><tptz:Preset token="191"><tt:Name>191</tt:Name></tptz:Preset><tptz:Preset token="192"><tt:Name>192</tt:Name></tptz:Preset><tptz:Preset token="193"><tt:Name>193</tt:Name></tptz:Preset><tptz:Preset token="194"><tt:Name>194</tt:Name></tptz:Preset><tptz:Preset token="195"><tt:Name>195</tt:Name></tptz:Preset><tptz:Preset token="196"><tt:Name>196</tt:Name></tptz:Preset><tptz:Preset token="197"><tt:Name>197</tt:Name></tptz:Preset><tptz:Preset token="198"><tt:Name>198</tt:Name></tptz:Preset><tptz:Preset token="199"><tt:Name>199</tt:Name></tptz:Preset><tptz:Preset token="200"><tt:Name>200</tt:Name></tptz:Preset><tptz:Preset token="201"><tt:Name>201</tt:Name></tptz:Preset><tptz:Preset token="202"><tt:Name>202</tt:Name></tptz:Preset><tptz:Preset token="203"><tt:Name>203</tt:Name></tptz:Preset><tptz:Preset token="204"><tt:Name>204</tt:Name></tptz:Preset><tptz:Preset token="205"><tt:Name>205</tt:Name></tptz:Preset><tptz:Preset token="206"><tt:Name>206</tt:Name></tptz:Preset><tptz:Preset token="207"><tt:Name>207</tt:Name></tptz:Preset><tptz:Preset token="208"><tt:Name>208</tt:Name></tptz:Preset><tptz:Preset token="209"><tt:Name>209</tt:Name></tptz:Preset><tptz:Preset token="210"><tt:Name>210</tt:Name></tptz:Preset><tptz:Preset token="211"><tt:Name>211</tt:Name></tptz:Preset><tptz:Preset token="212"><tt:Name>212</tt:Name></tptz:Preset><tptz:Preset token="213"><tt:Name>213</tt:Name></tptz:Preset><tptz:Preset token="214"><tt:Name>214</tt:Name></tptz:Preset><tptz:Preset token="215"><tt:Name>215</tt:Name></tptz:Preset><tptz:Preset token="216"><tt:Name>216</tt:Name></tptz:Preset><tptz:Preset token="217"><tt:Name>217</tt:Name></tptz:Preset><tptz:Preset token="218"><tt:Name>218</tt:Name></tptz:Preset><tptz:Preset token="219"><tt:Name>219</tt:Name></tptz:Preset><tptz:Preset token="220"><tt:Name>220</tt:Name></tptz:Preset><tptz:Preset token="221"><tt:Name>221</tt:Name></tptz:Preset><tptz:Preset token="222"><tt:Name>222</tt:Name></tptz:Preset><tptz:Preset token="223"><tt:Name>223</tt:Name></tptz:Preset><tptz:Preset token="224"><tt:Name>224</tt:Name></tptz:Preset><tptz:Preset token="225"><tt:Name>225</tt:Name></tptz:Preset><tptz:Preset token="226"><tt:Name>226</tt:Name></tptz:Preset><tptz:Preset token="227"><tt:Name>227</tt:Name></tptz:Preset><tptz:Preset token="228"><tt:Name>228</tt:Name></tptz:Preset><tptz:Preset token="229"><tt:Name>229</tt:Name></tptz:Preset><tptz:Preset token="230"><tt:Name>230</tt:Name></tptz:Preset><tptz:Preset token="231"><tt:Name>231</tt:Name></tptz:Preset><tptz:Preset token="232"><tt:Name>232</tt:Name></tptz:Preset><tptz:Preset token="233"><tt:Name>233</tt:Name></tptz:Preset><tptz:Preset token="234"><tt:Name>234</tt:Name></tptz:Preset><tptz:Preset token="235"><tt:Name>235</tt:Name></tptz:Preset><tptz:Preset token="236"><tt:Name>236</tt:Name></tptz:Preset><tptz:Preset token="237"><tt:Name>237</tt:Name></tptz:Preset><tptz:Preset token="238"><tt:Name>238</tt:Name></tptz:Preset><tptz:Preset token="239"><tt:Name>239</tt:Name></tptz:Preset><tptz:Preset token="240"><tt:Name>240</tt:Name></tptz:Preset><tptz:Preset token="241"><tt:Name>241</tt:Name></tptz:Preset><tptz:Preset token="242"><tt:Name>242</tt:Name></tptz:Preset><tptz:Preset token="243"><tt:Name>243</tt:Name></tptz:Preset><tptz:Preset token="244"><tt:Name>244</tt:Name></tptz:Preset><tptz:Preset token="245"><tt:Name>245</tt:Name></tptz:Preset><tptz:Preset token="246"><tt:Name>246</tt:Name></tptz:Preset><tptz:Preset token="247"><tt:Name>247</tt:Name></tptz:Preset><tptz:Preset token="248"><tt:Name>248</tt:Name></tptz:Preset><tptz:Preset token="249"><tt:Name>249</tt:Name></tptz:Preset><tptz:Preset token="250"><tt:Name>250</tt:Name></tptz:Preset><tptz:Preset token="251"><tt:Name>251</tt:Name></tptz:Preset><tptz:Preset token="252"><tt:Name>252</tt:Name></tptz:Preset><tptz:Preset token="253"><tt:Name>253</tt:Name></tptz:Preset><tptz:Preset token="254"><tt:Name>254</tt:Name></tptz:Preset><tptz:Preset token="255"><tt:Name>255</tt:Name></tptz:Preset></tptz:GetPresetsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

[{"@token":"1","Name":"1","PTZPosition":null}, {"@token":"2","Name":"2","PTZPosition":null}, {"@token":"3","Name":"3","PTZPosition":null}, {"@token":"4","Name":"4","PTZPosition":null}, {"@token":"5","Name":"5","PTZPosition":null}, {"@token":"6","Name":"6","PTZPosition":null}, {"@token":"7","Name":"7","PTZPosition":null}, {"@token":"8","Name":"8","PTZPosition":null}, {"@token":"9","Name":"9","PTZPosition":null}, {"@token":"10","Name":"10","PTZPosition":null}]

C:\Users\Admin>onvif ptz set-preset --profile-token MainStream --preset-token 3 --preset-name Test3 --log-level all
👻 02:06:59.376130 INFO     UI Loggy - Onvif - initializing ...
🐛 02:06:59.383134 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 02:06:59.431133 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 02:06:59.432134 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 02:06:59.540143 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST6CDT,M3.2.0,M11.1.0</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>6</tt:Hour><tt:Minute>38</tt:Minute><tt:Second>35</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>3</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>0</tt:Hour><tt:Minute>38</tt:Minute><tt:Second>35</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>3</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 02:06:59.630148 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 02:06:59.644150 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 02:06:59.645150 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">hfASJjzeGq4A72Ft2JLVkYRIMpw=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">h9DlSxH5dSz5+j0dIW3acQ==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-03T06:38:35.003001Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 02:06:59.653151 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">hfASJjzeGq4A72Ft2JLVkYRIMpw=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">h9DlSxH5dSz5+j0dIW3acQ==</wsse:Nonce><wsu:Created>2018-01-03T06:38:35.003001Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 02:06:59.673153 INFO     UI Loggy - Onvif - initialization complete
🐛 02:06:59.675151 DEBUG    UI Loggy - Ptz - setPreset
🐛 02:06:59.678153 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 02:06:59.678153 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">G5H3WspMKu+0Vd3goqs02JBcgqM=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">O2kebt8rZjPoxmGEmGJkVw==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-03T06:38:35.046006Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SetPreset xmlns="http://www.onvif.org/ver20/ptz/wsdl"><ProfileToken xmlns="http://www.onvif.org/ver20/ptz/wsdl">MainStream</ProfileToken><PresetName xmlns="http://www.onvif.org/ver20/ptz/wsdl">Test3</PresetName><PresetToken xmlns="http://www.onvif.org/ver20/ptz/wsdl">3</PresetToken></SetPreset></s:Body></s:Envelope>
🐛 02:06:59.685152 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">G5H3WspMKu+0Vd3goqs02JBcgqM=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">O2kebt8rZjPoxmGEmGJkVw==</wsse:Nonce><wsu:Created>2018-01-03T06:38:35.046006Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tptz:SetPresetResponse><tptz:PresetToken>3</tptz:PresetToken></tptz:SetPresetResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

3

C:\Users\Admin>onvif ptz get-presets --profile-token MainStream
[{"@token":"1","Name":"1","PTZPosition":null}, {"@token":"2","Name":"2","PTZPosition":null}, {"@token":"3","Name":"3","PTZPosition":null}, {"@token":"4","Name":"4","PTZPosition":null}, {"@token":"5","Name":"5","PTZPosition":null}, {"@token":"6","Name":"6","PTZPosition":null}, {"@token":"7","Name":"7","PTZPosition":null}, {"@token":"8","Name":"8","PTZPosition":null}, {"@token":"9","Name":"9","PTZPosition":null}, {"@token":"10","Name":"10","PTZPosition":null}]

C:\Users\Admin>onvif ptz goto-preset --profile-token MainStream --preset-token 3 --log-level all
👻 02:05:07.199821 INFO     UI Loggy - Onvif - initializing ...
🐛 02:05:07.206823 DEBUG    UI Loggy - DeviceManagement - getSystemDateAndTime
🐛 02:05:07.249825 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 02:05:07.249825 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header/><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>
🐛 02:05:07.366735 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CST6CDT,M3.2.0,M11.1.0</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>6</tt:Hour><tt:Minute>36</tt:Minute><tt:Second>43</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>3</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>0</tt:Hour><tt:Minute>36</tt:Minute><tt:Second>43</tt:Second></tt:Time><tt:Date><tt:Year>2018</tt:Year><tt:Month>1</tt:Month><tt:Day>3</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

🐛 02:05:07.454740 DEBUG    UI Loggy - DeviceManagement - getServices
🐛 02:05:07.472741 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/onvif/device_service
🐛 02:05:07.472741 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">0pfzzOGSerl1oT0xXLlDwOZeMn8=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">hoRlDlg44aZk10w8AemMlg==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-03T06:36:43.003Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetServices xmlns="http://www.onvif.org/ver10/device/wsdl"><IncludeCapability>true</IncludeCapability></GetServices></s:Body></s:Envelope>
🐛 02:05:07.482742 DEBUG    UI Loggy - LoggingInterceptors - RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsse:Security><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">0pfzzOGSerl1oT0xXLlDwOZeMn8=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">hoRlDlg44aZk10w8AemMlg==</wsse:Nonce><wsu:Created>2018-01-03T06:36:43.003Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Device</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media</tds:XAddr><tds:Capabilities><trt:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true"><trt:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><trt:StreamingCapabilities RTPMulticast="true" RTP_TCP="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></trt:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/media/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Media2</tds:XAddr><tds:Capabilities><tr2:Capabilities SnapshotUri="true" Rotation="false" VideoSourceMode="false" OSD="true" Mask="true"><tr2:ProfileCapabilities MaximumNumberOfProfiles="10" ConfigurationsSupported="VideoSource VideoEncoder AudioSource AudioEncoder"/><tr2:StreamingCapabilities RTSPStreaming="true" RTPMulticast="true" RTP_RTSP_TCP="true" NonAggregateControl="false"/></tr2:Capabilities></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Imaging</tds:XAddr><tds:Capabilities><timg:Capabilities ImageStabilization="false"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Event</tds:XAddr><tds:Capabilities><tev:Capabilities WSSubscriptionPolicySupport="true" WSPullPointSupport="true" WSPausableSubscriptionManagerInterfaceSupport="true" MaxNotificationProducers="10" MaxPullPoints="10"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Analytics</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/PTZ</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/search/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Search</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/replay/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Replay</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/recording/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/Recording</tds:XAddr><tds:Capabilities> </tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://10.201.1.6:80/DeviceIO</tds:XAddr><tds:Capabilities><tmd:Capabilities VideoSources="1" VideoOutputs="0" AudioSources="1" AudioOutputs="1" RelayOutputs="1" DigitalInputs="1" SerialPorts="0" DigitalInputOptions="true"/></tds:Capabilities><tds:Version><tt:Major>8</tt:Major><tt:Minor>28</tt:Minor></tds:Version><tds:Message>Face Detection, Motion Detection</tds:Message></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

👻 02:05:07.500747 INFO     UI Loggy - Onvif - initialization complete
🐛 02:05:07.502750 DEBUG    UI Loggy - Ptz - gotoPreset
🐛 02:05:07.504744 DEBUG    UI Loggy - LoggingInterceptors - URI: http://10.201.1.6/PTZ
🐛 02:05:07.504744 DEBUG    UI Loggy - LoggingInterceptors - REQUEST:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><Security xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"><UsernameToken><Username>admin</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Yi8fH7VBdO9b5qmaEfbfLV+GyIo=</Password><Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">UhyypK8YLfaqN2Yq1j9kjA==</Nonce><Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-01-03T06:36:43.049005Z</Created></UsernameToken></Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GotoPreset xmlns="http://www.onvif.org/ver10/device/wsdl"><ProfileToken xmlns="http://www.onvif.org/ver20/ptz/wsdl">MainStream</ProfileToken><PresetToken xmlns="http://www.onvif.org/ver20/ptz/wsdl">3</PresetToken><Speed/></GotoPreset></s:Body></s:Envelope>
‼️ 02:05:07.520748 ERROR    UI Loggy - LoggingInterceptors - ERROR:
DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

‼️ 02:05:07.522752 ERROR    UI Loggy - Transport - ERROR RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ewsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:exsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><SOAP-ENV:Header><wsa:To SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsa:Action SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value><SOAP-ENV:Subcode><SOAP-ENV:Value>wsa:ActionNotSupported</SOAP-ENV:Value></SOAP-ENV:Subcode></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en">The [action] cannot be processed at the receiver.</SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Unhandled exception:
Exception: Error code: {"Code":{"Value":"SOAP-ENV:Sender","Subcode":{"Value":{"$":"wsa:ActionNotSupported"}}},"Reason":{"lang":"en","note":"The [action] cannot be processed at the receiver."},"Node":null,"Role":null,"Detail":null}
#0      Transport.sendRequest (package:easy_onvif/src/soap/transport.dart:46:13)
<asynchronous suspension>
#1      Ptz.gotoPreset (package:easy_onvif/src/ptz.dart:315:22)
<asynchronous suspension>
#2      OnvifGotoPresetPtzCommand.run (package:easy_onvif/src/cmd/onvif_ptz_command.dart:599:7)
<asynchronous suspension>
#3      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
dinurymomshad commented 11 months ago

@faithoflifedev Please take a look at this when you are free. Thanks in advance.

faithoflifedev commented 11 months ago

@dinurymomshad here's the latest change. This one I don't have a device to test with.

commit

momshaddinury commented 11 months ago

@dinurymomshad here's the latest change. This one I don't have a device to test with.

commit

Can you share link of the camera models that you use to test this library with and is compatible?

faithoflifedev commented 11 months ago

@dinurymomshad , it's not a long list, it's available in the README - tested-onvif-devices

momshaddinury commented 11 months ago

@dinurymomshad , it's not a long list, it's available in the README - tested-onvif-devices

Is it possible to send our testing devices to you?

faithoflifedev commented 11 months ago

@dinurymomshad , my twitter/X address is on my profile, you can PM me through there if you want to arrange to make the device temporarily available on the internet using a tool like ngrok , which can save some time.

momshaddinury commented 11 months ago

Thanks @faithoflifedev for your support. I have tested all the functionalities for ellinet 50 camera model and the following works:

We can work with this to build a system I think. We need to use local db since GetPresets is acting weird.

We can mark this issue as done I think. But I've other cameras that doesn't work.

faithoflifedev commented 11 months ago

@momshaddinury

"GetPresets doesn't fail, returns some presets. But in our testing we created two presets from web gui but the in the cli we got 10. I think it's because of the limit. Default limit is 10. In short, maybe it is returning all the presets"

For the cli command the default is 10, you can use the arg --limit 50 to change

For the getPresets method the default is 100. If there are less then 100 available then it returns all.

"RemovePreset removes all the preset (weird)"

I just took another look at the Onvif spec for RemovePreset and it says:

"The operation is supported if the PresetPosition capability exists for teh Node in the selected profile." (yes, the docs has a misspelling of "the")

In looking at the debug you supplied previously, it doesn't look like your device supports PresetPosition. One of the recent code changes made as part of this issue was to make PresetPosition an optional field for the Preset object. So it looks like this is a quirk specific to your device.