ok, I thought you were the one who told me the com worked again. So I guess I was wrong.

I looked at the xml method, I love xml, but it uses and external action for transport, doesn't it?

The pure java method, requires no external actions, and is completely transported using java ssl. So it seems the most efficient to me.

I am not sure, but I think you can transport xml with the java method. I will take a look.

BTW, there are 2 java methods in the SDK. The win32 SDK shows a JNI java method, that requires a JNI dll, and a other stuff. However, if you download the JAVA sdk, not the win32 sdk, you get the PURE java method, that only requires a Verisign.jar to be put in the classpath, and I used their sample code to create the bean.

Anyway, so far, after catching the int thing, it works very well.

--

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/

On May 9, 2006, at 6:10 AM, Robert Shubert wrote:

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

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to