« July 2006 | Main | October 2006 »
August 18, 2006
Errors Running SOAP::Lite with https
The last few days I've been trying to figure out why my perl script using the SOAP::Lite module keeps dying when I call https (SSL Encryption), but it works flawlessly when using plain http. The uninformative error message I received when my perl script dies is listed below:
500 Can't locate object method "new" via package "LWP::Protocol::https::Socket"
I must admit I wasted a good bit of time following the poor links return from a Google search on this error message. Most of the links were nothing more than a web page filled with error messages along with some marketing banner ads. No solutions, no luck.
After numerous searches on multiple search engines, I *finally* came across the relevant information, which I will post below so I will never have to go through this again. Grin.
If you are running Active State's Perl 5.8.X release on windows and need to use an https call with SOAP::Lite, the links below should help you get on your way.
1) Link to Active State's Web page stating that they will distribute the SSL modules with perl, but will provide different repositories.
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Repository
The Canadian Federal Government requires that companies and organizations that wish to distribute cryptographic software get a permit in order to do so. ActiveState does not have this permission.
....
The two popular crypto modules Crypt-SSLeay and Net_SSLeay can be found in other repositories, and can be installed using PPM as follows:
ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd
The above command installs the Perl 5.8 PPM of Crypt-SSLeay from the University of Winnipeg's PPM repositories. For the Perl 5.6 PPM, use the following command:
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Crypt-SSLeay.ppd
2) PPM command to fetch Crypt-SSLeay.ppd for Active State Perl 5.8
ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd
3) Excellent write up on how to use Active State's PPM utility from Perl Monks.
http://perlmonks.org/?node_id=434813
I found this link above by reading a question about Installing Net::SSLeay on Windows XP
4) Link to the Win32 SSL dll file, which needs to be installed into your path, probably C:\perl\bin\
http://theoryx5.uwinnipeg.ca/ppms/scripts/ssleay32.dll
So the short answer is open up your command prompt and run the following command.
ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd
timtowtdi
-Chris
Posted at 04:03 PM in Software | Permalink | Comments (5) | TrackBack
August 07, 2006
What is ACH?
What exactly is the ACH (Automated Clearing House) network and how does it work?
I found an excellent response regarding ACH on Google answers. A shorter response on ACH is also hosted on Google's site.
NACHA, the National ACH Association, has recently put together a new web site, electronicpayments.org, outlining Direct Deposit, Direct Payment, and check conversion.
If you ever get involved with writing or maintaining computer code that creates and manipulates ACH files, you *must* get your hands on NACHA's operating rules and guidelines. This book, which is updated by NACHA annually, not only explain the rules, but provides the file layouts for coding ACH files. Purchasing a copy of the book also allow you access the ACH rule book on-line, via achrulesonline.org.
-Chris
Posted at 11:04 PM in E-Pay | Permalink | Comments (0) | TrackBack