commit cb65838b2c8d0f180c42bef8dbbd7494d161710d Author: RunasSudo Date: Sun Dec 10 18:36:52 2017 +1030 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e45c4a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +data/*.zip +.python-version diff --git a/data/ScanService/Common.xsd b/data/ScanService/Common.xsd new file mode 100644 index 0000000..ee02791 --- /dev/null +++ b/data/ScanService/Common.xsd @@ -0,0 +1,423 @@ + + + + + + WSD Commom Element and Types schema + Copyright 2005-2006 Microsoft Corporation All rights reserved + + + + + + Common attributes and Types used by semantic elements + + + + + Common Types for the Scan Template definitions allowed values + + + + + + + + + + + + + + + + + + + + + + + Basic element types used in more than one sub-schema + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Semantic elements used in more than one sub-schema or used directly in an interface + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/ScanService/Document.xsd b/data/ScanService/Document.xsd new file mode 100644 index 0000000..9ff42f3 --- /dev/null +++ b/data/ScanService/Document.xsd @@ -0,0 +1,601 @@ + + + + + + WSD Scanning - Document Object schema + Copyright 2005-2006 Microsoft Corp. All rights reserved + + + + + + + + + + + + + + + Document Element definition + + + + + + + + + + + Document Description Element Definition + + + + + + + + + + + Document Parameters Element Definition + + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + + + + + + Document Parameters specific semantic elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + + + + + + + + + + + + + + Attribute: MustHonor + + + + + Attribute: MustHonor + + + + + + + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Override +Attribute: UsedDefault + + + + + Attribute: Override +Attribute: UsedDefault + + + + + + + + + + + + + + + diff --git a/data/ScanService/Job.xsd b/data/ScanService/Job.xsd new file mode 100644 index 0000000..fab8851 --- /dev/null +++ b/data/ScanService/Job.xsd @@ -0,0 +1,177 @@ + + + + + + WSD Scanning - Job Object schema + Copyright 2005-2006 Microsoft Corp. All rights reserved + + + + + + Job Element definition + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Job Description Element definition + + + + + + + + + + + + + Job Status Element definition + + + + + + + + + + + + + + + Job Status specific semantic elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Scan Ticket Element definition + + + + + + + + + + + + Any element name in any namespace + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Name +Attribute: Valid + + + + + + + + diff --git a/data/ScanService/Scanner.xsd b/data/ScanService/Scanner.xsd new file mode 100644 index 0000000..5444507 --- /dev/null +++ b/data/ScanService/Scanner.xsd @@ -0,0 +1,278 @@ + + + + + + WSD Scanning - Scanner Object schema + Copyright 2005-2006 Microsoft Corp. All rights reserved + + + + + + NOTE: To use this schema you MUST include ScannerStatus.xs, ScannerDescription.xs, + + + Scanner Element definition + + + + + + + + + + + + + + + + + + + + + + + + + + Scanner Description elements + + + + + + + + + + + + + + + + + + + + + + + + Scanner Status Element definition + + + + + + + + + + + + + + Scanner Status specific semantic elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Id + + + + + + + + + + Attribute: Id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Client Information definition + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Name +Attribute: Valid + + + + + + + + + Global definitions for ScanAvaliable subscribe extensions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/ScanService/WDPScan.xsd b/data/ScanService/WDPScan.xsd new file mode 100644 index 0000000..e7f2891 --- /dev/null +++ b/data/ScanService/WDPScan.xsd @@ -0,0 +1,264 @@ + + + + + + WSD Scanning - Scanner Object schema + Copyright 2005-2006 Microsoft Corp. All rights reserved + + + + + + + + + + All WSD Scan Unique Faults + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute: Id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/ScanService/WSDScanService.doc b/data/ScanService/WSDScanService.doc new file mode 100644 index 0000000..2b66819 Binary files /dev/null and b/data/ScanService/WSDScanService.doc differ diff --git a/data/ScanService/WSDScannerService.wsdl b/data/ScanService/WSDScannerService.wsdl new file mode 100644 index 0000000..c9aa17d --- /dev/null +++ b/data/ScanService/WSDScannerService.wsdl @@ -0,0 +1,335 @@ + + + + + WSD Scanner Service Web Service Description (WSDL) file + Copyright 2005-2006 Microsoft Corporation. All rights reserved + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/ScanService/WellKnownValues.xsd b/data/ScanService/WellKnownValues.xsd new file mode 100644 index 0000000..de6ae9d --- /dev/null +++ b/data/ScanService/WellKnownValues.xsd @@ -0,0 +1,158 @@ + + + + + + WSD Printing - Well Known Values schema (excluding Media) + Copyright 2005-2006 Microsoft Corp. All rights reserved + + + + Well known values (i.e. keywords) used by semantic elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/main.py b/main.py new file mode 100755 index 0000000..11d922a --- /dev/null +++ b/main.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +# https://msdn.microsoft.com/en-us/library/windows/hardware/dn641604(v=vs.85).aspx +# https://docs.microsoft.com/en-us/windows-hardware/drivers/image/web-services-on-devices-reference + +import zeep + +# Override WS-Addressing namespace (use WS2006 instead of WS 1.1) +zeep.ns.WSA = 'http://schemas.xmlsoap.org/ws/2004/08/addressing' + +import zeep.wsa + +client = zeep.Client('data/ScanService/WSDScannerService.wsdl', plugins=[zeep.wsa.WsAddressingPlugin()]) +service = client.create_service('{http://schemas.microsoft.com/windows/2006/08/wdp/scan}ScannerServiceBinding', 'http://192.168.0.8:9867/ws2/') + +import pdb; pdb.set_trace()