How do I get images from the MLS RETS feed provided by CRMLS (formerly Carets MLS)?

丶灬走出姿态 提交于 2019-12-12 09:27:46

问题


I am getting this as response when using the GetObject() feature of the RETS feed:

Array
(
    [0] => Array
        (
            [Success] => 
            [Content-Type] => text/xml
            [MIME-Version] => 1.0
            [Length] => 53
            [Data] => 

            [ReplyCode] => 20401
            [ReplyText] => Invalid Type
        )

)

GetObject() works for most RETS feeds, but I'm getting errors with CRMLS. How do I get images from the MLS RETS feed provided by CRMLS (formerly Carets MLS)?


回答1:


There could be a number of causes for this.

First, going only by the error message, the server is suggesting that the given Type attribute in the request is incorrect. Using PHRETS, this is the value of the 2nd argument in the GetObject request. Check http://www.retsmd.com with your RETS credentials, select one of the Property classes, and when the list of fields loads, a "View Object Types" link should appear at the top of the table. Clicking that will display the available types that you can request. Photo is the most common but they may not provide it by that name.

In some other (though rare) cases, RETS servers may not provide access to media through GetObject. Instead, they may have a "Media" resource where you'd retrieve information about objects the same way you would with other data (like listings or agents rosters).



来源:https://stackoverflow.com/questions/31020248/how-do-i-get-images-from-the-mls-rets-feed-provided-by-crmls-formerly-carets-ml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!