I'm moving this message onto the list for the archives, so there's some
record that there's a lot of work going on behind the scenes on the PHP and
Perl scripts right now.

Some QA notes from the usage:

Boolean:

If you look at my ws__typeof sub in ioelmsrv.pl, then you see that a boolean
can't be 0 or 1, because those are integers.  I think that's a mistake of
the testpage in general, because if booleans can be 0 or 1, and the boolean
test is given precedence over regular integers, then 0 and 1 can't also be
integers.  They're mutually exclusive.

But anyways, I type in true, I get a result of 1, so that's as expected, I
guess?  If I put in a boolean value, I get true returned, but if I put in
another data type, I get false?  But if I put in false, I get NaN.  :-\
Something wrong.  If I put in a non-positive integer, a non-positive float
or a string, then I get NaN.  So the string "true" is being evaluated as
"true", but "false" is just like any other string?

Integer:

I can put in an integer, I get that integer back.  Shouldn't it return true
or false, if it's an integer or not?  Maybe this is all confusion from a
combination of sources such as a tester page that is unclear to begin with,
and a new script translated to a language with different data types and some
comparisons.  Anyways, I put in a float, I get a float back.  I put in a
string, I get a string back.  Something's not right.  Might be the way the
envelope is being built and that's all based of what the ws__typeof chooses.
At least that's what I am finding in the PHP version, and it's probably the
same in Perl, from what I remember with the ioelmsrv.pl conversion and the
beginning of the SODA conversion.

String:

Well this could be anything, so I'd assume a string could accept anything.
For this test page, I think we could add a selection box to "force" the
datatype, maybe like force the string "-0.995" to be a negative float, or an
integer.  Because really all the inputs are strings.  We can either use some
special character sequence as a prefix or we can use a selection box to
specify the intended data type to allow us to test incorrect combinations,
such as a string which is really a number, etc..

Date:

Integers, floats, and random strings yield NaN instead of "false" as I would
expect.  Even the properly formed date format yields NaN.  Definitely
something broken.

Array:

Seems to work ok.  Except that an empty array instead of returning false
returns NaN.  All strings treated as array data, only comma trated as data
separator.  Comma not followed by data in input yields trailing NaN in
result as expected.  Maybe an idea to test more complex arrays is to have
some textarea, with each line being an item, and each line can be a sub
array also, by typing commas.

Object:

This seems to work with the given test data, except it comes back out of
order (a-b-c sometimes reversed c-b-a other times a-c-b).  Leaving out
values gives the now expected NaNs, but there should perhaps be some better
info.  I think a textarea would be better here as well, to allow for more
complex objects to be input, as well as better viewed by the user.

Leif

P.S. I'm sure I'll have similar issues with the PHP script, and I'll work to
resolve those with my copy of the tester page and PHP scripts, so it should
be familiar ground by the time I get to the Perl script merging and
committing stages.


----- Original Message ----- 
From: "Joseph Sonnier" <[EMAIL PROTECTED]>
To: "Leif W" <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 11:17 PM
Subject: RE: Dynapi - PERL version


> http://www.nimbleservices.com/e2/dynapi.util.ioelement-soda-testerp.html
>
> http://www.nimbleservices.com/e2/dynapi.util.ioelement-soda.html
>
>
> I think I have these mostly working - the debug works.
> Still problems with boolean and dates -
>
> Thanks for the help in the DEBUG.
>
> The first line does need to be changed between platforms -
>
> I didn't follow the OO style of one of the earlier files.
> I wanted to try and stay close to the vbscript - so I can track the
changes
> easier.
>
>
> Thanks
> Joseph
>
>
>
>
>
> -----Original Message-----
> From: Leif W [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 18, 2004 12:15 PM
> To: Joseph Sonnier
> Subject: Re: Dynapi - PERL version
>
>
> P.S. I forgot, once I finish with the PHP script, if you're still working
on
> the Perl version I'll definitely help out.  I've got Apache 2 on Linux
with
> PHP 4 (most recent versions), and also I can set up AApache and PHP on
Win2k
> for cross platform testing.  The ONLY line that should need any changing
is
> the first #! line.  Everything else should be handled programattically.
> Don't forget to tail -f your apache access and error log files for any
info,
> incase there's still some script errors or warnings.
>
> Leif
>
> ----- Original Message -----
> From: "Joseph Sonnier" <[EMAIL PROTECTED]>
> To: "Leif W" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 18, 2004 9:15 AM
> Subject: RE: Dynapi - PERL version
>
>
> > I have made quite a bit of progress so far.
> > I have the PERL calc working and the SODA tester working ~ dates and
> > booleans need some work.  However, I have run into a problem.
> >
> > I did all my work so far on a windows box running IIS.
> > I just pushed the stuff over the UNIX ~ FreeBSD/Apache and the same code
> > fails.
> >
> > I put in some debugging stuff on the server side - it appears to be
> writing
> > out the HTML correctly.  The client side fails with a "Request timeout".
> >
> > Can you give me clue how I could capture what is coming back from the
> > server?
> > Really any advice on debugging this
> >
> >
> > Thanks,
> >   Joseph Sonnier
> >
> >
> > -----Original Message-----
> > From: Leif W [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 22, 2004 7:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Dynapi - PERL version
> >
> >
> > Ahh yes.  I started by copying the JScript version and converting on my

> > first pass.  I guess I didn't make it too far.  ;-)  The SODA version
> needs
> > converting, the ioelmsrv.pl version needs testing, and I think needs a
new
> > function added that was added to the JScript and VBScript version a
while
> > ago.  The PHP versions I was working on a while ago too but some are in
> > various states of conversions from JScript to PHP.  I don't have the
> > examples as I don't have the libraries done yet.  ;-)  More hands
needed,
> > definitely, as other things have drawn my attention.
> >
> > Leif
> >
> > ----- Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 22, 2004 6:42 PM
> > Subject: Re: Dynapi - PERL version
> >
> >
> > > I took a look in the CVS library and I found
> > >
> > > ioelmsrv.pl         -  PERL
> > > ioelmsrv.soda.pl    -  This seems to be in Javascript
> > >
> > > Did you only do the first function?
> > > Or is this a CVS issue?
> > >
> > > Do you having like dynapi.util.ioelement-soda-calc.php that can
> > > give me an example of how to use it from the server side?
> > >
> > >
> > >
> > >
> > >
> > > > Hello!
> > > >
> > > > Thanks for your interest!  I think I sort of had a Perl version
> working,
> > > > but not sure, I can't remember.  Haven't touched the code in a
while.
> > > > The porting isn't too difficult, just need to take a look at each
> > > > function (from the JScript version) and rewrite in Perl.  Think it
> just
> > > > needs some more hands.  Everything I have done is in CVS, so you
> should
> > > > be able to get it from there.  I've got Perl set up on both Linux
and
> > > > Win2k for testing, and the script should run on both (with just the
> > > > change of the first line after the #! ), I can help with that part.
> > > >
> > > > Leif
> > > >
> > > > ----- Original Message -----
> > > > From: "Joseph Sonnier" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, January 22, 2004 2:03 PM
> > > > Subject: Dynapi - PERL version
> > > >
> > > >
> > > >> I was checking to see if you have made any progress on the
> > > >>
> > > >> PERL version of the ioelement.srv and soda modules
> > > >>
> > > >>
> > > >>
> > > >> Is the port difficult or just needs more hands?
> > > >>
> > > >>
> > > >>
> > > >> I have started using the Dynapi SODA API on NT, but would
> > > >>
> > > >> like to move to a UNIX,LINUX platform.
> > > >>
> > > >>
> > > >>
> > > >> Any suggestions?
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to