From 0f3c42ef02941643c4287ba4d88e0b5fcca4cb51 Mon Sep 17 00:00:00 2001 From: Kevin Newland Date: Mon, 11 Oct 2021 16:29:58 -0500 Subject: [PATCH] Support Updates in Newest Version of MFNA (2021) --- hpnapy/hpnapy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hpnapy/hpnapy.py b/hpnapy/hpnapy.py index 7431e4f..5a2e858 100644 --- a/hpnapy/hpnapy.py +++ b/hpnapy/hpnapy.py @@ -16,6 +16,7 @@ import xml.etree.ElementTree as ET from zeep import Client as ZeepClient from zeep import Transport as ZeepTransport +from zeep import Settings as ZeepSettings from zeep.exceptions import Fault as ZeepFaultException # Import hpnapy Libraries @@ -1059,7 +1060,8 @@ def _get_ssl_transport(self): def _get_zeep_client(self, transport_to_bind=None): if not transport_to_bind: raise HPNAConnectionError("SOAP client cannot be instantiated without a transport.") - zeep_client = ZeepClient(wsdl=self._wsdl_url, transport=transport_to_bind) + settings = ZeepSettings(strict=False) + zeep_client = ZeepClient(wsdl=self._wsdl_url, transport=transport_to_bind, settings=settings) return zeep_client def _get_zeep_interface(self):