Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.92/5 (5 votes)
See more:
How to pull RETS data using C# ?
Posted
Updated 22-Jan-18 8:18am
Comments
Manas Bhardwaj 12-May-14 6:00am    
Please first understand what it is. It's called REST http://en.wikipedia.org/wiki/Representational_state_transfer
cookieburner 12-May-14 6:18am    
i mean Real Estate Transaction Standard ( RETS) not REST ..

https://www.flexmls.com/developers/rets/
johannesnestler 12-May-14 6:02am    
RETS?
cookieburner 12-May-14 6:18am    
i mean Real Estate Transaction Standard ( RETS) not REST ..

https://www.flexmls.com/developers/rets/

1 solution

Have you tried this?

C# Connection Example[^]
 
Share this answer
 
Comments
cookieburner 12-May-14 6:41am    
it is using librets library. i tried librets in perl and php . this library isn't complete and have bugs.Also it is showing that it will pull 300 at a time .. so not a good solution.

I currently pulling data using Perl script by
https://www.flexmls.com/developers/rets/tutorials/example-rets-session/ method .
it is downloading all data by this method only .
i need this solution to be in C# . i am new to C# and not know how to send request and pull feed data .
kindly help .
thanks
_Asif_ 12-May-14 6:47am    
I think your approach is wrong towards reading all the data in one go. Your approach should be to read the data page by page. 300 records per call is fine i guess. Why its not a good solution for you?
cookieburner 12-May-14 6:52am    
i have to pull complete residential data at a day and it is around 23k+ . Just need to know how C# application works in a http request.
at https://www.flexmls.com/developers/rets/tutorials/example-rets-session/ ,
I just need how to do 6th step of doing query :
http://retsgw.flexmls.com/rets2_0/Search?SearchType=Property&Class=A&QueryType=DMQL2&Query=(LIST_15=|OV61GOJ13C0)&Count=0&Format=COMPACT-DECODED&StandardNames=0&RestrictedIndicator=****&Limit=50
_Asif_ 12-May-14 7:04am    
Try this

HttpWebRequest request = (HttpWebRequest)WebRequest.Create (url);

// Set some reasonable limits on resources used by this request
HttpWebResponse response = (HttpWebResponse)request.GetResponse ();

Console.WriteLine ("Content length is {0}", response.ContentLength);

// Get the stream associated with the response.
Stream receiveStream = response.GetResponseStream ();

StreamReader readStream = new StreamReader (receiveStream, Encoding.UTF8);

Console.WriteLine (readStream.ReadToEnd ());
response.Close ();
readStream.Close ();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900