Timeout for the HTTPTransport KSoap2

Hi all

I have a project where I need to download a large amount of data from .NET web service to the device. I'm using KSoap2 and everything works fine until I actually start the download. I get an error "Connection Timeout".

I tested the web service separately (from a site) and takes about 5 minutes to download. I also tested the BB project with a small amount of data to the web service itself and everything works fine. I am able to receive the returned data, but as soon as I try to download chuck raining data, the connection times out.  That said, I have 2 questions:

1. how to specify the timeout for a connection HTTPTransport? I would like to be able to put 10 min for example to avoid time-out error.

2. is there a limit to the amount of data the device can receive when using HTTPTransport?

Thanks in advance,

Daniel

1 on timeout:

-------------------------

Take a look at this thread on the definition of timeout in httpConnection.

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=25155&query.ID=26...

You can use the SocketConnectionEnhanced interface that allows you to set the timeout fom a direct TCP connection.

How - to control the timeout for TCP connections via BlackBerry Mobile data system connection Service

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

2. data about

--------------------------------

There are limits on the amount of data that can be downloaded by connection. See this article.

What is - HTTP 413 request entity too large

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

But you can download data piece by piece. See this article.

How - to download large files using the BlackBerry Mobile data system

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800431/How_To _...

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • Timeout for the CFC method

    I have a series of CFC methods that call each other (using cfinvoke) to determine the inventory of an item, and down to the lowest level of calls, I call Java Socket() on my ERP server to get the inventory in real time (and then this value is propagated to the top and used by the CFC calls to determine what message to display on our site.  The question that I am trying to deal with is how graciously recognize when there is no response from the ERP server and give up less than 3 seconds.  So ideally, I'd like to add some kind of time-out period for the method that makes shooting call itself, or the method that calls this method.

    The socket class that I use has a connection delay internal seconds, although it doesn't really seem to follow that.  If I have the point it at an illegal address, it seems to take a minute to drop and the timeout.  If I do not trust this parameter, even if I wanted to recompile the class to receive the time-out as a parm. Here is the basic Java code used to create the socket connection:

    Socket = new Socket();
    try {}
    Socket.Connect (new InetSocketAddress (host, Integer.parseInt (port)), 1000);
    socket.setSoTimeout (5000);
    }

    I tried to add < cfsetting requesttimeout = "3" > to the method that makes shooting of Appeal based on some other posts, I had found, but has no effect.  I also tried to make the final cfinvoke to call a webservice with the defined timeout parameter, but yet, it does not timeout.

    Does anyone have any other suggestions?  Would like a CFTIMEOUT tag.

    We can try this kind of thing, perhaps:


        
        
        
        
        


        

    --

    Adam

  • issue of timeout for the fpga 9870

    I'm collecting series instrument (read-only) data, instrument using 115200 baud, 8 bits, no parity 1 stop and no control flow, none of which are configurable.

    It works generally fine but sometimes it starting delay, by examining the properties of port, it says 0 bytes available there, but the instrument is always sending bytes. Disconnect the cable series and reconnecting gets it going again... But why?

    I detect and recover with happiness (framing, etc) communication errors, but I can't get anything to recover from occurrence of timeout exception of physical intervention.

    If I only connect the instrument and the start (forcing a real timeout) and plug in the unit, it will always be fortunately seems to start.

    At this point, I would be 'reset' the port on a timeout, but I can't find a method/technique to do so.

    It is a 9014 with 9114 chassis module 9870 (among others) and a labview 11 sp1

    Eric416,

    I had a 9870 running in a cRIO-9074 (scan mode) for some time now without any problems.  I think I'd still try the isolator just to eliminate the posibility of equipment short.  Then I hang a noculars on the TX/RX and see what kinds of things are spend on start-up/power.  Have you tried to have your code close, then reopen the VISA session when the time-out occurs?

  • How to set the timeout for the INITIAL LOAD EXTRACTED?

    Hi all

    GG 11.2 SQLserver2008

    I extract a single large table size of 20 G., but it seems I hit the limit of timeout? Or another resource limit? Or I do not know if.

    Here is my error:

    2013-06-22 15:43:36 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error 0 (operation ends with success.) get position in d:\GGora\dirdat\ex.

    2013-06-22 15:43:36 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error 0 (operation ends with success.) get position in d:\GGora\dirdat\ex.

    2013-06-22 15:43:36 INFO OGG - 01085 Oracle GoldenGate for Oracle Collector: the server received window closed event.

    2013-06-22 15:43:36 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error 0 (operation ends with success.) get position in d:\GGora\dirdat\ex.

    2013-06-22 15:59:38 INFO OGG - 00963 Oracle GoldenGate for Oracle, Manager MGR.prm: command received from EXTRACT on host DTC - PC.domain (START SERVER CPU-1 PRI-1 TIMEOUT 300 PARAMS).

    2013-06-22 15:59:39 INFO OGG - 01677 Oracle GoldenGate for Oracle Collector: pending (dynamically assigned) connection.

    2013-06-22 15:59:39 INFO OGG - 00963 Oracle GoldenGate for Oracle, Manager MGR.prm: command received from host DTCKalayaan-PC (REPORT 1280 7819) SERVER.

    2013-06-22 15:59:39 INFO OGG - 00974 Oracle GoldenGate Manager for Oracle, MGR.prm: Manager started the collector process (Port 7819).

    2013-06-22 15:59:39 INFO OGG - 01228 Oracle GoldenGate for Oracle Collector: Timeout 300 seconds.

    2013-06-22 15:59:44 OGG - 01229 Oracle GoldenGate for Oracle Collector INFO: connected to DTC - PC.domain:56507.

    2013-06-22 15:59:44 OGG - 01669 Oracle GoldenGate for Oracle Collector INFO: opening d:\GGora\dirdat\ex (byte 0, EOF current 0).

    2013-06-22 16:06:33 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error 0 (operation ends with success.) get position in d:\GGora\dirdat\ex.

    2013-06-22 16:12:08 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error 0 (operation ends with success.) get position in d:\GGora\dirdat\ex.

    2013-06-22 16:12:08 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error 87 (the parameter is incorrect.) get position in d:\GGora\dirdat\ex.

    2013-06-22 16:12:08 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    2013-06-22 16:12:08 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    2013-06-22 16:12:08 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    2013-06-22 16:12:09 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    2013-06-22 16:12:09 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    2013-06-22 16:12:09 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    2013-06-22 16:12:09 OGG - 01223 Oracle GoldenGate for Oracle Collector WARNING: error getting file for d:\GGora\dirdat\ex position (87, the parameter is incorrect.).

    Where should I put the limit?

    Thank you

    zxy

    Sorry, misread the part 'server' in what you use. Data Pump is Oracle, MSSQL not. But, you can do a dump of csv data, and then use SQL * Loader. Alternatively, use the CSV (one for each table, a bit heavier) files in the form of external tables.

    4 GB is worth considering:

    The EXTFILE parameter to specify a file extracted, which is a local file that will be read by

    a group of extract from pump data on the local system, or to specify a replicate file extracted local

    bed when SPECIALRUN is used. The size of an extracted file must not exceed 2GB.

  • Modify click &amp; timeout for the tools in the toolbar

    Hello fellow Photoshop-ERS!

    My question is hidden in what concerns the click & hold the delay of selection tool in the toolbar. Since the last update of Photoshop CC 2015 (version: 2015.0.1, Build: 20150722.r 168 x 64) the delay time after I click & hold is significantly more time to display the option of the tool in the toolbar (for example, click on & keep on the move tool to access the work plan tool). Is it possible to shorten this period in preferences somehow? I went through each of the menus in the preferences and didn't see an option for this. Any help, as always, be appreciate! Thank you!

    If you want them to appear earlier, use a right-click instead to wait or try a left click. When you right click, they should appear.

  • Wait for the window to load acrobat pro dc

    I get this error when trying to install acrobat pro dc: timeout for the loading window.  It has already been downloaded, and I clicked Yes when asked for permission to make changes.

    Please check:

    Concerning

    Stéphane

  • A timeout occurred while waiting for the host controller EHCI interrupt on answer Async ahead Bell.

    Whenever I put my adapter wireless netgear n150 under heavy load (download of World of Warcraft for example), it will go down to connection and until I restart the computer the adapter usb port is useless.  I dug into the event viewer and found that a timeout occurred while waiting for the EHCI host controller interrupt on the asynchronous response advance doorbell, source usbehci.  This seems to have been a problem with windows 8 I found other threads referencing but I can say that they are pre-release and some actually work solutions have been validated.  I already assured that all drivers, firmware and chipsets are up-to-date and compatible.  ANYONE please help?

    Quick fix I found:

    -try falling back to WiFi G rather than use N
    In my case, it works... is no longer a fall. But not the same bandwidth...
  • How to increase the timeout for download on GBA?

    Hello

    We try to download a large file (50 to 75 MB) PDF to our Association. But we have always had an HTTP timeout. Send us the request typical HTTP POST to .../Packaging/Package with some parameters.

    I think there should be some options for the packaging.conf file in / etc to increase the time-out period. But unfortunality I wasn't able to find these options in the documentation. Maybe I'm blind too.

    Can you help me please? Is there a list with all the options for packaging.conf, fulfillment.conf and admin.conf? May I can find other interesting options in this list.

    Thank you in advance!

    Kind regards

    Nicolas

    I upload the file via SFTP in a location known and accessible to the service of packaging and if you send the application package using the dataPath option, not the data option.
    This will also help with the use of memory on the server package.

  • Wait for the sedentary Timeout

    If wait until what the sedentary function must timeout because the monitored signal does not within the limits specified in the deadline, which is an indication that the function actually expired?  He stops running, the movie file or throw an error a code type?

    Thank you

    Michael

    Re,

    In my view the attached code should work. If this isn't the case, I'll give up on a guy of NOR.

    ++

  • Need help setting up WebUI for the Wireless Gateway

    I have problem installing a Web UI for my demo project.

    I just do temperature is a simple application of WSN on a node of thermocouple WSN-3121 and it logging on a RT NI 9792 wireless gateway.

    Then, I wanted to create a web user interface and display whats in the user interface of the gateway - see the project.

    SO I'm stuck with the web INTERFACE coming.  I tried to read as much as I can but I still don't know what I'm doing wrong.

    As far as I see it, I need to create a web service in the construction for my gateway specifications and place the gateway_main.vi like the vi to use.  Then build and deployment.  Once it happened, and I run the vi on the bridge, I created a Web user interface as shown in the picture, where it counts the the gateway web service using 192.168.0.16:8080 - that works very well.

    When I run the Web interface, it is just and expires.

    I am using LAbview 2010.  Help, please.

    Hello markza,

    Your approach using the Web user interface designer and understanding its use case is quite accurate, the question lies in the web service, you have deployed. The VI you build as web service, which is gateway_main.vi, while loops inside and so cannot be used as a web service. The reason for the timeout is that your user interface Builder application calls the web service LV2010 and is stuck there for waiting time loops to complete. Also, the data type of cluster is not supported in the user Web interface Builder, so you'd have to break up from the entrance of the time of picking for the node wireless in two separate digital inputs.

    I recommend creating a Subvi out of your code inside of the while loop inside gateway_main.vi. The Subvi must have two digital inputs to replace the cluster (as mentioned above) and do not have one of the Boolean inputs Start or Stop. Output would remain the same, that is, two doubles and a Boolean value.

    I would like to know if this is useful and if you have any other questions.

    Thank you!

    Dieudonné jgfcnbh

    The user of LabVIEW Web R & D interface generator

  • Customized for the RT FIFO device details

    Hello

    I have a few questions about the FIFO VeriStand in a custom device asyncrounous.

    I saw a post earlier where a - 1 to the function of reading of FIFO of RT for him to wait indefinitely for an item to enter the FIFO. This allows pseudo - synchronize the PCL with a device custom asyncrounous. I wonder if this causes the boundary wire custom sleep or it stay active and keep returning? Is it possible to change the polling to blocking?

    Another quick question, if I only want to write to the RT FIFO when the data has changed it will cause unforeseen problems? As the channels time or need to wake up or something? Certain conditions can only write channels once every 1000 iterations of the PCL and loop device custom.

    I know that I can not write the channels selected in a FIFO RT, but can I create multiple FIFOs in a custom device to actually do the same thing? I imagine then having the outputs 1, outputs etc 2 in VeriStand.

    Thank you

    B

    Hi B,

    If you look at the RT VI pilot generated from custom device model you will see exactly what is happening. If you set the time-out for the reading of FIFO-1 then the botton loop will be essentially suspended unless there are items to read in the FIFO. Meanwhile, the thread will always be active because the RT read that VI is querying data during the time specified in the timeout.  I don't think that there is a way to change the FIFO mode to blocking since the dismissal of the FIFO is spent Veristand engine to the RT VI driver.

    The PCL writes and reads data from and to asynchronous custom FIFO device at each step of the execution. In your custom device, you can configure to read and process data of the 1000th step. I don't see any problems with it.

    You can have a FIFO for input channels and a FIFO for the output channels. You can write to an output channel given by writing data in a function index element in the output array that is passed to the function RT FIFO Write.

  • triggering event for the time of day

    I'm trying to put in place a system that requires taking several samples per day at the fire time (at irregular intervals) and then repeat it every day for a week or two. So far, I have tried to use a TimeStamp control array, but I'm not getting much. Does anyone has any ideas on how to do it, or can point me to an example that I missed in my research.

    Thank you

    So what I would do, is create a loop of events with a single event - a timeout. Conduct of this event would be a picture of the time when an action should be performed. The loop starts, remove the first item and subtract the current time of the time goal. This will give you the time in seconds before the event. Multiply by 1000 to get the number of milliseconds before the time runs out. Feeding this value for the time-out. Then each timeout event fires of time, of the index to the next item and calculate a new delay.

    Mike...

  • Impossible to click on the buttons for the timed loop.

    Hello!

    I have a loop that is timed with a pace set by the user. And when the loop is running, I can't push any button of my GUI to stop it...

    I have to wait until a mistake or I stop the race.

    I can't put the diagram is too big and I think I don't have the right, but you have ideas?

    Ask me for more details.

    Thank you

    bejard wrote: timed loop is just in a structure of the event and I put 10 ms or 100ms.

    The program runs correctly (with this loop delay of 10ms/100 ms) like in the beginning, but I can't push any button or even change the tabs during the loop.

    You shouldn't have long extensions inside the event.  Which is supposed to stop your timed loop?

    I think that you have the option "Lock the front until the end of the occurrence" lit.  It will not press anything, until the end of everything for this case (including the timed loop).

    According to my experience, using a loop timed in a Windows system is a complete waste and often adds more overhead and questions.  Instead, I really think you need to use a State Machine.  When the button is pressed, you tell your state machine to move to the State the code inside your timed loop tracks.  You can use the State with the structure of the event to time your loop.  If you can go behind your state of event to your processing loop structure.  Just set the timeout on the structure of the event at any rate of loop you really want to.

  • Tips for the TCP wait of asynchronous Messages with non-standard expression tanks

    Hi all

    I have a PITA instrument that I need to communicate with in a system of greater control.  This instrument communicates via RS232 to a server running on the PC OEM application.  In order to communicate with the instrument, I have to use the TCP protocol on a specific port on Localhost - So far so good as long the protcol is answer command.

    The problem is that the instrument sends several messages asynchronously of different sizes with a double newline as a tank of termination (there are many CR/LFS all these messages so that they cannot be a MOE) and I am struggling to find a way to manage receive asynchronous messages of variable length with a cusom CHARACTER term. without having simply a fast dedicated for TCP loop reads trying to catch these asynchronous status messages.

    I wish the functions VISA TCP has worked with the local host, given that the properties that can be set to change the chariot of non-standard term.

    Open to suggestions-

    Thank you

    Ronin

    Yes, I'll be streaming in my own string buffer and then to choose the messages out of the buffer when you find the stop character.

    A technique to improve performance, rather than reading a single byte at a time is to use the "immediate" on reading TCP mode and use a high value for the "bytes read" - in this way, it will return all of the data that is there without waiting for all the specified bytes or the time-out. He will wait only the full timeout if 0 bytes are received (which you can ignore) - set to a low value such as 100ms.

  • Bytes of TCP IP and subset of bytes for the connection of server and clients

    Hello

    I have a problem on the server and the client connection using the TCP/IP protocol. In the client, I have 41 cases, 1 case of timeout, others are for the case of button when they are pressed and then the LED on the server will be to market and if a click again the led will be off. But when I reached cases 10, 11, 12 up to the 41 (key case), that the LED lights if you click only once, but when he double clicked then the light does not turn off. So, how you solve the problem? Is this subset or bytes to read because the first subset is 1 case but no 10 to 41 will not work, but I change the subset in 2 then the case works for don't light the LED, but it do not work to turn the LED off.

    I also download the vi in this for reference.

    the user name for the client is the user and the password is pass.

    Thank you

    Hi ican.

    you have not changed the customer. See the attached picture. The error in the server side, it's that the 4 was connected on the two functions of split to the length. See Server for the necessary difference image.

    Mike

Maybe you are looking for