#30799 [Opn->Asn]: SoapServer doesn't handle private or protected properties
| From: | derick@php.net | Date: | Mon, 15 Nov 2004 19:41:29 +0000 |
| Subject: | #30799 [Opn->Asn]: SoapServer doesn't handle private or protected properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69106@lists.php.net to get a copy of this message | ||
ID: 30799
Updated by: derick@php.net
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