Link to home
Start Free TrialLog in
Avatar of abishome
abishome

asked on

Sending XML via ASP page - msxml3.dll error 'c00ce56d'

I get the following error when trying to send XML to a remote server

msxml3.dll error 'c00ce56d'

System error: -1072896659.

Here is the function that is causing the error

private function xmlsend(url, docSubmit)
Set poster = Server.CreateObject("MSXML2.ServerXMLHTTP")
poster.open "POST", url, false
poster.setRequestHeader "CONTENT_TYPE", "text/xml"
poster.send docSubmit
Set NewDoc = server.createobject("Microsoft.XMLDOM")
newDoc.ValidateOnParse= True
newDoc.LoadXML(poster.responseTEXT)
Set XMLSend = NewDoc
Set poster = Nothing
end function

I bulid a string line by line containing the XML info then I use the following code

Set SendDoc = server.createobject("Microsoft.XMLDOM")
SendDoc.ValidateOnParse= True
SendDoc.LoadXML(xmlString)

'Set the URL of the receiver
sURL = "https://epayhipvar.paymentech.net

'Call the XML Send function (defined below)
set NewDoc = xmlSend (sURL, SendDoc)'xmlString)

This obviously calls the function above.

This is my first attempt at sending XML and I am not sure where to begin

ASKER CERTIFIED SOLUTION
Avatar of rdcpro
rdcpro
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of abishome
abishome

ASKER

It was a parser error and the clue about the parseError object helped me locate the parse error

Thanks
At the risk of being accused of spamming your mailboxes, I'd like to piggy-back this thread to let you know that it directed me to the solution for my problem too.

In a C++ project, which uses the IDispatch just like vbscript, I'd been passing a malformed XML string to Msxml2.DOMDocument.3.0, which I passed to Msxml2.ServerXMLHTTP.3.0 to send. The send method invocation on Msxml2.ServerXMLHTTP.3.0 failed with error code 0xc00ce56d.

Your good advice directed me to check the XML for well-formedness.

Many thanks, rdcpro and abishome.