the objXMLSend in xmlhttp.Send(objXMLSend) is not send ....

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the folloving function in vb .net:

Function SendXMLReq() As String
Dim returnval As String
Dim xmlhttp As Object = New MSXML2.ServerXMLHTTP
Dim objXMLSend = New MSXML2.DOMDocument
Dim allok As Boolean = False
objXMLSend.async = False
objXMLSend.loadXML("<?xml
version=""1.0""?><saldo><msisdn>4550100023</msisdn></saldo>")
xmlhttp.Open("POST", INUrl)
allok = xmlhttp.Send(objXMLSend)
If xmlhttp.responseXML.xml <> Nothing Then returnval =
xmlhttp.responseXML.xml
SendXMLReq = returnval
End Function


When i look in the trace from serverXMLHTTPTrace i get:

08:01:42.812 ::*0000001* :: <<<<-------- HTTP stream follows below
----------------------------------------------->>>>
08:01:42.812 ::*0000001* :: POST / HTTP/1.1
08:01:42.812 ::*0000001* :: Accept-Language: da
08:01:42.812 ::*0000001* :: Content-Length: 0
08:01:42.812 ::*0000001* :: Accept: */*
08:01:42.812 ::*0000001* :: User-Agent: Mozilla/4.0 (compatible; Win32;
WinHttp.WinHttpRequest.5)
08:01:42.812 ::*0000001* :: Host: localhost
08:01:42.812 ::*0000001* :: Connection: Keep-Alive
08:01:42.812 ::*0000001* ::
08:01:42.812 ::*0000001* ::
08:01:42.812 ::*0000001* :: <<<<-------- End
----------------------------------------------->>>>

So the objXMLSend is not send ....

Where do i go wrong ?
 
Can you explain the problem in detail?
Try to capture the error code. The error code will give us more information
in how to apprroach the problem.
Thanks
Deepak
 
As given from the log, there is NO errorcode, - the code runs just fine, - it
just dont send the body (objXMLSend).
 
Back
Top