Link to home
Start Free TrialLog in
Avatar of Jeff dweb
Jeff dweb

asked on

''Hello World '' I need to know how to integrate a web service to get all the mls-listing for real estates with my current wordpress theme

I have a username and password for the real estates agent theysaid I have to call the web service and get a response but
How can I integrate to my theme in wordpress if u want to help me will be good or I can hire you too but I like to learn anny I wait for your answer guys thank you
Avatar of HainKurt
HainKurt
Flag of Canada image

Avatar of Jeff dweb
Jeff dweb

ASKER

Thank you I apprciate for your fast response and i will try the best to write a good english * because im  from a french country   ...  but this is not the way I think The realtor compagny give me a access to the data with a web service they give me a user name and a passowrd they said I have to call a URL to get the data..


[ This a part of the message they send me

Hi Jeff

In fact for the transfer of data we were going to proceed by Web Service.

Once you have your user ID, you will be able to call a URL that will provide you with the necessary information so that you can build the summary records of your client's properties.

By using Web Service rather than FTP, we avoid potential downtime from our or your server and with the Web Service, you receive real-time data. end]

Now I would like to know how I can integrate that to my wordpress theme and  should be a frame but I think I need a programmer to help or I will hire one who can do it for me
if you dont use a plugin, then you need someone to write those codes for you...

ie, ajax calls, get response in json (?) then show it on your page somehow...

or need to develop a web service call using a web development language like asp.net
then call that web service by using your name and password...

or it may be simple as that

<iframe src="http://www.mls.org/GetListing?userid=xxxxxxxx"></iframe>

Open in new window


I am not sure about the details...
it should be in that email...
thank you for your answer  i will add a details may it will change all

I try the Iframe i saw that after


This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Response>
<Metadata>
<Page>1</Page>
<PageCount>1</PageCount>
<TotalInscription>2</TotalInscription>
</Metadata>
<Inscriptions>
<Inscription>
<Index>1</Index>
<ID>M1254619</ID>
<Price>489 000</Price>
<IsSold>false</IsSold>
<Bedrooms>5</Bedrooms>
<Bathrooms>1</Bathrooms>
<Waterrooms>0</Waterrooms>
<IsCollection>false</IsCollection>
<Description>
<![CDATA[ ]]>
</Description>
<Address>
<CivicNo>7665</CivicNo>
<Street>449 France</Street>
<Apt>
<![CDATA[ ]]>
</Apt>
<PostalCode>043j32</PostalCode>
</Address>
<Latitude>997.6279</Latitude>
<Longitude>-473.5052</Longitude>
<OpenHouse></OpenHouse>
<DetailURL>
http://www.realtor.rmx
</DetailURL>
<Picture>
http://media.realtor-tst.com/img/720X480/0082/m18kj9-p76-05.jpg
</Picture>
<Fields>
<Field key="mlsfield" Caption="">#MLS M-87E549</Field>
<Field key="categoriefield" Caption="Categorie">loft</Field>
<Field key="genrefield" Caption="Genre">
<![CDATA[ Maison de plain-pied ]]>
</Field>
<Field key="cityfield" Caption="Ville">france</Field>
</Fields>
</Inscription>
<Inscription>
<Index>2</Index>
<ID>M87E549</ID>
<Price>829 000</Price>
<IsSold>false</IsSold>
<Bedrooms>6</Bedrooms>
<Bathrooms>2</Bathrooms>
<Waterrooms>0</Waterrooms>
<IsCollection>false</IsCollection>
<Description>
<![CDATA[ ]]>
</Description>
<Address>
<CivicNo>1454</CivicNo>
<Street>france</Street>
<Apt>
<![CDATA[ ]]>
</Apt>
<PostalCode>546362</PostalCode>
</Address>
<Latitude>5363.050931</Latitude>
<Longitude>-34560.644149</Longitude>
<OpenHouse></OpenHouse>
<DetailURL>
http://www.realtor/fr/maison-a-vendre-montreal/rter4.rmx
</DetailURL>
<Picture>
http://realtor.com/img/720X480/052/m57568-pri01-087.jpg
</Picture>
<Fields>
<Field key="ulsfield" Caption="">#ULS M-1223577955326418</Field>
<Field key="categoriefield" Caption="Categorie">residentielle</Field>
<Field key="genrefield" Caption="Genre">
<![CDATA[ Maison de plain-pied ]]>
</Field>
<Field key="cityfield" Caption="Ville">France</Field>
</Fields>
</Inscription>
</Inscriptions>
</Response>

