Thanks for the response! I visited the URL you posted but still cannot
figure out what the problem is. Please forgive my ignorance:
a) Did you set your content type to text/xml?
I think so. Isn't that what the line
"req.setRequestHeader("Content-Type", "text/xml");" is supposed to do?
Do I need to somehow do this in the actual XML file itself?
b) Is your request actually making it to the server and back?
I tested out the script with some window alerts for the status - the
correct status code of 200 is going through...
c) When you alert/examine the responseText, do you see anything that
does not belong?
I'm opening a static XML file that I checked for syntax using Internet
Explorer. I think that should cover this point... or am I missing
d) Open up the dynamic XML document in your browser directly. (Type the
url into the browser. This may require you to hard code post parameters
or build a test form.) The browser will tell you if your XML is not
formatted correctly. Is it formatted correctly?
See the answer to c. :-D
This is really confusing me. Is it possible that perhaps the server is
not set up to serve up XML documents? Is there some sort of special
setting in Weblogic that enables delivery of XML documents?
It's really strange... Even though I'm explicitly opening an XML file
and the content-type is being set to text/xml (as far as I know), the
response headers keep coming back with a content-type of text/plain.
Should this tell me something?
It sounds like perhaps the MIME type of the response is not correct. The XML
object will be NULL if your response is something such as "text/plain". Make
sure your MIME type is either: application/xml or text/xml
Hope that helps,
On 11/20/06, The alMIGHTY N <email@example.com> wrote: