I am calling a web service to obtain some data and JobDone sub is called with Success = False. When I check the log gives me this error :
Here is how I call the Job :
As far as I can see there is no error on the posted XML, is it something with the lib or me?
Thanks in advance.
B4X:
XML post: <?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:Body><fillDataSetJSON xmlns="http://novafortis.com/"><srctable>GetOrders</srctable><SqlStr>SELECT G.GERCEKADI GARSON,M.BOLUM +' - '+M.ADI MASA,MS.MIKTAR,B.BIRIM,U.ADI URUN,MS.ACIKLAMA,MS.ADISYON,MS.ADISYONDETAY FROM MUTFAKSIPARISLERI MS,KULLANICILAR G,MASALAR_V M,URUNLER U,URUNPORSIYONLARI_V B WHERE MS.GARSON=G.SNO AND MS.MASA=M.SNO AND MS.URUN=U.SNO AND MS.BIRIM=B.SNO AND MS.HAZIRLANDI=0 ORDER BY MASA</SqlStr><ReadSchema>False</ReadSchema></fillDataSetJSON></soap12:Body></soap12:Envelope>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Server was unable to process request. ---> Conversion from string " " to type 'Double' is not valid. ---> Input string was not in a correct format.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>
JobName = fillDataSetJSON@GetOrders, Success = false
Here is how I call the Job :
B4X:
Sub CallWebService(url As String, XML As String, opName As String, tablename As String)
LogColor("XML post: " & XML,Colors.red)
Dim j As HttpJob
j.Initialize(opName & "@" & tablename, Me)
j.PostString(url, XML)
j.GetRequest.SetContentType("application/soap+xml; charset=utf-8")
End If
End Sub
As far as I can see there is no error on the posted XML, is it something with the lib or me?
Thanks in advance.