getEndpointReference method
A client can ask for the device service endpoint reference address property that can be used to derive the password equivalent for remote user operation. The device shall support the GetEndpointReference command returning the address property of the device service endpoint reference.
Implementation
Future<Map<String, dynamic>> getEndpointReference() async {
loggy.debug('getEndpointReference');
final envelope = await transport.sendRequest(
uri,
transport.securedEnvelope(
soap.DeviceManagementRequest.getEndpointReference()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return envelope.body.response!;
}