473,467 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XmlHttp and Win 2003

hi guys,

i'm french, sorry for my poor english

i use Msxml2.ServerXMLHTTP from MSXML SDK.

On my staging server (win2000) my code works properly but not on my
production server (win2003)

The object is instancied, the first call of teh "Send" method reply but
just once !!

If i refresh the pageand i'll never have any other response

Here the test code

<%
' ---------------------------

Function Test()
Dim url,xmlhttp
set xmlhttp = createobject("microsoft.xmlhttp")
url =
"http://webservice.dsc.fr/revendeurs/revendeurs.asmx/GetUrlIcomp?RefProd=PALM
ZIRE"

' Transmission des infos pour analyse du moteur
xmlhttp.open "get",url,false
xmlhttp.setrequestheader "Pragma","no-cache"
xmlhttp.setrequestheader "Cache-control","no-cache"
On Error Resume Next
xmlhttp.send
If Err.Number<>0 Then
SendSpyWords = ""
Exit Function
End If
On Error Goto 0
If (xmlhttp.Status = 200) then
Test = xmlhttp.responsetext

End if
End Function

response.write Test()
'
' Fin du code de test
%>

Tks
Jul 22 '05 #1
6 3900
denel wrote:
hi guys,

i'm french, sorry for my poor english

i use Msxml2.ServerXMLHTTP from MSXML SDK.

On my staging server (win2000) my code works properly but not on my
production server (win2003)


What do you mean by this? Error messages? Incorrect results? Please try to
describe your symptomsw without using the words "does not work".

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
denel wrote:
xmlhttp.open "get",url,false


Try "GET" instead of "get".

5.1.1 Method
============
The Method token indicates the method to be
performed on the resource identified by the
Request-URI. The method is case-sensitive.
^^^^^^^^^^^^^^^^^^^^^^^^

ftp://ftp.isi.edu/in-notes/rfc2616.txt


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #3
unfortunately, i've no error message in the page, no error messages in
EventViewer

just no response from the server after the "send" method

"Bob Barrows [MVP]" wrote:
denel wrote:
hi guys,

i'm french, sorry for my poor english

i use Msxml2.ServerXMLHTTP from MSXML SDK.

On my staging server (win2000) my code works properly but not on my
production server (win2003)


What do you mean by this? Error messages? Incorrect results? Please try to
describe your symptomsw without using the words "does not work".

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 22 '05 #4
denel wrote:
unfortunately, i've no error message in the page, no error messages in
EventViewer

just no response from the server after the "send" method


Have you tried my suggestion yet?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #5
i try your suggestion but it's don't work

tks a lot for your response

"denel" wrote:
hi guys,

i'm french, sorry for my poor english

i use Msxml2.ServerXMLHTTP from MSXML SDK.

On my staging server (win2000) my code works properly but not on my
production server (win2003)

The object is instancied, the first call of teh "Send" method reply but
just once !!

If i refresh the pageand i'll never have any other response

Here the test code

<%
' ---------------------------

Function Test()
Dim url,xmlhttp
set xmlhttp = createobject("microsoft.xmlhttp")
url =
"http://webservice.dsc.fr/revendeurs/revendeurs.asmx/GetUrlIcomp?RefProd=PALM
ZIRE"

' Transmission des infos pour analyse du moteur
xmlhttp.open "get",url,false
xmlhttp.setrequestheader "Pragma","no-cache"
xmlhttp.setrequestheader "Cache-control","no-cache"
On Error Resume Next
xmlhttp.send
If Err.Number<>0 Then
SendSpyWords = ""
Exit Function
End If
On Error Goto 0
If (xmlhttp.Status = 200) then
Test = xmlhttp.responsetext

End if
End Function

response.write Test()
'
' Fin du code de test
%>

Tks

Jul 22 '05 #6
heres the solution -->

i have to use a "trhead safe" server solution of the object

Yes --> Set ObjXMLHTTP = Server.createobject("Msxml2.serverXMLHTTP.4.0")
No :) ---> Set ObjXMLHTTP = Server.createobject("microsoft.xmlhttp")

More informations here
http://support.microsoft.com/default...b;en-us;290761

Frequently asked questions about ServerXMLHTTP

http://support.microsoft.com/kb/238425/en-us

INFO: WinInet Not Supported for Use in Services

Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Shannon | last post by:
Hi everyone, I am trying to post some data to a form using the XMLHTTP object, and have run into a problem trying to find the proper location of the receiving page. The form points to a...
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
9
by: fochie | last post by:
Greetings, I'm having a problem when I try to GET a file from my server via xmlhttp when using Mozilla. With IE I can get any type of file fine, get/display headers fine, etc. With Mozilla,...
1
by: Ike | last post by:
Ive copied an online example for writing out a php file, programmatically, then would like to re-display that data in a browswer window that automatically refreshes as the data file (getdata.php,...
5
by: hatsumoto | last post by:
Hello, I create an ActiveXObject("Msxml2.XMLHTTP") from my HTML page to submit (i.e. post) XML to a server. I can see the content of the XML response via javascript alert(xmlhttp.responseText)....
9
by: balakrishnan.dinesh | last post by:
hi friends, Exactly what i want to know is, In my product we are using xmlhttp request to retrive some data from the server, And Im using IE browser, its working fine in IE. Now i want to work...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
1
by: wkerplunk | last post by:
Below is what I have build with several different languages. It works great but I need help, I am stuck. When you click on an item in the dropdown autocomplete div it does a mousedown function...
3
by: Andrewh | last post by:
Hi, I am having a bit of a problem with using xmlhttp. The code of the javascript file is shown below used in Windows XP. var xmlhttp = null; function SetURLDiv(url) { if...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.