A DPWS Object is used to communicate with a DPWS server. Each DPWS Object needs a binding to a service porttype.
To enable eventing for an application you need to configure the network interface and port to use for event callback. This is done in the Application Properties. To start a subscription use dpwsSubscribe. Incoming events are stored in a separate list for each Notification operation. To check if there are any events for any operation, use the event expression /obj. To check if there are any events for a specific operation, use dpwsHasEvent. To get the next event in the list for a specific operation, use dpwsGetEvent. The return value from dpwsGetEvent works the same as the return value for Request Response operations.
Faults that occur when making DPWS calls are stored in a list. To check if there are any stored faults, use dpwsHasFault. To get the next fault in the list, use dpwsGetFault.
The text methods available on a DPWS Object are the operations in its bound porttype of type One Way and Request Response.
The root element is created automatically and for convenience it specifies the targetNamespace of the wsdl:definitions with prefix tns (if specified).
The allowed arguments depend on the operation:
Request Response operations return the root element's contents as a string.
Hint: xmlFetch can be used to extract information from the returned string.
Note: Edit is chosen automatically instead of showing a context menu with only one choice.
Edit: Opens an edit dialog for configuring the porttype binding for the DPWS Object.
PortTypes All currently available porttypes. The first item is the binding configured when the dialog was opened. Selecting an item automatically sets all data for the binding.
Documentation Focus the selected porttype in the DPWS Services dialog.
Device Address Device address for the binding (globally unique). (Default: <empty>)
Service Id (optional) Hosted Service Id for the binding (unique within a device). If not specified any hosted service in the device may be used. (Default: <empty>)
PortType PortType expanded name for the binding (unique within a WSDL file) on the form: <namespaceName> '/' <localName>. (Default: <empty>)