import/merge wsdl definitions
(self, definitions, d)
| 321 | raise Exception('document at "%s" is unknown' % url) |
| 322 | |
| 323 | def import_definitions(self, definitions, d): |
| 324 | """ import/merge wsdl definitions """ |
| 325 | definitions.types += d.types |
| 326 | definitions.messages.update(d.messages) |
| 327 | definitions.port_types.update(d.port_types) |
| 328 | definitions.bindings.update(d.bindings) |
| 329 | self.imported = d |
| 330 | log.debug('imported (WSDL):\n%s', d) |
| 331 | |
| 332 | def import_schema(self, definitions, d): |
| 333 | """ import schema as <types/> content """ |