[Sorry, missed the last part of message. here is the rest]
Here is what the manifest should look like:
[Main-Class: MyClassName
Name: MyClassName.class
Java-Bean: true
]
So the question is to the community. I used this structure cuz I had
nothing else to go on. Has anyone developed anything that works with
other datatypes besides strings and doubles? I have seen booleans and
ints, coming out, but not in.
Is there another structure, or methods/classes that can be imported
from the bean handler that give some utility to this stuff?
Are they any more complex beans, with source, that you have found to
work in witango? Any other samples?
I guess that is it, any help appreciated, if I am doing something
wrong, school me. But this one bean was the only one that I found
that worked, so I use that structure.
I still have a few more to write.
Also, we are testing the verisign bean now, and it is working great.
When we feel it is ready for production I will make it available if
anyone wants it, I know several others use verisign, like we do.
--
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 2:21 AM, Robert Garcia wrote:
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