Probe and Probe Match
Figure 15-1 illustrates how WS-Discovery can be used to locate specific Web services on a network.
Figure 15-1. Probe and Probe Match.

When searching for a printer, the application sends a multicast Probe message [Message 1] with the type of device that is needed.
The printer service that matches the request criteria responds directly back to the application with a Probe Match message [Message 2].
Probe
(01) <env:Envelope>
(02) <env:Header>
(03) <wsa:Action>
(04) http://schemas.xmlsoap.org/ws/2004/10/discovery/Probe
(05) </wsa:Action>
(06) <wsa:To>urn:schemas-xmlsoap-org:ws:2004:10:discovery</wsa:To>
(07) </env:Header>
(08) <env:Body>
(09) <wsd:Probe>
(10) <wsd:Types>sfa:Binder</wsd:Types>
(11) <wsd:Scope
(12) MatchBy="http://schemas.xmlsoap.org/ws/2004/10/discovery/ldap">
(13) ldap:///ou=faculty,o=fineartschool,c=us
(14) </wsd:Scope>
(15) </wsd:Probe>
(16) </env:Body>
(17) </env:Envelope>
Lines 0305 This value for the Action element indicates this is a WS-Discovery Probe message.
Line 06 The message is sent to the WS-Discovery UDP multicast address. This is an example of a SOAP message that uses a transport other than HTTP.
Line 10 The type of endpoint that is requested is application-specific. In this case, the application attempts to locate printers with binding capabilities, indicated by the value of sfa:Binder.
Lines 1114 The scope of the request is limited to the faculty organizational unit as registered in the school''s LDAP directory.
Printers matching the Type and Scope requirements specified in the Probe message respond directly to the requesting endpoint.
Probe Match
(01) <env:Envelope>
(02) <env:Header>
(03) <wsa:Action>
(04) http://schemas.xmlsoap.org/ws/2004/10/discovery/ProbeMatch
(05) </wsa:Action>
(06) <wsa:To>
(07) http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
(08) </wsa:To>
(09) </env:Header>
(10) <env:Body>
(11) <wsd:ProbeMatch>
(12) <wsd:ProbeMatches>
(13) <wsa:EndpointReference>
(14) <wsa:Address>uuid:12345678-1234-1234-1234-111122223333</wsa:Address>
(15) </wsa:EndpointReference>
(16) <wsd:Types>sfa:Binder sfa:Secure</wsd:Types>
(17) <wsd:Scopes>ldap://ou=faculty,o=fineartschool,c=us</wsd:Scopes>
(18) <wsd:MetadataVersion>56</wsd:MetadataVersion>
(19) </wsd:ProbeMatches>
(20) </wsd:ProbeMatch>
(21) </env:Body>
(22) </env:Envelope>