Robert, this isn't about most of your post, but I wanted to say
that the
Verisign COM is not fixed in 5.5 regardless of build. Also, while
you have
decided to give the bean method a try, I have decided to go the
XML way. I
will actually begin coding a new PayFlow TCF in a short while
using XML so
at the moment I don't have an answer on whether it works well or
not.
Robert
-----Original Message-----
From: Robert Garcia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 5:21 AM
To: [email protected]
Subject: Witango-Talk: Verisign Bean and others
We are launching a new product, and I needed a high performance
method for CC transactions. I used payflowpro com object in the
past,
then witango 5.5 broke that, then I used external object, and now, I
heard 5.5.009 fixed the com issue with verisign, but not sure. But
anyway, I am getting away from com objects, since I am moving to
linux, and java is a good bridge.
So, even though I have had a frustrating time with Beans, this
seemed
easy enough, the java sdk for Verisign payflow pro is very simple,
and I looked at their static java method, and I figured it would
take
an hour or so to get it going as a bean.
Well, it would have, but it crashed the test server. Everytime I hit
it, witango crashed. I thought it was on my end, the bean was very
simple, and the method relies on special java ssl classes, maybe
they
were not loaded right?
After a few hours of troubleshooting, I looked at my java method,
very simple, here is the declaration:
public String authorize(String params, int istest, String certpath,
int timeout)
Is test, should be a boolean, but I found many moons ago, witango
won't take booleans in. I sent report to witango inc, but never
heard
back.
Out of desperation, I changed the ints to strings, like so:
public String authorize(String params, String istest, String
certpath, String timeout)
And then convert to ints in the java method, and it all worked.
I thought for sure I had tested ints before, so I looked at all my
previous code, and I didn't, but I did use doubles in my witango
magick stuff. So I guess doubles work, strings work, booleans error,
and ints crash? WTF?!
So I am asking if anyone out there has any more experience writing
any beans for witango, and have any further useful information. I am
tired of banging my way around this stuff, and I have a few more I
have to write. I will be happy to provide this payflow pro bean to
the community when done also.
Witango inc, has not/will not provide any docs, or even a sample
bean, but I will share what I have.
Several years ago, when I started asking, someone on the list,
shared
a bean that worked in witango with source code. It is a simple
utility, for creating directorys and moving files. And I still use
the same structure. It is not correct to think that any java bean
works in witango, and I was having a hard time, so this one bean,
got
me going, and every bean I write, uses this structure:
imports here
public class MyClassName {
//global vars can go here
public MyClassName() {
//this is always empty, with class name, so witango can see
the
class, in dev studio
}
//here is a simple method
public String mymethod(String input1, String input2) {
String res = "IN1="+input1+"&IN2="+input2;
return res;
}
}
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
____________________________________________________________________
_
___
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
____________________________________________________________________
_
___
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf