def loadFromStream(self, stream, name=None):
document = DOM.loadDocument(stream)<EOL>wsdl = WSDL()<EOL>if name:<EOL><INDENT>wsdl.location = name<EOL><DEDENT>elif hasattr(stream, '<STR_LIT:name>'):<EOL><INDENT>wsdl.location = stream.name<EOL><DEDENT>wsdl.load(document)<EOL>return wsdl<EOL>
Return a WSDL instance loaded from a stream object.