Quantcast

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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

bugzilla-daemon (Bugzilla)-13
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: [hidden email]
        ReportedBy: [hidden email]


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
[hidden email]
http://lists.maptools.org/mailman/listinfo/cartoweb-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 2050] SOAP response should send a text/xml content type header

bugzilla-daemon (Bugzilla)-13
http://bugzilla.maptools.org/show_bug.cgi?id=2050


Oliver Christen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver.christen@camptocamp.
                   |                            |com




--- Comment #1 from Oliver Christen <[hidden email]>  2009-05-29 10:18:09 ---
I believe the function readSoapXML is only called in case of cache hit, so if
the header is set there, it will not be set correctly in all cases

if you have configured your cartoserver with usedWsdl = false (it should be the
default setting), can you try to add the "header" command in the file
/htdocs/server.php just before $cache->printSoapXML($HTTP_RAW_POST_DATA);

please let me know if it solve the problem too

--
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
[hidden email]
http://lists.maptools.org/mailman/listinfo/cartoweb-dev
Loading...