getServiceCapabilities method
Returns the capabilities of the device service. The result is returned in a typed answer.
Access Class: PRE_AUTH
Implementation
Future<DeviceServiceCapabilities> getServiceCapabilities() async {
loggy.debug('getServiceCapabilities');
final responseEnvelope = await transport.request(
uri,
soap.Body(
request: DeviceManagementRequest.getServiceCapabilities(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetServiceCapabilitiesResponse.fromJson(
responseEnvelope.body.response!)
.capabilities;
}