Additional WS-Discovery Functionality - Win32 apps (2024)

  • Article

In some cases, the Devices Profile for Web Services (DPWS) and related specifications do not explicitly define implementation functionality. For example, the WS-Discovery specification does not define client and host behavior in multi-homed environments. When WSDAPI was implemented, some discovery functionality was added beyond the functionality defined in the specification.

WSDAPI also implements selected portions of WS-Discovery v1.1 CD1 for communicating with a discovery proxy over HTTP.

The purpose of this topic is to describe the discovery functionality implemented by WSDAPI but not otherwise described in the DPWS or WS-Discovery specifications.

IPv6 addresses and the soap.udp URI format

SOAP-over-UDP and WS-Discovery do not explicitly describe how a literal IPv6 address is represented in the soap.udp URI format. RFC 2396, entitled "Uniform Resource Identifiers (URI): Generic Syntax", indicates that literal IPv6 addresses are not supported by the soap.udp URI format.

For simplicity, WSDAPI recognizes IPv6 addresses enclosed in square brackets in the soap.udp scheme. For example, the address soap.udp://[2001:abcd:0001:0002:0003:0004:0005:0032]:3702 is recognized by WSDAPI. This is similar to how IPv6 addresses are handled in HTTP.

Hello and XAddrs

WSDAPI's DPWS hosting object will never send a WS-Discovery Hello message with XAddrs in the message body. A client will always send a Resolve message after receiving a Hello message if the client needs to get the XAddrs.

There are two benefits of this approach. First, a device built on WSDAPI will never expose XAddrs that disclose the IP addresses of private networks. Secondly, a device built on WSDAPI only exposes XAddrs that are accessible to the client, which means that IPv6 addresses are never sent to an IPv4 client.

When a Probe or Resolve message is received, only a single XAddr is sent in response. The sent XAddr corresponds to the local address on which the request was received. If the request was received across subnets over IPv6, WSDAPI will provide a global IPv6 address in the response.

Preferred addresses

A device can provide multiple XAddrs in a Hello, ProbeMatch, or ResolveMatch message. A service can also be available at multiple endpoints with different transport addresses. In these cases, WSDAPI will try to communicate with the device on the first usable address it finds. An address is usable if it is from an available protocol, such as IPv4 on a machine where IPv4 is installed or IPv6 on a machine where IPv6 is installed. Additionally, if the address came from a device or service that is not on the local subnet, it is usable only if it is IPv4, IPv6 site local, or IPv6 link local.

Devices and services built on WSDAPI do not provide their WSDL in metadata exchange unless extended by the application to provide this information. By default, WSDL provision is not part of the programming model.

APP_MAX_DELAY

DPWS defines APP_MAX_DELAY, the random interval to delay between receiving a Probe and sending a ProbeMatch, as 5,000 milliseconds. Windows Firewall requires that the multicast request/unicast response model for UDP will only work within the 4 second firewall window. As a result, WSDAPI will transmit responses in 2,500 ms or less, instead of the 5,000 ms window described by APP_MAX_DELAY.

IANA port reservations

WSDAPI uses TCP port 5357 for HTTP traffic and TCP port 5358 for HTTPS traffic by default. These ports are reserved for lower privilege processes through a URL reservation in HTTP.sys, and are also reserved with IANA.

UDP port sharing

WSDAPI uses port sharing. Unicast messages sent to port 3702 may not be properly handled by all WSDAPI-based applications. If an application binds exclusively to port 3702, it may prevent WSDAPI-based applications from using that port correctly.

WS-Discovery v1.1 CD1 Proxy

WSDAPI will search for and communicate with a discovery proxy that implements the WS-Discovery v1.1 CD1 managed mode protocol. WS-Discovery v1.1 CD1 is the first revision of WS-Discovery to include an explicit description of an HTTP protocol for communication between a proxy and a client or device.

To limit the number of concurrent versions used in multicast requests, WSDAPI sends a WS-Discovery Probe request in the 2005/04 namespace, but searches for the WS-Discovery v1.1 CD1 DiscoveryProxy type. If a proxy responds, WSDAPI will send an HTTP Probe or Resolve request to the specified proxy endpoint as defined in WS-Discovery v1.1 CD1.

Additional WS-Discovery Functionality - Win32 apps (2024)
Top Articles
Russia leaves thousands of planes without GPS in northern Europe
Britannica Money
Rosy Boa Snake — Turtle Bay
Radikale Landküche am Landgut Schönwalde
It's Official: Sabrina Carpenter's Bangs Are Taking Over TikTok
Wild Smile Stapleton
Lesson 1 Homework 5.5 Answer Key
Devourer Of Gods Resprite
My Vidant Chart
Mikayla Campinos Videos: A Deep Dive Into The Rising Star
Evangeline Downs Racetrack Entries
The Binding of Isaac
Bc Hyundai Tupelo Ms
Costco Gas Foster City
Grab this ice cream maker while it's discounted in Walmart's sale | Digital Trends
Paradise leaked: An analysis of offshore data leaks
Q33 Bus Schedule Pdf
Walgreens San Pedro And Hildebrand
Air Force Chief Results
G Switch Unblocked Tyrone
Craigslist Sparta Nj
Kountry Pumpkin 29
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Egizi Funeral Home Turnersville Nj
Certain Red Dye Nyt Crossword
Understanding Gestalt Principles: Definition and Examples
Getmnapp
2023 Ford Bronco Raptor for sale - Dallas, TX - craigslist
Dexter Gomovies
The Clapping Song Lyrics by Belle Stars
Schooology Fcps
The Latest: Trump addresses apparent assassination attempt on X
Metro By T Mobile Sign In
How to Play the G Chord on Guitar: A Comprehensive Guide - Breakthrough Guitar | Online Guitar Lessons
Hellgirl000
Has any non-Muslim here who read the Quran and unironically ENJOYED it?
Search All of Craigslist: A Comprehensive Guide - First Republic Craigslist
Casamba Mobile Login
Wasmo Link Telegram
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Foxxequeen
Pink Runtz Strain, The Ultimate Guide
Noh Buddy
Perc H965I With Rear Load Bracket
Sinai Sdn 2023
UNC Charlotte Admission Requirements
Mit diesen geheimen Codes verständigen sich Crew-Mitglieder
Mkvcinemas Movies Free Download
Suzanne Olsen Swift River
Famous Dave's BBQ Catering, BBQ Catering Packages, Handcrafted Catering, Famous Dave's | Famous Dave's BBQ Restaurant
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6319

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.