Nothing of special: i have a REST WCF Service and i call some method through HttpJob object.
Everything works perfectly ... after a while (30-40 min) i get - AND JUST ALWAYS FOR THE SAME METHODS I CALL - the Http 400 Error (Bad Request). If i call other WCF service methods, all is fine... it seems that just Always with the same 2 methods calling i get, after a while, this error; it does not related to POST/GET http type calling, because all the other methods i call after i get that error response, are both POST OR GET and they work fine.
Here is a little snippet code of the method i get error:
As you can see, every call i set a cookies header for my stuff; i've checked the cookies and the header string is always ok.... this error appears just with this method, and it's pretty strange.....
"httpAgent" variable is declared in the activity Globals and is initialized every request as you can see.
Is there something i'm wronging ?
Thank you !
Everything works perfectly ... after a while (30-40 min) i get - AND JUST ALWAYS FOR THE SAME METHODS I CALL - the Http 400 Error (Bad Request). If i call other WCF service methods, all is fine... it seems that just Always with the same 2 methods calling i get, after a while, this error; it does not related to POST/GET http type calling, because all the other methods i call after i get that error response, are both POST OR GET and they work fine.
Here is a little snippet code of the method i get error:
B4X:
Sub HttpGetUsers(showLoading As Boolean, resetPage As Boolean)
httpAgent.Initialize("GetUsers", Me)
If (showLoading) Then
ProgressDialogShow(Utils.GetAppString("Loading_Msg"))
Else
ProgressBar1.Visible = True
End If
If (resetPage) Then usersListPageIndex = 1
httpAgent.PostString(Utils.GetConfigFile.get("EndpointAddress") & "GetUsersList", "pagindex=" & usersListPageIndex)
Utils.SetCookiesHeader(httpAgent.GetRequest)
End Sub
As you can see, every call i set a cookies header for my stuff; i've checked the cookies and the header string is always ok.... this error appears just with this method, and it's pretty strange.....
"httpAgent" variable is declared in the activity Globals and is initialized every request as you can see.
Is there something i'm wronging ?
Thank you !