Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Connection Error to new RETS server
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
angelina_zooma  
View profile  
 More options Dec 10 2011, 8:30 pm
From: angelina_zooma <an...@trundlemedia.com>
Date: Sat, 10 Dec 2011 17:30:34 -0800 (PST)
Local: Sat, Dec 10 2011 8:30 pm
Subject: Connection Error to new RETS server
The board my client is with is changing their RETS server and they
have set me up with an account there.  I swapped out the login
credentials for the new ones and now my scripts aren't working.

Going back to basics I decided to test the connection using the
Example A code from the site and I'm getting a connection error.

I know the login is correct because I can successfully log in using
Rets Connector.

Here is the debug file:

* About to connect() to rhb.rets.interealty.com port 80 (#0)
*   Trying 69.87.62.186... * connected
* Connected to rhb.rets.interealty.com (69.87.62.186) port 80 (#0)

> GET /Login.asmx/Login HTTP/1.1

Host: rhb.rets.interealty.com
Accept: */*
RETS-Version: RETS/1.5
User-Agent: PHRETS/1.0
Accept: */*

< HTTP/1.1 200 OK
< Date: Sun, 11 Dec 2011 01:30:28 GMT
< Server: Microsoft-IIS/6.0
< Cache-Control:private
< X-AspNet-Version: 2.0.50727
< Transfer-Encoding: chunked
< Cache-Control: private
< Content-Type: text/xml; charset=utf-8
<
* Connection #0 to host rhb.rets.interealty.com left intact
<RETS ReplyCode="20037" ReplyText="User Agent not registered or
denied. Reference: 7e516643-8ca5-4ef3-8752-db30f9e645d1" />
* Closing connection #0


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Troy Arnold  
View profile  
 More options Dec 10 2011, 10:05 pm
From: Troy Arnold <t...@zenux.net>
Date: Sat, 10 Dec 2011 19:05:56 -0800
Local: Sat, Dec 10 2011 10:05 pm
Subject: Re: Connection Error to new RETS server

On Sat, Dec 10, 2011 at 05:30:34PM -0800, angelina_zooma wrote:
> <
> * Connection #0 to host rhb.rets.interealty.com left intact
> <RETS ReplyCode="20037" ReplyText="User Agent not registered or
> denied. Reference: 7e516643-8ca5-4ef3-8752-db30f9e645d1" />
> * Closing connection #0

Looks like the RETS provider requires you to include user agent info so
they know what data is allowed for your account.  They should have included
a user-agent string along with the rest of your authorization info.

Do something like this before calling $rets->Connect():

$rets->AddHeader("User-Agent", 'your_given_user_agent');


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
angelina_zooma  
View profile  
 More options Dec 10 2011, 11:55 pm
From: angelina_zooma <an...@trundlemedia.com>
Date: Sat, 10 Dec 2011 20:55:42 -0800 (PST)
Local: Sat, Dec 10 2011 11:55 pm
Subject: Re: Connection Error to new RETS server
Thanks Troy, but no dice :(

server admin sent me the proper user agent (RETSConnector/1.5) and I
attempted again using that, but it's still failing:

* About to connect() to rhb.rets.interealty.com port 80 (#0)
*   Trying 69.87.62.186... * connected
* Connected to rhb.rets.interealty.com (69.87.62.186) port 80 (#0)

> GET /Login.asmx/Login HTTP/1.1

Host: rhb.rets.interealty.com
Accept: */*
User-Agent: RETSConnector/1.5
RETS-Version: RETS/1.5
Accept: */*

< HTTP/1.1 200 OK
< Date: Sun, 11 Dec 2011 04:54:32 GMT
< Server: Microsoft-IIS/6.0
< Cache-Control:private
< X-Powered-By: ASP.NET
< X-AspNet-Version: 2.0.50727
< Transfer-Encoding: chunked
< Cache-Control: private
< Content-Type: text/xml; charset=utf-8
<
* Connection #0 to host rhb.rets.interealty.com left intact
<RETS ReplyCode="20037" ReplyText="User Agent not registered or
denied. Reference: 05cf848c-f16a-49b3-b1bd-27b5e9b3c8ea" />
* Closing connection #0

On Dec 10, 10:05 pm, Troy Arnold <t...@zenux.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Troy Arnold  
View profile  
 More options Dec 11 2011, 7:41 am
From: Troy Arnold <t...@zenux.net>
Date: Sun, 11 Dec 2011 04:41:13 -0800
Local: Sun, Dec 11 2011 7:41 am
Subject: Re: Connection Error to new RETS server
Ok I found this note in the release notes for phrets-1.0rc1:
" + New SetParam() options
   - use_interealty_ua_auth: value is true or false.  default is false.
     only use with User-Agent authentication on Interealty servers

So, before connect() try:
$rets->SetParam('use_interealty_ua_auth', true);

If that doesn't work, check with your contact again and make sure the
server doesn't also want a user agent password.  So that would be 4 things
total, username, password, UA and UA password.

Hopefully the setparam() call will do the trick...

-t


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
angelina_zooma  
View profile  
 More options Dec 11 2011, 12:59 pm
From: angelina_zooma <an...@trundlemedia.com>
Date: Sun, 11 Dec 2011 09:59:01 -0800 (PST)
Local: Sun, Dec 11 2011 12:59 pm
Subject: Re: Connection Error to new RETS server
Hi Troy, I've added that line but there's no change.

The server admin said there was no password required, so I'm going to
email him again and see if he can double check the info he gave me.

thanks for all your help!

On Dec 11, 7:41 am, Troy Arnold <t...@zenux.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
angelina_zooma  
View profile  
 More options Dec 12 2011, 1:09 am
From: angelina_zooma <an...@trundlemedia.com>
Date: Sun, 11 Dec 2011 22:09:55 -0800 (PST)
Local: Mon, Dec 12 2011 1:09 am
Subject: Re: Connection Error to new RETS server
It's working now.. turns out the server admin did give me the wrong
user agent.

thanks again!

On Dec 11, 12:59 pm, angelina_zooma <an...@trundlemedia.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »