#30799 [NEW]: SoapServer doesn't handle private or protected properties
| From: | david at giffin dot org | Date: | Mon, 15 Nov 2004 19:00:05 +0000 |
| Subject: | #30799 [NEW]: SoapServer doesn't handle private or protected properties | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-69100@lists.php.net to get a copy of this message | ||
From: david at giffin dot org
Operating system: Linux
PHP version: 5.0.2
PHP Bug Type: SOAP related
Bug description: SoapServer doesn't handle private or protected properties
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 bug report at http://bugs.php.net/?id=30799&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30799&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30799&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30799&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30799&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30799&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30799&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30799&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30799&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30799&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30799&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30799&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30799&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30799&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30799&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30799&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30799&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30799&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30799&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30799&r=mysqlcfg