
WS discovery setup and configuration is a crucial step in getting your system up and running. To begin, you'll need to enable WS discovery on your device, which can usually be done by navigating to the settings menu and selecting the discovery option.
The WS discovery protocol uses a specific port number, typically 1900, to communicate with other devices on the network. This port number can be changed, but it's not recommended unless absolutely necessary.
Once WS discovery is enabled, your device will start broadcasting its presence on the network, allowing other devices to discover and connect to it. This is a key feature of WS discovery, enabling devices to automatically find and connect to each other.
To configure WS discovery, you'll need to specify the type of devices you want to discover, such as computers or printers. This can be done by selecting the device type from a list of available options.
Suggestion: Ubersuggest Seo and Keyword Discovery
Configuring Neuron ESB
Configuring Neuron ESB is a crucial step in implementing WS-Discovery. The Neuron ESB Discovery API allows users to query for endpoint information and monitor WS-Discovery broadcast events.
To enable WS-Discovery, you need to configure the Neuron ESB Discovery Service, which is done by modifying the DiscoveryService.exe.config file. The WSDiscoveryEnabled setting determines whether the discovery service will broadcast and receive unicast probe requests.
The default value for WSDiscoveryEnabled is true, which means the discovery service will broadcast and receive unicast probe requests. You can change this setting to false if you don't want the discovery service to broadcast and receive unicast probe requests.
The WSDiscoveryManagedPort setting represents the TCP port used for Managed probe requests using the Neuron ESB Discovery API, and the default value is 9021. You can change this setting to use a different port.
Here are the key settings you need to configure for Neuron ESB:
By configuring these settings, you can enable WS-Discovery and use the Neuron ESB Discovery API to query for endpoint information and monitor WS-Discovery broadcast events.
Check this out: Web Services Discovery
Invoking Operations

You'll need to define specific event handlers to handle inbound WS-Discovery messages. These event handlers receive notifications or requests for data.
The event handlers to define are:
- wsdd_event_Hello
- wsdd_event_Bye
- wsdd_event_Probe
- wsdd_event_ProbeMatches
- wsdd_event_Resolve
- wsdd_event_ResolveMatches
These event handlers are invoked when WS-Discovery messages arrive on the port, allowing you to handle inbound messages and relay them to the event handlers.
WS Discovery Settings
WS Discovery Settings are crucial for enabling or disabling the WS discovery feature. The WSDiscoveryEnabled key determines whether or not the remotely hosted API will broadcast WS-Discovery "hello"/"goodbye" messages, and it defaults to true.
To configure the WS discovery settings, you can use the Client API – App.config file. This file contains several keys that affect the WS discovery feature, including WSDiscoveryEnabled, WSDiscoveryRemoteEndpoint, WSDiscoveryApplicationScope, WSDiscoveryAnnouncementInterval, WSDiscoveryBroadcast, and WSDiscoveryEnabled.
You can enable or disable the WS discovery feature by setting the WSDiscoveryEnabled key to true or false. If you set it to true, the remotely hosted API will broadcast WS-Discovery "hello"/"goodbye" messages at the specified interval, which can be configured using the WSDiscoveryAnnouncementInterval key.
You might enjoy: Dropbox Lan Sync Discovery Protocol Wireshark
Neuron ESB API Config
The Neuron ESB API Config is where things get interesting. The WSDiscoveryManagedPort is set to 9021 by default, which is the TCP port used for Managed probe requests using the Neuron ESB Discovery API.
You can adjust this setting as needed. The WSDiscoveryEnabled setting determines if a job will run to clean up stale endpoint registrations. If you set it to false, you'll need to run a separate job to clean up these registrations.
The WSDiscoveryApplicationScope is set to default, which defines the scope of all queries. This means that all queries will be scoped to the default application scope.
Here's a quick rundown of the Neuron ESB API Config settings:
By adjusting these settings, you can customize the Neuron ESB API Config to suit your needs.
Neuron ESB Discovery Service Config
The Neuron ESB Discovery Service Config is a crucial aspect of WS-Discovery settings. It determines how the service will interact with other services on the network.

