4.1 WSDL Message Examples
A protocol client constructs the following WSDL message to query the scan repository server for its configuration.
-
<?xml version="1.0" encoding="utf-8"?> <S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" xmlns:WSA="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:DSC="http://schemas.microsoft.com/windows/2008/ 12/wdp/distributedscan/configuration"> <S:Header> <WSA:MessageID> urn:uuid:5e00a5c1-29e7-4361-a42e-1f00013e973c </WSA:MessageID> <WSA:Action> http://schemas.microsoft.com/windows/2008/ 12/wdp/distributedscan/configuration/GetRepositoryElements </WSA:Action> <WSA:To> https://EDGUILLE64.enterprisescan1.nttest.microsoft.com: 5362/ScanServer/553852db-6d5a-4eee-a34f-5b499c1a2944 </WSA:To> <WSA:ReplyTo> <WSA:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/ role/anonymous </WSA:Address> </WSA:ReplyTo> </S:Header> <S:Body> <DSC:GetRepositoryElementsRequest> <DSC:RequestedElements> <DSC:Name> DSC:RepositoryConfiguration </DSC:Name> </DSC:RequestedElements> </DSC:GetRepositoryElementsRequest> </S:Body> </S:Envelope>
The protocol server would then respond with the following.
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing xmlns:con=http://schemas.microsoft.com/windows/2008/ 12/wdp/distributedscan/configuration xmlns:dsc=http://schemas.microsoft.com/windows/2008/ 12/wdp/distributedscan/configuration xmlns:ftr="http://schemas.microsoft.com/windows/2007/ 10/imaging/postscan/filter"> <soap:Header> <wsa:To> http://schemas.xmlsoap.org/ws/2004/ 08/addressing/role/anonymous </wsa:To> <wsa:Action> http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration/GetRepositoryElementsResponse </wsa:Action> <wsa:MessageID> urn:uuid:4dbfd46d-e02a-4e03-8ad0-ab82c6bbbe77 </wsa:MessageID> <wsa:RelatesTo> urn:uuid:5e00a5c1-29e7-4361-a42e-1f00013e973c </wsa:RelatesTo> </soap:Header> <soap:Body> <con:GetRepositoryElementsResponse> <con:RepositoryElements> <con:ElementData con:Name="dsc:RepositoryConfiguration" con:Valid="true"> <con:RepositoryConfiguration> <con:Filters> <con:Filter> <con:Dialect> ftr:fileshare </con:Dialect> <con:FilterConfig/> </con:Filter> <con:Filter> <con:Dialect> ftr:sharepoint </con:Dialect> <con:FilterConfig/> </con:Filter> <con:Filter> <con:Dialect> ftr:email </con:Dialect> <con:FilterConfig/> </con:Filter> </con:Filters> </con:RepositoryConfiguration> </con:ElementData> </con:RepositoryElements> </con:GetRepositoryElementsResponse> </soap:Body> </soap:Envelope>
A protocol client constructs the following WSDL message to query the scan repository server for a list of the currently processing PostScan jobs.
-
<?xml version="1.0" encoding="utf-8"?> <S:Envelope xmlns:S=http://www.w3.org/2003/05/soap-envelope xmlns:WSA=http://schemas.xmlsoap.org/ws/2004/08/addressing xmlns:DSC="http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration"> <S:Header> <WSA:MessageID> urn:uuid:0eb870ee-f703-492a-8347-ba73a54e132d </WSA:MessageID> <WSA:Action> http://schemas.microsoft.com/windows/2008/12/wdp/distributedscan/ configuration/GetActiveJobs </WSA:Action> <WSA:To> https://EDGUILLE64.enterprisescan1.nttest.microsoft.com:5362 /ScanServer/553852db-6d5a-4eee-a34f-5b499c1a2944 </WSA:To> <WSA:ReplyTo> <WSA:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/ role/anonymous </WSA:Address> </WSA:ReplyTo> </S:Header> <S:Body> <DSC:GetActiveJobsRequest /> </S:Body> </S:Envelope>
If no PostScan jobs are processing, the protocol server would then respond with the following.
-
<?xml version="1.0" encoding="utf-8"?> <S:Envelope xmlns:S=http://www.w3.org/2003/05/soap-envelope xmlns:WSA=http://schemas.xmlsoap.org/ws/2004/08/addressing xmlns:DSC="http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration"> <S:Header> <WSA:MessageID> urn:uuid:0eb870ee-f703-492a-8347-ba73a54e132d </WSA:MessageID> <WSA:Action> http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration/GetActiveJobsResponse </WSA:Action> <WSA:To> https://EDGUILLE64.enterprisescan1.nttest.microsoft.com :5362/ScanServer/553852db-6d5a-4eee-a34f-5b499c1a2944 </WSA:To> <WSA:ReplyTo> <WSA:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/ role/anonymous </WSA:Address> </WSA:ReplyTo> </S:Header> <S:Body> <DSC:GetActiveJobsResponse /> </S:Body> </S:Envelope>
A protocol client constructs the following WSDL message to query the scan repository server for a list of the recently completed PostScan jobs.
-
<?xml version="1.0" encoding="utf-8"?> <S:Envelope xmlns:S=http://www.w3.org/2003/05/soap-envelope xmlns:WSA=http://schemas.xmlsoap.org/ws/2004/08/addressing xmlns:DSC="http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration"> <S:Header> <WSA:MessageID> urn:uuid:0eb870ee-f703-492a-8347-ba73a54e132d </WSA:MessageID> <WSA:Action> http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration/GetJobHistory </WSA:Action> <WSA:To> https://EDGUILLE64.enterprisescan1.nttest.microsoft.com :5362/ScanServer/553852db-6d5a-4eee-a34f-5b499c1a2944 </WSA:To> <WSA:ReplyTo> <WSA:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/ role/anonymous </WSA:Address> </WSA:ReplyTo> </S:Header> <S:Body> <DSC:GetJobsHistoryRequest/> </S:Body> </S:Envelope>
The protocol server would then respond with the following:
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing xmlns:con="http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration"> <soap:Header> <wsa:To> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/ anonymous </wsa:To> <wsa:Action> http://schemas.microsoft.com/windows/2008/12/wdp/ distributedscan/configuration/GetJobHistoryResponse </wsa:Action> <wsa:MessageID> urn:uuid:6ecae59e-93e1-42e4-affb-c63137b16992 </wsa:MessageID> <wsa:RelatesTo> urn:uuid:3e26cab3-3759-45dc-a530-b6ea91e29e90 </wsa:RelatesTo> </soap:Header> <soap:Body> <con:GetJobHistoryResponse> <con:JobHistory> <con:JobSummary> <con:JobToken> 6a8d7c92-0db3-4978-8aad-180530f8de53 </con:JobToken> <con:PSP_Identifier> B6EB9213-C1BE-4BBF-880E-FF8F18A53469 </con:PSP_Identifier> <con:PSP_DisplayName> EdTestAll </con:PSP_DisplayName> <con:JobOriginatingUserName> prtlab@ENTERPRISESCAN1 </con:JobOriginatingUserName> <con:JobState> Aborted </con:JobState> <con:JobStateReasons> <con:JobStateReason> NoValidPostScanInstructionsFound </con:JobStateReason> </con:JobStateReasons> <con:FilterStatuses> <con:FilterStatus> <con:Dialect> http://schemas.microsoft.com/ windows/2007/10/imaging/ postscan/filter/email </con:Dialect> <con:FilterState> Canceled </con:FilterState> </con:FilterStatus> </con:FilterStatuses> <con:ImagesReceived> 0 </con:ImagesReceived> </con:JobSummary> <con:JobSummary> <con:JobToken> 58e4590c-01e4-4933-a247-dc497b1d6c58 </con:JobToken> <con:PSP_Identifier> B6EB9213-C1BE-4BBF-880E-FF8F18A53469 </con:PSP_Identifier> <con:PSP_DisplayName> EdTestAll </con:PSP_DisplayName> <con:JobOriginatingUserName> prtlab@ENTERPRISESCAN1 </con:JobOriginatingUserName> <con:JobState> Completed </con:JobState> <con:JobStateReasons> <con:JobStateReason> PostScanJobCompletedSuccessfully </con:JobStateReason> </con:JobStateReasons> <con:FilterStatuses> <con:FilterStatus> <con:Dialect> http://schemas.microsoft.com/ windows/2007/10/imaging/ postscan/filter/sharepoint </con:Dialect> <con:FilterState> CompletedSuccessfully </con:FilterState> </con:FilterStatus> </con:FilterStatuses> <con:ImagesReceived> 0 </con:ImagesReceived> </con:JobSummary> </con:JobHistory> </con:GetJobHistoryResponse> </soap:Body> </soap:Envelope>