Microsoft Confidential Scaling WS to limited resource Scaling WS to limited resource devices devices Web Services Web Services Discovery Discovery Jorgen Thelin Jorgen Thelin Program Manager Program Manager Connected Systems Division Connected Systems Division Microsoft Corporation Microsoft Corporation [email protected][email protected]
24
Embed
Microsoft Confidential Scaling WS to limited resource devices Web Services Discovery Jorgen Thelin Program Manager Connected Systems Division Microsoft.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Microsoft Confidential
Scaling WS to limited resource devicesScaling WS to limited resource devices
Web Services Web Services DiscoveryDiscovery
Jorgen ThelinJorgen ThelinProgram ManagerProgram ManagerConnected Systems DivisionConnected Systems DivisionMicrosoft CorporationMicrosoft [email protected]@microsoft.com
Microsoft Confidential
WS-Discovery - The Big PictureWS-Discovery - The Big Picture
ServiceService ClientClient
DPDP
ProbeMatchProbeMatch
Hello/ByeHello/Bye
Hello/ByeHello/Bye
Probe / ProbeMatchProbe / ProbeMatch
ProbeProbe
ServicesServices to be to be discovereddiscovered
ClientsClients discover servicesdiscover servicesDiscovery Proxy Discovery Proxy caches found caches found
1.1. Target service sends a multicast Target service sends a multicast Hello when it joins a network. Hello when it joins a network. Client listens to the multicast Client listens to the multicast Hello.Hello.
2.2. Likewise, a Target Service may Likewise, a Target Service may receive multicast a Probe from a receive multicast a Probe from a Client at any time.Client at any time.
3.3. The Target Service sends a unicast The Target Service sends a unicast Probe Match (PM) to the Client if Probe Match (PM) to the Client if the Target Service matches a the Target Service matches a Probe.Probe.
4.4. Similarly, a Target Service may Similarly, a Target Service may receive multicast Resolve from a receive multicast Resolve from a Client at any time.Client at any time.
5.5. The Target Service sends a unicast The Target Service sends a unicast Resolve Match (RM) to the Client if Resolve Match (RM) to the Client if it is the target of a Resolve.it is the target of a Resolve.
6.6. When a Target Service leaves a When a Target Service leaves a network, it makes an effort to (6) network, it makes an effort to (6) send a multicast Bye. Clients send a multicast Bye. Clients listen to the multicast Bye.listen to the multicast Bye.
Microsoft Confidential
Conceptual Context of Message Conceptual Context of Message ExchangesExchanges
Microsoft Confidential
WS-Discovery MetadataWS-Discovery Metadata
/s:Envelope/s:Body/*/d:Types/s:Envelope/s:Body/*/d:TypesSet of Types implemented by the Target Service (or Discovery Proxy)Set of Types implemented by the Target Service (or Discovery Proxy)
/s:Envelope/s:Body/*/d:Scopes/s:Envelope/s:Body/*/d:ScopesSet of Scopes the Target Service (or Discovery Proxy) is inSet of Scopes the Target Service (or Discovery Proxy) is inMAY be of more than one URI schemeMAY be of more than one URI scheme
/s:Envelope/s:Body/*/d:XAddrs/s:Envelope/s:Body/*/d:XAddrsSet of Transport addresses that MAY be used to communicate with the Set of Transport addresses that MAY be used to communicate with the Target Service (or Discovery Proxy)Target Service (or Discovery Proxy)
/s:Envelope/s:Body/*/d:MetadataVersion/s:Envelope/s:Body/*/d:MetadataVersionIncremented by >= 1 whenever there is a change in the metadata of the Incremented by >= 1 whenever there is a change in the metadata of the Target ServiceTarget ServiceMetadata includes, but is not limited to, Metadata includes, but is not limited to, ../d:Types../d:Types and and ../d:Scopes../d:Scopes. . MAY be used by the Client and/or Discovery Proxy for cache control of MAY be used by the Client and/or Discovery Proxy for cache control of Target Service metadata.Target Service metadata.
Microsoft Confidential
Metadata Matching RulesMetadata Matching Rules
Type matchingType matchingIf Namespace + Local name are the sameIf Namespace + Local name are the same
Scope matching based on specified rules:Scope matching based on specified rules:rfc2396 – General URI comparisonrfc2396 – General URI comparisonuuid – UUID URI comparisonuuid – UUID URI comparisonldap – LDAP URI comparisonldap – LDAP URI comparisonstrcmp0 – Case-sensitive string comparisonstrcmp0 – Case-sensitive string comparison
Additional matching rules may be specifiedAdditional matching rules may be specifiedBut must be equally supported by Client and But must be equally supported by Client and ServiceService
Microsoft Confidential
Device Discovery Device Discovery Bootstrap – Based on Bootstrap – Based on DPWSDPWS
Web Services Feedback WorkshopsWeb Services Feedback Workshopshttp://msdn.microsoft.com/webservices/community/http://msdn.microsoft.com/webservices/community/workshops/workshops/
Web Services BasicsWeb Services Basicshttp://msdn.microsoft.com/webservices/understanding/http://msdn.microsoft.com/webservices/understanding/webservicebasics/webservicebasics/
Devices Profile for Web ServicesDevices Profile for Web Serviceshttp://msdn.microsoft.com/ws/2006/02/devprof http://msdn.microsoft.com/ws/2006/02/devprof