Skip to content

Commit ef0c1d4

Browse files
committed
Check if soap:address is defined in the service port (#527)
1 parent a4fcb9c commit ef0c1d4

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
2.4.0 (unreleased)
22
------------------
3+
- Check if soap:address is defined in the service port instead of raising an
4+
exception (#527)
35

46

57
2.3.0 (2017-08-06)

src/zeep/wsdl/bindings/soap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def process_error(self, doc, operation):
194194

195195
def process_service_port(self, xmlelement, force_https=False):
196196
address_node = xmlelement.find('soap:address', namespaces=self.nsmap)
197+
if address_node is None:
198+
logger.debug("No valid soap:address found for service")
199+
return
197200

198201
# Force the usage of HTTPS when the force_https boolean is true
199202
location = address_node.get('location')

0 commit comments

Comments
 (0)