Solved

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

Posted on 2004-08-12
3
2,419 Views
Last Modified: 2012-06-21
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

0
Comment
Question by:abishome
3 Comments
 
LVL 26

Accepted Solution

by:
rdcpro earned 250 total points
ID: 11786473
Don't use "Microsoft.XMLDOM" as this points to the old 1998 parser.  Use

Set NewDoc = server.createobject("Msxml2.DomDocument")

and

Set SendDoc = server.createobject("Msxml2.DomDocument")

Also, avoid strings wherever possible, as these often introduce encoding problems.  Try to use the stream interface of the XML document object as in:

newDoc.Load(poster.responseBody)

or even simply do something like:

dim NewDoc
set NewDoc = poster.responseXML


But in your case, I think your XML string is not well formed.  Write the responseText out to the console or the web page or whatever, and examine it closely.  You can also look at the parseError object (highly recommended) to see what's up.
 
Regards,
Mike Sharp
0
 
LVL 1

Author Comment

by:abishome
ID: 11787320
It was a parser error and the clue about the parseError object helped me locate the parse error

Thanks
0
 
LVL 17

Expert Comment

by:rstaveley
ID: 13628182
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.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error opening .xml with Excel 2013 4 28
Parsing the XML data to SQL Server 4 65
XML XSL Message 3 21
XSLT -  replace invalid xml characters 15 32
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now