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("MSXML 2.ServerXM LHTTP")
poster.open "POST", url, false
poster.setRequestHeader "CONTENT_TYPE", "text/xml"
poster.send docSubmit
Set NewDoc = server.createobject("Micro soft.XMLDO M")
newDoc.ValidateOnParse= True
newDoc.LoadXML(poster.resp onseTEXT)
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("Micro soft.XMLDO M")
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
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("MSXML
poster.open "POST", url, false
poster.setRequestHeader "CONTENT_TYPE", "text/xml"
poster.send docSubmit
Set NewDoc = server.createobject("Micro
newDoc.ValidateOnParse= True
newDoc.LoadXML(poster.resp
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("Micro
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Thanks