473,563 Members | 2,653 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 3906
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
6206
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...
5
6066
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...
9
5554
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...
1
4910
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...
5
2806
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...
9
2368
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...
13
25126
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...
1
3837
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...
3
2571
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
7664
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...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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. ...
0
8106
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...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5213
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...
0
3642
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...
1
2082
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
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.