[libRETS-users] Getting an Entire Resource
Mark Klein
mklein at dis.com
Fri Jun 1 16:38:41 CDT 2007
On Jun 1, 2007, at 2:05 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=
That actually works?
> 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?
You may need to specify a query that returns everything. Without
seeing the metadata, I can only give a general suggestion:
Assume that the key field within the city class is "citykey". Then
make your query (citykey=.ANY.)
If you want to try it with your http statement above, it would be
something like:
http://pure.reilrets.com:6103/Search.ashx?
QueryType=DMQL2&Class=city&Format=STANDARD-XML&SearchType=city&Query=%
28citykey%3D%2EANY%2E%29
Hope that helps.
Regards,
M.
--
Mark Klein
PGP Key Available
www.dis.com
More information about the libRETS-users
mailing list