i have java web service, returns an Object contains couple of variables data, this web service being called in ASP code, but asp code always getting the Mime Type is "text/plain". even though I did setup the below Response.ContentType = "application/xml" and not parsing the web service results and error out type mismatch at loadXML. Can some one suggest how to change the mime type in ASP code at runtime? thanks
+1
A:
Sounds like your Java web service returns text/plain as Content Type.
Changing the ASP content type doesn't have any bearing on that, as that's to do with what Content Type your ASP page displays.
Wim Hollebrandse
2008-10-31 14:32:48
A:
thanks for quick response, actualli I did setup mime type in java webservice is "application/xml"
But you're saying the Content-Type in the response of your Java webservice call isn't application/xml. So your Java service is the issue. Try and connect to a different webservice for which you know the Content-Type is XML.
Wim Hollebrandse
2008-10-31 14:38:37