Closed Siggs2000 closed 10 years ago
I get that same error when I change our password to something invalid. I'll make an issue to handle that response.
Did you try Evernet::Connection.user in the console, just to make sure the initializer is setting the vars?
Have you successfully authenticated with any other SOAP clients? I suspect the issue is with your password (remember that the ftp user/password is different than the web service).
Thanks for getting back on this Bob!
I did try to declare the vars in the console too.
Oddly, the username / password combo works in the NWMLS test form though.
I was trying to troubleshoot by testing it out in Savon but I don't think I have the format for that quite right. I'm getting other errors in savon, but that's a whole other story, I think.
I feel like I must be missing some step. Is there any type of auth call that needs to be made first from the console? Or do I jump straight into making queries?
I don't recall any auth steps we had to take. I think you should be able to make queries right away. I was able to connect the evernet with Soap UI that's linked from this railscast. http://railscasts.com/episodes/290-soap-with-savon
Can you provide a link to the nwmls test form? I want to try that myself.
take a look at the code in https://github.com/luxre/nwmls/blob/master/app/models/evernet/connection.rb to see how we connect with Savon
Here's that test form: http://evernet.nwmls.com/evernettest/RetrieveListingData.aspx
I see what's wrong. We only have access to StandardXML1_2
Do you support that schema? I'll contact NWMLS to get access to 1.1 anyway.
I tried setting Evernet::Connection.schema_name = 'StandardXML1_2' in my initializer. I'm getting a nil response. It might be because we don't have access to 1.2. Does that work for you?
If I change the schema to 1.2, I actually get this message:
NoMethodError: undefined method `call' for #Savon::Client:0x007fd81cf61020 on this call:
Nwmls::Listing.find(:listing_number => '622424')
And this: NameError: undefined local variable or method `“RESI”' for main:Object on this call:
Nwmls::Listing.find(:property_type => “RESI”, :status => “A”, :city => “Seattle”)
Just waiting on NWMLS to approve our username for 1.1. There must be some pretty significant differences between 1.1 and 1.2.
with
Nwmls::Listing.find(:listing_number => '622424')
I get RuntimeError: code EPSEnergy not found which means we haven't set up mapping for that element to an attribute yet.
I'll look into support for 1.2. I'm guessing it's just a few new fields and we should have support for it soon.
Nwmls::Listing.find(:property_type => "RESI", :status => "A", :city => "Seattle")
this one had a problem with quotation marks. Try copying it again.
Thanks again. This should probably work once I get access to 1.1.
As far as that query goes, I just copied that from the readme, I believe.
Again, thanks for providing the gem as open source! I'll update and close this once I test it out with the new 1.1 access plus I'll keep my eyes peeled for the new 1.2 support.
Yes it looks like the markdown in the README changed the quotation marks into curly quotes. I'll fix that.
Good luck with 1.1. I'm curious why you're not getting the same errors as me. Which version of rails are you using?
I'm using Rails 4.0.0 to make the gem requirements happy. (We were using 4.1.0 before)
Update: Just got a call from NWMLS saying they won't give new access to 1.1 anymore as they are pushing everyone to upgrade... Gotta love MLS's!
I'll keep an eye on this gem to watch for 1.2 compatibility and go at Savon for now!
Edit: I see what you mean by the curly quotes. You're right - when I change to regular quotation marks, I get the same error as the other query. (undefined method `call' for #Savon::Client:0x007fd8a9fbaae8)
@Siggs2000 I've added support for Rails 4.1 and the Standard1_2 schema. I'd love it if you could give the gem a try again.
Thanks Bob, I'll check it out!
Hey @bobdutch I'm finally back to working on the NWMLS integration and of course, this gem is now working like a charm with 1.2 and Rails 4.1. Thanks for the update!
Any tips on a good flow to dealing with the images? I'm not totally sure how to get the actual file to handle.
I'll close this issue for now though since the original question is solved. Thanks again!
First, I wanted to say thanks for making this an open source gem! I've been droning through savon for most of the day, dealing with this odd soap MLS.
Now a question: I've installed the gem and added the initializer file called nwmls.rb that contains just this:
(Obviously I have our real username and password in there)
When I go into the rails console for some testing, I'm trying this to kick it off:
and this
Nwmls::Listing.find(:listing_number => '622424')
Both (and any) commands I'm trying are returning this error: