I want to consume a web service using jquery's get function. There is no layer in between, since the javascript files are put on the same server as the web service is running on.
My code runs nicely in firefox, but in ie7 the problem arise. I'm quite certain that i know the answer: xml header states "text/html", and IE7 belives unfortunately that it is true.
So, what can i do to help IE to understand my xml-response as xml? cast/parse?
XML:
<?xml version = "1.0" encoding = "UTF-8"?>
<find>
<set_number>005262</set_number>
<no_records>000005611</no_records>
<no_entries>000005611</no_entries>
<session-id>YGSNPECRDEJS4Y3U1A65HMTG9PYPI1UDY1PYNFN2RK4BCDGY2D</session-id>
</find>
Code (simplified, the append-stuff takes place in a separate function):
$(document).ready(
function(){
$.get(
"http://server/X?op=find&code=wru&request=arbetsliv&base=rik01",
function(data){
$("#wru").append($('no_records',data).text());
},"xml"
);
});