def get(self, resource, operation_timeout=None, max_envelope_size=None, locale=None):
if isinstance(resource, str):<EOL><INDENT>resource = ResourceLocator(resource)<EOL><DEDENT>headers = self._build_headers(resource, Session.GetAction, operation_timeout, max_envelope_size, locale)<EOL>self.service.invoke.set_options(tsoapheaders=headers)<EOL>return self.service.invoke<EOL>
resource can be a URL or a ResourceLocator