|
From: Leif W <war...@us...> - 2003-07-18 16:28:33
|
On line 168 of the JScript version:
if (typeof(value)=="string" && value.indexOf("@RESULT#")==0)
value=ar[value.substr(8)];
In the statement:
value = ar[value.substr(8)];
"ar" has a null value, as it has not yet been set to anything inside the
function. So how do we get a value from it? What should it be set to, and
at what point should it be set?
Leif
----- Original Message -----
From: "Leif W" <war...@us...>
To: <dyn...@li...>
Sent: Friday, July 18, 2003 11:30 AM
Subject: Re: [Dynapi-Dev] ioelmsrv.soda.jscript.asp -> ioelmsrv.soda.php
conversion
> Ok. I saw that further on in the file and that's what I suspected, but I
> wasn't sure. I'll make the change to the ASP versions too, to use
> soda.Methodname (JScript), soda.item("methodName") (VBScript), and $soda[
> "methodName" ] (PHP), respectively.
>
> Leif
>
> ----- Original Message -----
> From: "Raymond Irving" <xw...@ya...>
> To: <dyn...@li...>
> Sent: Friday, July 18, 2003 10:35 AM
> Subject: Re: [Dynapi-Dev] ioelmsrv.soda.jscript.asp -> ioelmsrv.soda.php
> conversion
>
>
> > Hi Leif,
> >
> > The variable mn is used to hold the method name but
> > it's used further down in function.
> >
> > It should be safe to replace mn in line 110 and 114 of
> > ioelmsvr.soda.jscript.asp with soda.methodName
> >
> > --
> > Raymond Irving
> >
> > --- Leif W <war...@us...> wrote:
> > > In the ASP versions of the file, in function
> > > wsDispatch, an undefined
> > > variable named "mn" is passed to
> > > ws__createSODAEnvelope. Is this correct?
> > > It doesn't seem correct... Should a NULL value be
> > > passed instead, or should
> > > mn be set to something beforehand?
> > >
> > > Leif
> > >
> > > JScript version
> > > ---------------
> > > // check if internal system function returned any
> > > data
> > > if(!isoda) {
> > > // Not System Function - continue with dispatch &
> > > invoke dispatch events
> > > if created
> > > continueDispatch=true;
> > > // trigger dispatch event
> > > if (wso_hasDispatchEvent) {
> > > value=ws__invokeEvent("dispatch");
> > > if (value==false) {
> > > // send error (E4) message to client -
> > > connection rejected
> > > isoda =
> > >
> > ws__createSODAEnvelope(mn,null,"E4",wso_sodaErrorText["E4"]);
> > >
> > > ----^^----
> > > continueDispatch=false;
> > > }else if(typeof(value)=="string") {
> > > // send error (E1) message to client - system
> > > error
> > > isoda =
> > >
> > ws__createSODAEnvelope(mn,null,"E1",wso_sodaErrorText["E1"]+
> > > " :
> > > "+value+" while executing dispatch event")
> > >
> > > ----^^----
> > > continueDispatch=false;
> > > }
> > > }
> > > }
> > >
> > >
> > >
> > >
> > >
> > >
> > -------------------------------------------------------
> > > This SF.net email is sponsored by: VM Ware
> > > With VMware you can run multiple operating systems
> > > on a single machine.
> > > WITHOUT REBOOTING! Mix Linux / Windows / Novell
> > > virtual machines at the
> > > same time. Free trial click here:
> > > http://www.vmware.com/wl/offer/345/0
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > Dyn...@li...
> > >
> > http://www.mail-archive.com/dyn...@li.../
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: VM Ware
> > With VMware you can run multiple operating systems on a single machine.
> > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> > _______________________________________________
> > Dynapi-Dev mailing list
> > Dyn...@li...
> > http://www.mail-archive.com/dyn...@li.../
> >
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://www.mail-archive.com/dyn...@li.../
>
>
|