[libRETS-users] Strange Error

Michael Kramer mkramer at rls2000.com
Wed Dec 19 12:33:53 CST 2007


Hi,

I'm having the same problems, so this not something I can fix because
librets encodeds the form.  I'd have to wait until RETS server gets
updated?  My querys are very simple (because I'm just getting started).
Query (MLNumber=1+)

The URL is &Query=(MLNumber%3d1%2b)&QueryType=DMQL2

I just want to get some data back.



On 12/19/07, Keith T. Garner <kgarner at crt.realtors.org> wrote:
>
> On 12/19/07 12:06 PM, Russ Perna wrote:
> > Maybe it could be something else then.
> >
> > This is the request from RETS Connector:
> > URI:
> >
> /Search.asmx/Search?SearchType=Property&Class=1&Select=217&Format=COMPACT&Qu
> > eryType=DMQL2&Query=(290=%7CACT),(40=%7C440)
> >
> > This is the request from libRets:
> > URI:
> >
> /Search.asmx/Search?Class=1&Count=1&Format=COMPACT&Query=(290%3dACT),(40%3d4
> > 40)&QueryType=DMQL2&SearchType=Property&Select=217&StandardNames=0
> >
> > Does this tell you anything that I might be missing?
>
> Yes, you are not querying the LOOKUPs with the syntax for querying
> LOOKUPs.
>
> Your query is "(290=ACT),(40=440)" when it should be
> "(290=|ACT),(40=|440)"
> In your example from RETSConnector, you can see a %7C in their URLEncoded
> version.  %7C is | when decoded.
>
> kgarner at copper [501]:irb
> irb(main):001:0> require 'uri'
>
> irb(main):003:0> URI.unescape('(290=%7CACT),(40=%7C440)')
> => "(290=|ACT),(40=|440)"
>
>
> The RETS metadata is your friend.  Both of those tables should tell you
> that
> their interpretation is LOOKUP.
>
> Keith
>
> --
> Keith T. Garner - Managing Director - Center for REALTOR(R) Technology
>   kgarner at realtors.org - 312-329-3294 - http://blog.realtors.org/crt
> _______________________________________________
> libRETS-users mailing list
> libRETS-users at crt.realtors.org
> http://mail.crt.realtors.org/mailman/listinfo/librets-users
>



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


More information about the libRETS-users mailing list