473,396 Members | 1,861 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,396 software developers and data experts.

xHTTP send problem

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

Sep 8 '06 #1
1 2296

<ju**********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.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
Please don't multipost. I've responded in the XML group.
Sep 8 '06 #2

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

Similar topics

5
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...
15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
1
by: Kitchen Bin | last post by:
Hi. I am trying to use Sockets to do multiple Send and Receives via HTTP (not simultaneously). A first pair of Send/Receives works fine and sure enough I receive HTML back, but the next...
6
by: John J. Hughes II | last post by:
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
4
by: riteshjain82 | last post by:
Hi, Please go through this: I am having a file (default.asp) on which i am taking many details from a user before mailing it to someone. I have also provided the user with a facility of...
5
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...
17
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
14
by: Professor Yonce | last post by:
I have made form for E-Mail. I have entered code but the Import system does not work. It has squiggly line underneath it showing it is not communicating. It Will not build. Public Class...
0
by: Rishi | last post by:
Hi, I'm using xhttp to send a xml file to another remote place wiht POST method. In the place xhttp.send I got the error "the system cannot locate the resource specified". The size of the xml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...

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.