Bill Linker
ZipRealty, Inc.
If librets is not going to support RETS 1.8.0 any time soon,
_______________________________________________
libRETS-users mailing list
libRET...@crt.realtors.org
http://mail.crt.realtors.org/mailman/listinfo/librets-users
Bill Linker
ZipRealty, Inc.
librets.RetsHttpExceptionNative - Could not get URL [ http://fml.rets.interealty.com/Login.asmx/Login] - HTTP response code: 403
Am I doing something wrong or is libRets 1.5.2 not going to do the job in its present form?
The code is pretty straight forward...
RetsSession session = new RetsSession(RETSServer);
session.SetUserAgentAuthType(userAgentAuthType); // I've tried both UserAgentAuthType's
session.SetUserAgent(userAgent);
session.SetRetsVersion(retsVersion);
if (session.Login(RETSUserID, RETSPassword))
{ ... }
- Thanks, Alan
Try:
retsSession.SetRetsVersion(RetsVersion.RETS_1_7_2);
...to set the RETS version. This doesn't address trying to set a 1.8 value - there is no way (there is no enum) to do that right now.
Dave Bills
Senior Applications Programmer \ Technical Support
Pikes Peak Association of REALTORS(r)
719-476-8154 Direct
if (session.Login(RETSUserID, RETSPassword))
{ ... }
- Thanks, Alan
_______________________________________________
- Alan
Dave
I don't know if there's enough information here to know exactly what the issue is. A 403 is due to http authentication not working, but we can't see why that didn't work from what's here.
If you turn on http logging, there may be something in there that will be telling. You can mail that to libret...@crt.realtors.org
Keith
> _______________________________________________
> libRETS-users mailing list
> libRET...@crt.realtors.org
> http://mail.crt.realtors.org/mailman/listinfo/librets-users
--
Keith T. Garner - kga...@realtors.org - 312-329-3294 - http://realtor.org/
National Association of REALTORS® - VP - Information Technology Services
> http://fml.rets.interealty.com/Login.asmx/Login] - HTTP response code: 404
Snip
>
> session.SetUserAgentAuthType(userAgentAuthType); // I've tried both UserAgentAuthType's
Must be librets.USER_AGENT_AUTH_INTEREALTY
> session.SetUserAgent(userAgent);
And you're using the exact user agent they gave you?
If it continues to fail, enable logging as Keith suggests and one of us will take a look.
Regards,
M.
--
To quote my Bro: "Please forgive spelling and grammar mistakes, they're the fault of [his] iPhone."
> There IS an enum for setting it to RETS 1.8 in libRets 1.5.2. The enum is RetsVersion.RETS_1_8.
That's just RETS/1.8. If the server requires RETS/1.8.0, it won't work. This is resolved in svn and will be in the next release of libRETS.
Regards,
M.
--
To quote my Bro: "Please forgive spelling and grammar mistakes, they're the fault of [his] iPhone."
I'm starting to think the User Agent is the culprit. Actually they (FMLS) requested that I provided the User Agent string, and they also recommended Rets Connector for testing and specify the Beta version specifically as it lets you provide a User Agent. I tried that and it doesn't actually seem to let me provide a User Agent, but just prepends mine onto theirs. However, I get the exact same error 403 with a presumably invalid User Agent so I'm wondering if perhaps that didn't get set right and have a support email in to them. Hopefully it'll be as simple as getting the User Agent straightened out.
I'll do the logging tomorrow if it's still a problem. In the meantime, what is 'svn', can I get it, and any idea on the timeframe for the next libRETS release?
- Thanks, Alan
----- Original Message -----
From: Mark Klein [mailto:mkl...@dis.com]
To: libret...@crt.realtors.org
Cc: libret...@crt.realtors.org
Sent: Tue, 17 Jan 2012 15:32:21 -0800
Subject: Re: [libRETS-users] Support for RETS 1.8.0?
svn is the command-line tool named Subversion which is source code revision software. http://subversion.apache.org/ libRETS has been stored in CRT's subversion server since the beginning.
Can you get it: yes, its open source.
Can you get access to libRETS subversion repository: yes, its always been available read-only at https://code.crt.realtors.org/svn/librets/librets/trunk/
Unless you're building libRETS from source and not using one of the binaries we've made available, this may not be very useful to you. (At http://code.crt.realtors.org/projects/librets we have some stuff on building libRETS, but its not always for the feint of heart, especially on Windows.
Keith
--
Keith T. Garner - kga...@realtors.org - 312-329-3294 - http://realtor.org/
National Association of REALTORS® - VP - Information Technology Services
_______________________________________________
svn is Subversion, it is the revision management system used for libRETS source.
You can browse it here: http://code.crt.realtors.org/projects/librets/browser.
If you build libRETS yourself, you can always grab the latest and greatest
online from Subversion.
As for the next release, sometime within the next few weeks, though it could take
a month or more at this point. I'm doing this on my own time, so that means
evenings and weekends.
One thing that appears in this next release is that we roll to libboost
1.47 (there have been some major API changes that affect libRETS) and
I've been holding off until the API changes stabilized. That's now the case.
But, it means I need to build boost for Windows in 4 different flavors
(Microsoft C++, 32 and 64 bit; gcc (MinGW), 32 and 64 bit). Then, I
need to build libRETS in 8 different flavors (the above combinations
with both threaded and unthreaded libraries). As I said ... quite a bit
of work. So, bear with me.
Regards,
M.
Good afternoon,
I’m also in the situation of having to switch FMLS over to RETS 1.8 but I am having some issues with the login. The session’s RetsVersion has been set to "RetsVersion.RETS_1_8" but it returns the following exception:
librets.RetsExceptionNative was caught
Message=Invalid RetsVersion: 4
Source=librets-dotnet
Thanks,
Gerome Wilson
1parkplace Inc.
![]()
So the lesson learned is that an error 403 can be an incorrect User Agent? :-)
FWIW I'm using the Win64 version of libRets under C# / .NET.
My login code is...
RetsSession session = new RetsSession(RETSServer);
session.SetUserAgentAuthType(userAgentAuthType); // UserAgentAuthType.USER_AGENT_AUTH_INTEREALTY
session.SetUserAgent(userAgent);
session.SetRetsVersion(retsVersion); // RetsVersion.RETS_1_8
if (session.Login(RETSUserID, RETSPassword))
{
...
}
- Alan
Good afternoon,
[cid:image0...@01CCD5D6.24A73FC0]