getNetworkProtocols method
This operation gets defined network protocols from a device. The device shall support the getNetworkProtocols command returning configured network protocols.
Access Class: READ_SYSTEM
Implementation
Future<List<NetworkProtocol>> getNetworkProtocols() async {
loggy.debug('getNetworkProtocols');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: DeviceManagementRequest.getNetworkProtocols(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetNetworkProtocolsResponse.fromJson(responseEnvelope.body.response!)
.networkProtocols;
}