471,349 Members | 1,260 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

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

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 ?

Jul 21 '05 #1
2 2243
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

"@rpus - Development" wrote:
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 ?

Jul 22 '05 #2
As given from the log, there is NO errorcode, - the code runs just fine, - it
just dont send the body (objXMLSend).
"Deepak" wrote:
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

"@rpus - Development" wrote:
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 ?

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mark | last post: by
reply views Thread by eliahu | last post: by
1 post views Thread by Lu Wei | last post: by
4 posts views Thread by dols | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.