(self)
| 102 | './/sp2005:TransportBinding') |
| 103 | |
| 104 | def _get_bindings(self): |
| 105 | bindings = {} # {binding_name: {"policy_uri": "...", "version": "..."}} |
| 106 | for binding in self.dom.findall("wsdl:binding", self.NS): |
| 107 | if (binding.find('soap12:binding', self.NS).get("transport") != |
| 108 | 'http://schemas.xmlsoap.org/soap/http'): |
| 109 | continue |
| 110 | action = binding.find( |
| 111 | 'wsdl:operation/soap12:operation', self.NS).get("soapAction") |
| 112 | for pr in binding.findall("wsp:PolicyReference", self.NS): |
| 113 | bindings[binding.get("name")] = { |
| 114 | "policy_uri": pr.get("URI"), "action": action} |
| 115 | return bindings |
| 116 | |
| 117 | def _get_endpoints(self, bindings, policy_ids): |
| 118 | endpoints = [] |
no test coverage detected