473,699 Members | 2,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XmlHttp and Win 2003

hi guys,

i'm french, sorry for my poor english

i use Msxml2.ServerXM LHTTP 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("m icrosoft.xmlhtt p")
url =
"http://webservice.dsc. fr/revendeurs/revendeurs.asmx/GetUrlIcomp?Ref Prod=PALM
ZIRE"

' Transmission des infos pour analyse du moteur
xmlhttp.open "get",url,f alse
xmlhttp.setrequ estheader "Pragma","n o-cache"
xmlhttp.setrequ estheader "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.respons etext

End if
End Function

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

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

i'm french, sorry for my poor english

i use Msxml2.ServerXM LHTTP 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,f alse


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.ServerXM LHTTP 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.ServerXM LHTTP 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("m icrosoft.xmlhtt p")
url =
"http://webservice.dsc. fr/revendeurs/revendeurs.asmx/GetUrlIcomp?Ref Prod=PALM
ZIRE"

' Transmission des infos pour analyse du moteur
xmlhttp.open "get",url,f alse
xmlhttp.setrequ estheader "Pragma","n o-cache"
xmlhttp.setrequ estheader "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.respons etext

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.createob ject("Msxml2.se rverXMLHTTP.4.0 ")
No :) ---> Set ObjXMLHTTP = Server.createob ject("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
6212
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 directory, like so: <form action="/servlet/Login" target="_top" method="POST" enctype="x-www-form-encoded" onSubmit='return goodform()'> but the XMLHTTP object requires a specific file reference.
5
6082
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 loss even though I seem to be allocaitng everything; help would be *vastly* appreciated. What am I doing wrong here? I thought I was doing everything correctly (setting things to null, for example) but none of the memory seems to get replaced. ...
9
5573
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, using the same HTML/JS it always returns no data (xmlhttp.responseText is null). When I try to get headers using Mozilla or display the http status code I get some obscure exception in the javascript console that I've given up on searching for an...
1
4923
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, which is the file I am programmatically rewriting to elsewhere) gets changed. I am trying to use AJAX and JSON to do this. I have copied an example of using HttpRequest Object as the backbone of this from...
5
2814
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). Is there a way to display the content of xmlhttp.responseText on a new page?? I tried document.write(xmlhttp.responseText) but this does not display the XML structure.
9
2380
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 with netscape,I dont know how to pass the xmlhttp request in Netscape. i got some code like below for netscape for xmlhttp var oXML=new XMLHttpRequest();
13
25262
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 the version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to the latest installed version. This makes me wonder why sites like <http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to use Msxml2.XMLHTTP, first, and...
1
3848
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 and send the item number to the xmlHttp and works awesome. Now I need to add an apply button next to it. so they can type in the complete number then hit apply and it does the same function. I cant get it to work with the script I have. The image...
3
2589
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 (window.XMLHttpRequest) {
0
8706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9055
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8902
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7787
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5891
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4392
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3076
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 we have to send another system

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.