Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response XML is not valid encoding for MSXML

Status
Not open for further replies.

mateobus

Programmer
Aug 20, 2007
28
US
Hello,

I am trying to use a client's API in order to integrate authentication. The problem that I am having is that it appears that their application was written in java, and the encoding of the XML response is ISO8859_1, an encoding which is not supported by the MSXML active x object. Please see this link for reference:
The problem is, I highly doubt that I will be able to change, or even request to change the encoding of the response xml. Is there another work around for this?

Code:
dim URL, oHttp, result
set oHttp    =  Server.CreateObject("MSXML2.ServerXMLHTTP")
URL = ...
oHttp.open "GET", URL, false
oHttp.send()
Response.write oHttp.getAllResponseHeaders
	
Response.write(oHttp.responseText)

It will first display all of the headers which seem fine. Then i get this error:

msxml3.dll error 'c00ce56e'
System error: -1072896658.

If i navigate to the same URL in my browser, it displays the XML document fine.

Thanks in advance.
 
Do you have a handy example public site jsp that serve out that encoding? I might be curious to test out and that would save much time to search for one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top