http://bugzilla.maptools.org/show_bug.cgi?id=2050 Summary: SOAP response should send a text/xml content type
header
Product: CartoWeb
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo:
cartoweb-dev@...
ReportedBy:
devloic@...
The SOAP response is not recognized as xml in Firefox when sending a SOAP
request via Ajax. The php part responsible for sending the SOAP response should
set a text/xml header like this : header('Content-type: text/xml');
A convenient place to call header function would be in
readSoapXML($soapRequest) function in server/SoapXMLCache.php :
private function readSoapXML($soapRequest) {
$soapXML = file_get_contents($this->getSoapXMLFile($soapRequest));
if ($soapXML === FALSE) {
throw new CartoserverException('could not read cached soapXML');
}
header('Content-type: text/xml');
print $soapXML;
}
--
Configure bugmail:
http://bugzilla.maptools.org/userprefs.cgi?tab=email------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Cartoweb-dev mailing list
Cartoweb-dev@...
http://lists.maptools.org/mailman/listinfo/cartoweb-dev