josephholsten/rets4r — Issue #27: Client_search.rb in rets 1.7
Author: Tref
Created: 2012-02-13 06:34:34+00:00
State: open

Im currently working with a rets 1.7 server and I'm walking through the code right now trying to figure out what you did here. I'm debating rewriting what you have to suit my application a bit better since im having a hard time getting one of the examples running under 1.7. If you tell me that this should work with RETS 1.7 and I could get the client search example to work then I would probably just say screw rewriting anything and use this...

Anyway - I'm running into the following issue I've change the yaml file so that my common settings have the right url, username, password and I changed the rets version to 1.7. I also had to add require 'rubygems' at the top of the file in order to get active support to load using rails 3. After that is done I run the client_search.rb and it comes back with the following error:

Macbook-Pro:josephholsten-rets4r-75109f9 TrefBookPro$ ruby examples/client_search.rb
We successfully logged into the RETS server!
./lib/rets4r/client/parsers/compact_nokogiri.rb:111:in `handle_body_start': Server error. (RETS4R::Client::MiscellaneousSearchErrorException)
from ./lib/rets4r/client/parsers/compact_nokogiri.rb:61:in `start_element'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/document.rb:116:in `start_element_namespace'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/parser.rb:110:in `parse_with'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/parser.rb:110:in `parse_memory'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/parser.rb:83:in `parse'
from ./lib/rets4r/client/parsers/compact_nokogiri.rb:23:in `each'
from ./lib/rets4r/client.rb:374:in `search'
from examples/client_search.rb:36