Hello
In Safari, (cant do it in Firefox because of security restriction) I'm
trying to access a web service in another domain via
function doAjax() {
xmlhttp.open("POST",
"http://company.com.au/dir/servlet/rpcrouter",true);
xmlhttp.onreadystatechange = myreturnmethod;
xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlhttp.send('input=88921');
}
and I'm getting this error back from the Web Service:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>parsing error: org.xml.sax.SAXParseException: Document
root element is missing.</faultstring>
<faultactor>/aplus2006/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Anybody can shed some light?
Thank you.