def loadFromStream(self, stream, name=None):
     """Return a WSDL instance loaded from a stream object."""
     document = DOM.loadDocument(stream)
     wsdl = WSDL()
     if name:
         wsdl.location = name
     elif hasattr(stream, 'name'):
         wsdl.location = stream.name
     wsdl.load(document)
     return wsdl
 def loadFromStream(self, stream, name=None):
     """Return a WSDL instance loaded from a stream object."""
     document = DOM.loadDocument(stream)
     wsdl = WSDL()
     if name:
         wsdl.location = name
     elif hasattr(stream, 'name'):
         wsdl.location = stream.name
     wsdl.load(document)
     return wsdl
Beispiel #3
0
 def loadFromStream(self, file):
     """Return an XMLSchema instance loaded from a file object."""
     document = DOM.loadDocument(file)
     schema = XMLSchema()
     schema.load(document)
     return schema
Beispiel #4
0
 def loadFromStream(self, file):
     """Return a WSDL instance loaded from a file object."""
     document = DOM.loadDocument(file)
     wsdl = WSDL()
     wsdl.load(document)
     return wsdl