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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Bugzilla from bugzilla-daemon@bugzilla.maptools.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by Bugzilla from bugzilla-daemon@bugzilla.maptools.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://bugzilla.maptools.org/show_bug.cgi?id=2050


Oliver Christen <oliver.christen@...> changed:

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




--- Comment #1 from Oliver Christen <oliver.christen@...>  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
Cartoweb-dev@...
http://lists.maptools.org/mailman/listinfo/cartoweb-dev