Open in new window

Avatar of arnold
Curl or per php scripts will perform the query to the other, and then provide the data to be adjusted and displayed in your site.

Much depends on what the formatting of the data you pull and how you want it presented ..

You could have an Automated process pulling data on a regular schedule, crunch it and then add it to your wordpress setup .....
I suggest buy a plugin like this, have a look at it to see what you can do with it...

RB Estate
http://preview.themeforest.net/item/rbestate-responsive-wordpress-real-estate-theme/full_screen_preview/16729659

it requires

ACF
https://www.advancedcustomfields.com/pro/#pricing-table

each one is $25

and read documentation and do it yourself...

if you cannot hire someone to setup those for you...
There are multiple ways to access real estate listing from the MLS. The previous responses are guesses from trying to google for answers.

First there is not one mls api for the nation.  You will work with the RealEstate agents's local MLS to start and get access to IDX ( Internet Data Exchange) as VOW's( Virtual Office Website) are rarely used because or newer laws.  

From there you have more choices.  One is to pay a third party service that has access to your agents IDX. The third party will have all the pages ready to go and you only need to place an iFrame on your wordpress site.   The advantages here is this method is quick, easy and may end up being the least expensive route. The disadvantage of the iframe is you have no control over how it is displayed and it is easy for people to get off your site. Plus the content is only visual and not psychically on your site which can affect SEO.  For the services that offer an iframe, you will have to get permission via a payment that typically is annual. You can't take just any iframe you see.

The other option is to have the content on your site either via a live web service as they are talking about or caching the data on  your server where you get updates at least once a day.  I believe some IDX's will allow you to cache twice a day or more but for a local RealEstate agent, is this feature important?  If you are in a major metro area like NY, LA or Chicago it may, but for must suburban agents, probably not.

The advantage of caching all the data (images and data) on your site is you have complete control of how everything is displayed. You can use php to download all the images and populate your database (any flavor, MySQL, MS SQL, SQLLITE or cloud based like azzure or firebase).  This method can also mean faster speeds.  The disadvantage is having to keep all the data on your server and would require a little more up front programming that not only includes importing data, but managing archives.  If live data is not needed but you want ultimate control, this is a good option.

The next option is probably going to be the best for most local agents and that will be to use a web service to display data live. This option gives you best of both worlds for the previous two options.  Again, you will have to use a 3rd party service to get access to the idx and some of these may already have WP plug ins that have access to their web service for the MLS's they are authorized to use (and have been authorized by your agent).

My suggestion is to first decide witch method you want to use. Also have your client (the agent) contact their mls and get a list of the 3rd party services they have authorized. Once you get in touch with them you may find they have something already set up.

In your example here, https://www.experts-exchange.com/questions/29062309/''Hello-World-''-I-need-to-know-how-to-integrate-a-web-service-to-get-all-the-mls-listing-for-real-estates-with-my-current-wordpress-theme.html?anchorAnswerId=42329445#a42329445 you are showing an XML file. Since this is from an iframe, the code of the iframe will also include css and other files to make up the page so there should be no reason to read it on your own.

If you are wanting to access an xml file via cURL/soap call as pointed out by arnold, it will be best to provide the link for that idx in order to view their documentation.  There will typically be a SOAP or REST call that retrieves the data.  This coding can be incorporated into your WP functions page where you can make your own short codes.

After all said, my advice is to look for the 3rd party idx service that has WP plug ins and support. Another option is to use Live https://www.experts-exchange.com/live/ and engage one of the Experts for one on one help or post a https://www.experts-exchange.com/gig/
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.