[Laszlo-dev] [Laszlo-user] [Fwd: how to set soap timeout]
Henry Minsky
henry.minsky at gmail.com
Tue Jun 9 18:53:57 PDT 2009
No, the code in rpc.js does not have the timeout setting code in it, my
earlier email explained where to add it.
I'll send a patch with my idea for you to test.
2009/6/9 ono keiji <keiji_ono at net8.co.jp>
> You mean rpc.js is not all for this ?
>
> Henry Minsky さんは書きました:
> > I'll make up a patch you can try out.
> >
> >
> > 2009/6/9 ono keiji <keiji_ono at net8.co.jp <mailto:keiji_ono at net8.co.jp>>
> >
> > Hi Henry,
> >
> > I tried them.
> > I tried it call in <script> tag with LzRPC.setTimeout() or in
> > <soap> tag with this.setTimeout().
> > But both of them, my test code said 'call to undefined method
> > setTimeout'.
> > How can i call it from a application ?
> >
> >
> >
> > Henry Minsky さんは書きました:
> > > It looks like I forgot to put in the code that sets the timeout,
> > when I
> > > updated the
> > > code last time.
> > >
> > > There is an object called LzRPCDataRequest, which is a subclass of
> > > LzHTTPDataRequest. It is defined in the file
> > > lps/components/rpc/library/rpc.js
> > >
> > > The LzRPCDataRequest can take a timeout property. However, nothing
> is
> > > setting it right now.
> > >
> > > In the xmlrpc.js file (that defines the XMLRPC service), the code
> > does
> > > set the timeout as
> > >
> > > requestObj.timeout = canvas.dataloadtimeout;
> > >
> > > So that service will default to that canvas value.
> > >
> > > However, the JavaRPC and SOAP request() methods are not setting
> the
> > > timeout.
> > >
> > >
> > > We should define an API method on LzRPC that sets the timeout that
> is
> > > used in the request() method. I would propose having a default
> > timeout
> > > value as an instance var in LzRPC, and a method to modify it
> > >
> > >
> > > class LzRPC {
> > >
> > > var defaulttimeout = 30000;
> > >
> > > function setTimeout(msec) { this.defaulttimeout = msec; }
> > > ...
> > > ...
> > > }
> > >
> > > Then in the request() method, that value would be copied to the
> > datarequest
> > >
> > > function request ( dreq:LzRPCDataRequest, delegate, secure,
> > > secureport ) {
> > > ...
> > > ...
> > > dreq.timeout = this.defaulttimeout
> > >
> > >
> > > Can you try this and see if it works?
> > >
> > > If you get something working, or even if you don't file a bug
> > for this,
> > > I will try to take a look at it as soon as I finish a couple of
> high
> > > priority bugs that I am working on for our next release.
> > >
> > > On Tue, Jun 9, 2009 at 4:13 AM, ono keiji <keiji_ono at net8.co.jp
> > <mailto:keiji_ono at net8.co.jp>
> > > <mailto:keiji_ono at net8.co.jp <mailto:keiji_ono at net8.co.jp>>>
> wrote:
> > >
> > > Are not you have any info?
> > > It seems like a application timeout could controlled by
> > > http.backendTimeout/http.backendConnectionTimeout
> > > which are in lps.properties. But what are their mean ? What
> is
> > > difference between backendTmeout and
> > > backendConnectionTimeout ?
> > >
> > >
> > >
> > >
> > > ono keiji さんは書きました:
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > >
> > > Subject:
> > > [Laszlo-dev] how to set soap timeout
> > > From:
> > > ono keiji <keiji_ono at net8.co.jp
> > <mailto:keiji_ono at net8.co.jp> <mailto:keiji_ono at net8.co.jp
> > <mailto:keiji_ono at net8.co.jp>>>
> > > Date:
> > > Thu, 21 May 2009 20:47:58 +0900
> > > To:
> > > laszlo-dev at openlaszlo.org
> > <mailto:laszlo-dev at openlaszlo.org> <mailto:laszlo-dev at openlaszlo.org
> > <mailto:laszlo-dev at openlaszlo.org>>
> > >
> > > To:
> > > laszlo-dev at openlaszlo.org
> > <mailto:laszlo-dev at openlaszlo.org> <mailto:laszlo-dev at openlaszlo.org
> > <mailto:laszlo-dev at openlaszlo.org>>
> > >
> > >
> > > Hi,
> > >
> > > Could someone tell me how to set a timeout parameter when
> > using
> > > rpc/soap
> > > on v.4.3 ?
> > > on v.3.*, i could control it at getNewLoader() in rpc.js,
> > but i saw
> > > it had gone away somewhere now.
> > >
> > > Ono Keiji
> > > ono at net8.co.jp <mailto:ono at net8.co.jp>
> > <mailto:ono at net8.co.jp <mailto:ono at net8.co.jp>>
> > >
> > >
> > >
> > >
> > > --
> > > ------------------------------------------
> > > (株)ネットエイト
> > > 小野圭二
> > >
> > > keiji_ono at net8.co.jp <mailto:keiji_ono at net8.co.jp>
> > <mailto:keiji_ono at net8.co.jp <mailto:keiji_ono at net8.co.jp>>
> > > 東京都江戸川区瑞江1-45-11
> > > TEL 03(3676)6599
> > > URL http://www.net8.co.jp
> > > ------------------------------------------
> > >
> > >
> > >
> > >
> > > --
> > > Henry Minsky
> > > Software Architect
> > > hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
> > <mailto:hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com
> >>
> > >
> > >
> >
> >
> > --
> > ------------------------------------------
> > (株)ネットエイト
> > 小野圭二
> > keiji_ono at net8.co.jp <mailto:keiji_ono at net8.co.jp>
> > 東京都江戸川区瑞江1-45-11
> > TEL 03(3676)6599
> > URL http://www.net8.co.jp
> > ------------------------------------------
> >
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
> >
> >
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090609/5c4fa7fb/attachment-0001.html
More information about the Laszlo-dev
mailing list