[Cartoweb-dev] [Bug 2050] New: SOAP response should send a text/xml content type header

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed May 20 00:57:05 EST 2009


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 at lists.maptools.org
        ReportedBy: devloic at gmail.com


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.


More information about the Cartoweb-dev mailing list