def get_service(service_uri)
      get_contents_except_resources(service_uri) do |res|
        #warn "Bad Content Type" unless Atom::MediaType::SERVICE.is_a?(@res['Content-Type'])
        @rc = Atom::Service.new :stream => @res.body
        @rc.workspaces.each do |workspace|
          workspace.collections.each do |collection|
            #@service_info.put(collection.href, collection, self)
            @service_info.put(collection.href, collection)
          end
        end
      end
      @rc
    end
def get_service(service_uri)
      get_contents_except_resources(service_uri) do |res|
        #warn "Bad Content Type" unless Atom::MediaType::SERVICE.is_a?(@res['Content-Type'])
        @rc = Atom::Service.new :stream => @res.body
        @rc.workspaces.each do |workspace|
          workspace.collections.each do |collection|
            #@service_info.put(collection.href, collection, self)
            @service_info.put(collection.href, collection)
          end
        end
      end
      @rc
    end
Get service document
 This returns Atom::Service object.
 see the document of Atom::Service in detail.

 Example:

   service = client.get_service(service_uri)
   service.workspaces.each do |w|
     w.collections.each do |c|
       puts c.href
     end
   end