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 ?
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 ?