The DiscoveryService.exe.config file contains several key settings that control the behavior of the Neuron ESB Discovery Service. These include WSDiscoveryManagedPort, which represents the TCP port used for Managed probe requests.
WSDiscoveryEnabled is another important setting, which determines whether the discovery service will broadcast and receive unicast probe requests. By default, it's set to true.
The WSDiscoveryApplicationScope setting defines the scope of all queries, and its default value is "default". WSDiscoveryAnnouncementInterval determines the broadcast interval, and its default value is 00:00:10.
Here's a summary of the key settings in the DiscoveryService.exe.config file:
By understanding and configuring these settings, you can fine-tune the behavior of the Neuron ESB Discovery Service to suit your specific needs.
Invoking Operations
You need to define event handlers to handle inbound WS-Discovery messages. These event handlers receive notifications or requests for data and are invoked when WS-Discovery messages arrive on a port.
To invoke operations, you'll need to define six event handlers: wsdd_event_Hello, wsdd_event_Bye, wsdd_event_Probe, wsdd_event_ProbeMatches, wsdd_event_Resolve, and wsdd_event_ResolveMatches.
These event handlers are called when WS-Discovery messages arrive on a port, and they receive notifications or requests for data. The soap_wsdd_listen function listens on the current port for a brief time period, allowing for periodically polling the port as shown.
The event handlers can be used to relay WS-Discovery messages to the user-defined handlers, and the soap->user pointer can be used to point to a state object that is updated by the event handlers.
Here are the event handlers that need to be defined:
- wsdd_event_Hello
- wsdd_event_Bye
- wsdd_event_Probe
- wsdd_event_ProbeMatches
- wsdd_event_Resolve
- wsdd_event_ResolveMatches
SOAP-over-UDP Support
SOAP-over-UDP Support is a key feature of WSDAPI, and it's essential to understand its limitations and capabilities.
The UDP message must fit in a 64K datagram, as specified in Section 3.2, but WSDAPI will accept larger messages up to 64K.
This means that while WSDAPI can handle bigger messages, the DPWS constraint of MAX_ENVELOPE_SIZE (32K) will still limit the maximum size of the message.
In other words, WSDAPI is flexible but still bound by the 32K limit imposed by DPWS.
Here's an interesting read: When Will Mgm Be Back Online

WSDAPI supports the message patterns described in Section 4 of WS-Discovery, which is a crucial aspect of the protocol.
This support enables WSDAPI to interact with other devices and services that follow the WS-Discovery standard.
WSDAPI may be configured to support the security model in Sections 7 and 8, which is a significant feature for secure communication.
When configured for security, WSDAPI will sign outbound WS-Discovery messages and validate signatures on inbound messages.
This adds an extra layer of protection against potential security threats.
WSDAPI implements the retransmission algorithm defined in Appendix I, as amended by DPWS Appendix I, which is designed to improve communication reliability.
This algorithm ensures that messages are resent if they are lost or not received, reducing the risk of communication failure.
In WS-Discovery, WSDAPI uses the addresses specified in section 2.4, but it extends APP_MAX_DELAY from section 2.4 in a limited way.
For more information about APP_MAX_DELAY, you can check out the Additional WS-Discovery Functionality section.
Additional reading: Azure Linux Webapp Security
Configuring Scan Transmission Settings

To configure scan transmission settings, you'll first need to enable the scan using the Web service. This is done by selecting [Network] - [DPWS Settings] - [DPWS Common Settings] in administrator mode.
The friendly name of the machine is crucial for easy identification when searching for it using the Web service. Enter a name that helps you quickly recognize the machine, using up to 62 characters.
In the same settings, you'll find the Publication Service option. This is useful when using the machine in environments where you need to detect up to 512 destinations, including NetBIOS detection. To enable this, simply select [Enable].
To use the WS scan transmission function, select [ON] in the [Scan Function] option under [Network] - [DPWS Settings] - [Scanner Settings]. This is the default setting, but you can change it to [OFF] if needed.
You can also customize the scanner's name, location, and information in the same settings. These fields allow you to enter up to 63 characters for each piece of information.
Expand your knowledge: Google Cloud Platform Machine Learning

If you need to limit communication with the computer, you can change the connection timeout time. The default setting is 120 seconds, but you can adjust this as needed.
Here's a summary of the settings you'll need to configure:
Client Configuration
Client Configuration is a crucial aspect of WS Discovery, especially when it comes to remotely hosted Neuron ESB Parties.
The WSDiscoveryRemoteEndpoint setting determines whether the remote party can accept and respond to probe requests, and it must be true if WSDiscoveryEnabled is set to true.
To enable WS Discovery broadcasting, the WSDiscoveryEnabled setting must be set to true, and the WSDiscoveryAnnouncementInterval setting determines the broadcast interval.
The WSDiscoveryApplicationScope setting defines the scope of all queries, and it's set to default by default.
The WSDiscoveryBroadcast setting determines whether the remotely hosted API will broadcast WS-Discovery “hello”/”goodbye” messages, and it's set to true by default.
Here's a summary of the key settings:
These settings are crucial to ensure that your WS Discovery configuration is properly set up and working as expected.
Sources
- https://learn.microsoft.com/en-us/windows/win32/wsdapi/ws-discovery-specification-compliance
- https://www.genivia.com/doc/wsdd/html/wsdd_0.html
- https://www.peregrineconnect.com/documentation-kb/ws-discovery-enabled-runtime-parties-and-endpoints/
- https://www.service-architecture.com/articles/web-services/web-services-dynamic-discovery-ws-discovery.html
- https://manuals.konicaminolta.eu/ineo-654e-754e/EN/contents/id08-_101032694.html
Featured Images: pexels.com