Android Question Timeout when I consume a WebService

Jose Cuevas

Member
Licensed User
Longtime User
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:
B4X:
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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…