Hi,
I've been trying to post some XML using the above the component but keep
getting the following Exception:
System.Runtime.InteropServices.COMException (0xC00CE56D)
The code is:
_postSystem = New MSXML2.ServerXMLHTTP40
xmlString = FetchXMLClientDetails(clientDetails)
xmlDocument.loadXML(xmlString)
_postSystem.open("POST", "https://someSite/blahblah.cfm", False)
_postSystem.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded")
_postSystem.send(xmlDocument)
The FetchXMLClientDetails just returns XML in the form <tag>XXXX</tag>, etc.
Any help would be appreciated.
John Wadie - 14 Sep 2004 13:10 GMT
Using MSXML in .NET applications through COM interoperability can result in
unexpected problems. Take a look at
Use of MSXML is Not Supported in .NET Applications
http://support.microsoft.com/default.aspx?scid=kb;en-us;815112
You can get the same functionality through the System.Web.HttpWebRequest
class, take a look at
Implement Common MSXML Tasks in System.xml By Using Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;330589
Cheers,
John Wadie
Gavin Sullivan - 17 Sep 2004 15:55 GMT
> Using MSXML in .NET applications through COM interoperability can result in
> unexpected problems. Take a look at
[quoted text clipped - 10 lines]
> Cheers,
> John Wadie
Cheers for that John,
Had I known it would have saved me days!!
Tried the sample in C# (and VB for that matter), now get a new error:
a System.Net.WebException - The underlying connection was closed: Unable to
connect to the remote server.
I don't see any Open() method in the object!
Any ideas as to the cause?
Best Regards,
Gavin