473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2334
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kenny | last post by:
Dears, I create one asp program like below, but when I run the asp as http://localhost/test.asp, I meet 0x800C0005 error...How to solve it? '****************test.asp************************* <% ...
1
by: Lakshmi Narayanan.R | last post by:
Hi Experts, In one SMS gateway project i need a great and urgent help from u all. There, the Service Providers sending the data thru "HTTP Headers" (For ex. sms-Id,sms-source ). So i need to...
3
by: Mark | last post by:
Hi all i was just wondering if you help. I have to send a cgi request to a company using xmlhttp request. They reply back with a line of info but when you view the internet explorer source code...
0
by: eliahu | last post by:
Hello Everyone! I have xmphttp object in javascript. I have this function function GetPageSyncrony(strUrl,responseType) { var oXMLHTTP = new...
2
by: @rpus - Development | last post by:
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...
1
by: Lu Wei | last post by:
Hello, I'm writing a script to send posts to a web forum. I find that MSXML2.XMLHTTP object could communicate with web server but I can't make it send cookie which is needed for post...
0
by: SushiSean | last post by:
When executing the xmlhttp.send function to request shipper for available shipments (I send xml as string and receive result xml): XMLHTTP xmlhttp = new XMLHTTP(); xmlhttp.open("POST",...
4
by: dols | last post by:
Hello, below the fragment that works fine, but nevertheless, the value of xmlhttp.status turns out to be zero (0), and the corresponding value for xmlhttp.statusText is "unknown". Does anyone...
1
sid0404
by: sid0404 | last post by:
Hi I need to send data from my servlet to my html(which contains AJAX), so as per the motivation of the AJAX, this should be done without my webpage reloading / refresh. my code on the ajax...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.