Re: [flexcoders] HTTPService timeout?

2011-08-02 Thread Rishi Tandon
Have you check the network monitor in flash builder 4?

Sent from my iPhone

On Aug 2, 2011, at 5:16 PM, "georgemeng2011"  wrote:

> Hello,
> 
> I have very simple code to call a simple PHP page. PHP page will insret 2000 
> records to mysql table, takes about 2 minutes.
> 
> On PHP side, it is fine, I tested the php page within browser, it ran for 2 
> minutes and stoped. (I have configured on PHP to run longer than normal.)
> 
> One Flex side, I call PHP page using HTTPService with requestTimeout = 300 to 
> avoid timeout. Here is the code:
> 
> var ws:HTTPService = new HTTPService();
> ws.requestTimeout = 300;
> ws.useProxy = false;
> ws.url = "http://localhost:85/test.php";;
> ws.addEventListener(FaultEvent.FAULT, fault );
> ws.addEventListener(ResultEvent.RESULT, result);
> ws.send();
> 
> However, after 30 seconds, it return fault event. I really don't understand.
> 
> Can anyone let me know how I do this correctly?
> 
> Thank you!
> 
> George
> 
>  
> 
>  
> 
> 


RE: [flexcoders] HTTPService timeout

2005-10-07 Thread Mink, Joseph





Thanks for the response, Matt...that's actually a good 
thing in the way that I'll be planning to use HTTPService : 
)
 
Joey


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Matt 
ChotinSent: Friday, October 07, 2005 10:45 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] HTTPService 
timeout


Currently HTTPService 
doesn’t support a timeout on its own.  You’ll need to use your own 
mechanism with setInterval.
 
Matt
 




From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of Mink, 
JosephSent: Friday, October 
07, 2005 5:03 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] HTTPService 
timeout
 
Hi,
 
I was wondering...does 
anyone know where/how to set the timeout for HTTPService requests?  I am 
shamefully considering this as a solution to asynchronous data push from the 
server...write a servlet that doesn't respond to requests until data of interest 
comes to be.
 
Thanks!






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] HTTPService timeout

2005-10-07 Thread Matt Chotin










Currently HTTPService doesn’t
support a timeout on its own.  You’ll need to use your own mechanism with
setInterval.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mink, Joseph
Sent: Friday, October 07, 2005
5:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService
timeout



 

Hi,

 

I was wondering...does anyone know
where/how to set the timeout for HTTPService requests?  I am shamefully
considering this as a solution to asynchronous data push from the
server...write a servlet that doesn't respond to requests until data of
interest comes to be.

 

Thanks!

 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager
Sent: Thursday, October 06, 2005
4:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] calling
a secured web service

I've never used run-as due to the fact that I think it has very limited
usage given that all users connect to the web
service with the same
credentials.  Have you tried custom
auth?  With that you can specify a
client specific username and password for the web
service. Do you have
access to the password from the app?


Carson 




Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Raymond Camden
Sent: Thursday, October 06, 2005 12:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] calling a secured web
service

So a follow up. I noticed this in the log:

10/06 14:51:57 ERROR The Flex proxy and the
specified endpoint do not
have the same domain, and so basic authentication
can not be used. 
Please specify use-custom-authentication or run-as
for services not
located on the same domain as the Flex proxy. .
The proxy domain is
HTTP://localhost:80
and the target domain is http://foo.com:80

(foo.com is a fake name)

What I don't get it, I _am_ using run as. Here is
the code from my
config file:

 
    
 
    
  
http://foo.com/foo.asmx?WSDL
 
   
  
  
true
   

   
http://foo.com/foo.asmx
   

 
    
 
    


On 10/6/05, Carson Hager
<[EMAIL PROTECTED]> wrote:
> How did I know that question was next?
:)  I looked it up and it's in 
> chapter 30.  Working with web services
and Securing data services are 
> good sections.
>
>
> Carson
>
>


 Yahoo! Groups Sponsor
~-->
Fair play? Video games influencing politics. Click
and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~->


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.