Hi,
I am using trying to send out an XML using ASP. It is actually trying
to call some webservice application using SOAP.
The problem is that the same codes works perfectly fine in Excel VBA on
the same server, but when it comes to IIS server, the program stop at
"xHTTP.send xDoc.XML" line. It seems like the IIS server refuse to let
the XML being sent out using the xHTTP object.
Is there any settings in IIS that I need to enable to allow XML to be
sent out?
Set xDoc = Server.CreateObject("MSXML2.DOMDocument")
Set xHTTP= Server.CreateObject("MSXML2.XMLHTTP.4.0")
If xDoc.loadXML(SubXML) Then
xHTTP.Open "POST", sRequest, False
xHTTP.setRequestHeader "content-type",
"application/x-www-form-urlencoded"
xHTTP.setRequestHeader "accept", "text/xml/html"
xHTTP.setRequestHeader "accept-charset", "utf-8, iso_8859-1"
xHTTP.setRequestHeader "userid", sUserID
xHTTP.setRequestHeader "pwd", sPassword
xHTTP.send xDoc.XML '--- Program stop here!!! ---
End if 5 3214
<ju**********@gmail.comwrote in message
news:11*********************@d34g2000cwd.googlegro ups.com...
Hi,
I am using trying to send out an XML using ASP. It is actually trying
to call some webservice application using SOAP.
The problem is that the same codes works perfectly fine in Excel VBA on
the same server, but when it comes to IIS server, the program stop at
"xHTTP.send xDoc.XML" line. It seems like the IIS server refuse to let
the XML being sent out using the xHTTP object.
Is there any settings in IIS that I need to enable to allow XML to be
sent out?
Set xDoc = Server.CreateObject("MSXML2.DOMDocument")
Set xHTTP= Server.CreateObject("MSXML2.XMLHTTP.4.0")
If xDoc.loadXML(SubXML) Then
xHTTP.Open "POST", sRequest, False
xHTTP.setRequestHeader "content-type",
"application/x-www-form-urlencoded"
xHTTP.setRequestHeader "accept", "text/xml/html"
xHTTP.setRequestHeader "accept-charset", "utf-8, iso_8859-1"
xHTTP.setRequestHeader "userid", sUserID
xHTTP.setRequestHeader "pwd", sPassword
xHTTP.send xDoc.XML '--- Program stop here!!! ---
End if
I don't see any error handling in your code. Why not add a bit of error
handling and find out what the problem is?
John
Hi John,
I tried to put in some reponse.write statement before and after the
"xHTTP.send xDoc.XML" statement.
Eg:
....
response.write "A"
xHTTP.send xDoc.XML
response.write "B"
"A" is being displayed but not "B". No error message is being displayed
from xHTTP.send statement. The browser seems to be forever running this
statement with no timeout.
Thanks.
Julian
John Saunders wrote:
<ju**********@gmail.comwrote in message
news:11*********************@d34g2000cwd.googlegro ups.com...
Hi,
I am using trying to send out an XML using ASP. It is actually trying
to call some webservice application using SOAP.
The problem is that the same codes works perfectly fine in Excel VBA on
the same server, but when it comes to IIS server, the program stop at
"xHTTP.send xDoc.XML" line. It seems like the IIS server refuse to let
the XML being sent out using the xHTTP object.
Is there any settings in IIS that I need to enable to allow XML to be
sent out?
Set xDoc = Server.CreateObject("MSXML2.DOMDocument")
Set xHTTP= Server.CreateObject("MSXML2.XMLHTTP.4.0")
If xDoc.loadXML(SubXML) Then
xHTTP.Open "POST", sRequest, False
xHTTP.setRequestHeader "content-type",
"application/x-www-form-urlencoded"
xHTTP.setRequestHeader "accept", "text/xml/html"
xHTTP.setRequestHeader "accept-charset", "utf-8, iso_8859-1"
xHTTP.setRequestHeader "userid", sUserID
xHTTP.setRequestHeader "pwd", sPassword
xHTTP.send xDoc.XML '--- Program stop here!!! ---
End if
I don't see any error handling in your code. Why not add a bit of error
handling and find out what the problem is?
John
<ju**********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi John,
I tried to put in some reponse.write statement before and after the
"xHTTP.send xDoc.XML" statement.
Eg:
...
response.write "A"
xHTTP.send xDoc.XML
response.write "B"
"A" is being displayed but not "B". No error message is being displayed
from xHTTP.send statement. The browser seems to be forever running this
statement with no timeout.
Ok, then try running "netstat" and "netstat -n" in a Command Prompt window
while the ASP page is hung. Check to see if there is an open connection to
where you're trying to send.
John
Hi,
Thanks for the quick reply.
I tried to issue netstat -n command, seems like there is no connection
established while the codes are running in IIS.
But when I tried run the same codes in Excel VBA for the same server,
there is connection established at the foreign address port 8080.
It seems like IIS is stopping the xHTTP.send function.
Julian
<ju**********@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Hi,
Thanks for the quick reply.
I tried to issue netstat -n command, seems like there is no connection
established while the codes are running in IIS.
But when I tried run the same codes in Excel VBA for the same server,
there is connection established at the foreign address port 8080.
It seems like IIS is stopping the xHTTP.send function.
IIS is not involved in this. The ASP code is running in a separate process,
and IIS is only involved in sending the requests to it and handling the
responses.
Have you tried using the debugger to see what's going on?
The fact that there is no connection suggests that the send function is not
executing. One possible reason for this is that it may have caused an error.
And, since you have no error handling code...
John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Corey |
last post by:
I'm running Windows/Outlook XP with mail routed through POP3/SMTP university servers. Abruptly, I am no longer able to send mail, though receiving works fine. I get an error message saying that...
|
by: Pete Loveall |
last post by:
I have a server application that monitors a private local queue for
messages. The message sent to it has a label and a response queue defined.
It works correctly when the queue is accessed via...
|
by: Hasan O |
last post by:
hi , I have a problem with socket.send
mesajlar = Encoding.ASCII.GetBytes("UGIR");
socketResultValue = socket.Send(mesajlar,0,mesajlar.Length,
SocketFlags.None);
socketResultValue =...
|
by: barry |
last post by:
Hi
I a developing on a Windows 2003 Server environment with MS Exchange
2003 installed, using the following code i am able to send e-mail message to
Administrator@myserver.com but not to any...
|
by: Andreas R. |
last post by:
Hello,
I'm using Python's asynchat for networking. If I invoke the send()
method of the asynchat module, only a single send operation is possible
at any given time. If I call it more than once,...
|
by: Barry |
last post by:
Hi
I have a development system with Windows 2003 and MS Exchange. if i send a
e-mail message to my MS Exchange server it goes through using the class
smtp.send(??).
but when i do the same on...
|
by: julian.tklim |
last post by:
Hi,
I am using trying to send out an XML using ASP. It is actually trying
to call some webservice application using SOAP.
The problem is that the same codes works perfectly fine in Excel VBA...
|
by: KMadison |
last post by:
I have just recently upgraded to Outlook 2003. I had a macro that simply sent out emails with a "myitem.send" statement. Instead of merely "sending" it llike I did before (under the older version),...
|
by: =?Utf-8?B?Um9nZXIgR2FycmV0dA==?= |
last post by:
I'm having a problem using the System.Net.Mail.SmtpClient. After I set
everything up and issue the Send method it throws an exception indicating
"Sorry, that domain isn't in my list of allowed...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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,...
|
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...
|
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...
| |