ID: 37278 Updated by: [EMAIL PROTECTED] Reported By: jgillis at optaros dot com -Status: Assigned +Status: Closed Bug Type: SOAP related Operating System: debian 3.1/Linux 2.6.16.5 PHP Version: 5.1.3 Assigned To: dmitry New Comment:
Fixed in CVS HEAD, PHP_5_2 and PHP_5_1. Previous Comments: ------------------------------------------------------------------------ [2006-05-02 15:04:58] jgillis at optaros dot com Description: ------------ I am trying to connect PHP to Bricolage (a CMS) using SOAP. Bricolage doesn't seem to have a WSDL, but they do have a SOAP interface. In order to make a request, I must first authenticate them make my request. This requires changing namespaces. Unfortunately, using a uri parameter when calling __soapCall doesn't seem to change the namespace, as I would expect. The code I've included is simplified to show just the error, so you don't see me using the default namespace. Reproduce code: --------------- $opts = Array("location" => "http://localhost:8080/soap", "uri" => "http://bricolage.sourceforge.net/Bric/SOAP/Auth", "trace" => 1); $client = new SoapClient(null, $options); $newNS = "http://bricolage.sourceforge.net/Bric/SOAP/Story"; try { $ret = $this->__soapCall("list_ids",Array(),Array("uri" => $newNS)); } catch (Exception $e) { print $client->__getLastRequest(); } Expected result: ---------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://bricolage.sourceforge.net/Bric/SOAP/Story" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:list_ids/></SOAP-ENV:Body></SOAP-ENV:Envelope> Actual result: -------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://bricolage.sourceforge.net/Bric/SOAP/Auth" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:list_ids/></SOAP-ENV:Body></SOAP-ENV:Envelope> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37278&edit=1