[libRETS-users] Last try at City Name
Robert Burdick
rburdick at wAppearances.com
Fri Jun 1 17:19:34 CDT 2007
Hello All:
I cannot believe how incredible hard RETS makes it to get a city name. Id I
have a CityID, I am executing this code
mSession = new RetsSession("http://bc.reilrets.com:6103/");
if (mSession != null)
{
string search = "(CityID=" + mtbCityID.Text.Trim() +
")";
bResult = mSession.Login("listsuite2", "l157beta");
SearchRequest req = mSession.CreateSearchRequest("city",
"city","(CityID=58)");
SearchResultSet res = mSession.Search(req);
I get an error saying that CityID is not a valid query field. However, this
query works from a browser:
http://pure.reilrets.com:6103/Search.ashx?QueryType=DMQL2
<http://pure.reilrets.com:6103/Search.ashx?QueryType=DMQL2&Class=city&Format
=COMPACT&SearchType=city&Query=(CityID=58)>
&Class=city&Format=COMPACT&SearchType=city&Query=(CityID=58)
can someone PLEASE tell me how to do this with librets.NET?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.crt.realtors.org/pipermail/librets-users/attachments/20070601/7a98d53f/attachment.html
More information about the libRETS-users
mailing list