[libRETS-users] Getting an Entire Resource

Mark Klein mklein at dis.com
Fri Jun 1 16:52:11 CDT 2007


On Jun 1, 2007, at 2:26 PM, Robert Burdick wrote:

> Yeah, this query works with our RETS server, RE Info Link.  The  
> empty query
> gets the entire table of cities, city codes, etc.  Is there another  
> spec
> compliant way to do this?  All of my thrashing is simply to get the  
> city
> name associated with a listing!  This is no longer returned from  
> our server,
> just the CityId, so I'm trying to look the city name up.

Given that, change your query to (CityId=<the id returned from the  
prior query>)

>
> -----Original Message-----
> From: librets-users-bounces at crt.realtors.org
> [mailto:librets-users-bounces at crt.realtors.org] On Behalf Of Keith  
> T. Garner
> Sent: Friday, June 01, 2007 2:22 PM
> To: For discussion and help for and by the users of the libRETS C++  
> library
> Subject: Re: [libRETS-users] Getting an Entire Resource
>
> On Fri, 1 Jun 2007 4:12 pm, Robert Burdick wrote:
>> I am trying to get a complete city resource, meaning all city
>> information on my RETS server.  I need to do the libRETS.NET
>> equivalent of this query:
>>
>>
> http://pure.reilrets.com:6103/Search.ashx? 
> QueryType=DMQL2&Class=city&Format=
> STANDARD-XML&SearchType=city&Query=
>
> Does that query actually work?  If so, its out of spec.  You cannot  
> have
> an empty query.
>
>> I need to do something like this:
>>
>> Session.CreateSearchRequest("city", "city", “”);
>>
>> but I get an error saying that the query can’t be empty.  So How do
>> I request the entire resource?
>
> Is that error from the server or via librets?  I can't remember if
> libRETS checks for that or not and I'm away from my computer at the
> moment.
>
> If it is libRETS, I can see an argument for making a flag to relax  
> that
> complaint if its libRETS complaining.
>
> Keith
>
> --
> Keith T. Garner                   kgarner at realtors.org
> Managing Director - Center for REALTOR Technology
> National Association of REALTORS
> (From his mobile device) 
> _______________________________________________
> libRETS-users mailing list
> libRETS-users at crt.realtors.org
> http://mail.crt.realtors.org/mailman/listinfo/librets-users
>
> _______________________________________________
> libRETS-users mailing list
> libRETS-users at crt.realtors.org
> http://mail.crt.realtors.org/mailman/listinfo/librets-users
>

--
Mark Klein
PGP Key Available
www.dis.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.crt.realtors.org/pipermail/librets-users/attachments/20070601/b77bb731/attachment.html 


More information about the libRETS-users mailing list