Jose Cuevas Member Licensed User Longtime User Jan 25, 2014 #1 Hi, I'm trying to consume a WebService, but the result is a very large XML String, and the app stops after a certain time, if the WebService shows few records works fine, but if it does show the entire table, that's where the app is stopped. This is my code: Code: Copy Dim ProductsWS As HttpJob SOAPParam = File.ReadString(File.DirAssets, "SOAPProducts.txt") ProductsWS.Initialize("WSProducts",Me) ProductsWS.PostString(PostUrl, SOAPParam) ProductsWS.GetRequest.SetContentType("application/soap+xml; charset=utf-8") I tried adding this line "ProductsWS.GetRequest.Timeout=1000", but still fails. I'll appreciate any help you can give me. Thanks in advance.
Hi, I'm trying to consume a WebService, but the result is a very large XML String, and the app stops after a certain time, if the WebService shows few records works fine, but if it does show the entire table, that's where the app is stopped. This is my code: Code: Copy Dim ProductsWS As HttpJob SOAPParam = File.ReadString(File.DirAssets, "SOAPProducts.txt") ProductsWS.Initialize("WSProducts",Me) ProductsWS.PostString(PostUrl, SOAPParam) ProductsWS.GetRequest.SetContentType("application/soap+xml; charset=utf-8") I tried adding this line "ProductsWS.GetRequest.Timeout=1000", but still fails. I'll appreciate any help you can give me. Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2014 #2 The timeout is measured in milliseconds. 1000 = 1 second. Set it to 180000 (3 minutes). Upvote 0