1. A method for searching a network connecting a plurality of devices for a device that provides a service, the method comprising: detecting whether a document has been set on a scanner; and searching, in response to detecting that the document has been set on the scanner and prior to obtaining scanner image data from reading the document by the scanner, the plurality of devices for a device that provides a service that is configured to be used in cooperation with scanner image data that is predicted to result from reading the document set on the scanner, and searching, in response to detecting that the document has not been set on the scanner, the plurality of devices for a first device that provides data to be processed by a second device that is not the scanner.