Hi, I want to communicate whith a Web services but when i try this :
I've got this error message :
"Internal server exception" ( error 500).
What i do wrong ?
thanks
B4X:
Sub btn_Demander_Click
Dim URL As String
URL = "http://192.168.74.187/WebServices/Mobiv.asmx"
request.InitializePost2(URL, "GetClient?NoAdresse=5660569".GetBytes("UTF8"))
request.Timeout = 10000
If HttpClient1.Execute(request, 1) = False Then Return
ProgressDialogShow("One moment please...")
End Sub
Sub HttpClient1_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Log("ResponseSuccess")
ProgressDialogHide
Dim result As String
result = Response.GetString("UTF8") 'Convert the response to a string
Log(result)
Dim rate As Double
lbl_Reponse.Text= result
End Sub
Sub HttpClient1_ResponseError (Reason As String, StatusCode As Int, TaskId As Int)
Log(Reason)
Log(StatusCode)
ProgressDialogHide
msg = "Error connecting to server."
If reason <> Null Then msg = msg & CRLF & Reason
ToastMessageShow (msg, True)
End Sub
I've got this error message :
"Internal server exception" ( error 500).
What i do wrong ?
thanks