code: def loadFromStream(self, stream, name=None):
          
          document = DOM.loadDocument(stream)
          wsdl = WSDL()
          if name:
              wsdl.location = name
          elif hasattr(stream, 'name'):
              wsdl.location = stream.name
          wsdl.load(document)
          return wsdl
docs: Return a WSDL instance loaded from a stream object.