ID: 30799 Updated by: [EMAIL PROTECTED] Reported By: david at giffin dot org -Status: Open +Status: Assigned Bug Type: SOAP related Operating System: Linux PHP Version: 5.0.2 -Assigned To: +Assigned To: dmitry
Previous Comments: ------------------------------------------------------------------------ [2004-11-15 20:00:04] david at giffin dot org Description: ------------ The SoapServer does not handle private or protected properties when sending a user defined class across the wire. The SOAP XML generated in the response is not well formed. Reproduce code: --------------- You can get the source code to replicate the problem at: http://www.giffin.org/soap.tgz Expected result: ---------------- Return well formed XML using the name of the private or protected property as the XML element: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:SoapService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getSoapProblemResponse><return xsi:type="SOAP-ENC:Struct"><foo xsi:type="xsd:int">123</foo><bar xsi:type="xsd:int">234</bar></return></ns1:getSoapProblemResponse></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="urn:SoapService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getSoapProblemResponse><return xsi:type="SOAP-ENC:Struct">< xsi:type="xsd:int">123</>< xsi:type="xsd:int">234</></return></ns1:getSoapProblemResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30799&edit=1