I tried before posting, but I'm getting errors so I don't know what I'm doing wrong.
First Step:
Sub Globals
Dim xmlParser As SaxParser
End Sub
Sub wsGetDataSet (wsQuery As String)
'XML = WebService Data
job1.Initialize("JOBSOAP_getTransact", Me)
job1.PostString ("http://www.domain.com/CellWS.asmx)", XML)
job1.GetRequest.SetContentType("application/soap+xml")
End Sub
Second Step:
Sub JobDone (Job As HttpJob)
If Job.Success Then
Dim Res As String
Dim ResIS As InputStream
Res = Job.GetString
ResIS = Job.GetInputStream
Select Job.JobName
Case "JOBSOAP_getTransact"
Dim wsTable As String = CommonFuncs.xmlGetTagContent(Res,"GetDataSetResult")
xmlParser.Parse(ResIS,"xmlParserSub")
End Select
End If
End Sub
Sub xmlParserSub_EndElement (Uri As String, Name As String, Text As StringBuilder)
End Sub
Variable "wsTable" is there to debug response, I can see the headers and the values in the string (the log truncates above 4000 chars, but I can see enough data)
The error is thrown at xmlParser.Parse line:
Error occurred on line: 122 (reptransact)
java.lang.NullPointerException
DEBUG:
ResIS.BytesAvailable returns "6261 (0x1875)"
ResIS -> buf -> 0..999 returns "0 (0x0)"
ResIS -> count returns "0 (0x0)"
Also, the rapid debugger breaks at that line, I need to use legacy debugger to be able to see the "NullPointerException" error.
Any idea what's happening?
Thanks!