Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Support Updates in Newest Version of MFNA #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hpnapy/hpnapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down