#40467 [Asn->Csd]: Partial SOAP request sent when XSD sequence or choice include minOccurs=0
| From: | dmitry@php.net | Date: | Thu, 15 Feb 2007 14:49:58 +0000 |
| Subject: | #40467 [Asn->Csd]: Partial SOAP request sent when XSD sequence or choice include minOccurs=0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108976@lists.php.net to get a copy of this message | ||
ID: 40467
Updated by: dmitry@php.net
Reported By: pgiralt at mac dot com
-Status: Assigned
+Status: Closed
Bug Type: SOAP related
Operating System: Ubuntu Linux 6.10
PHP Version: 5.2.1
Assigned To: dmitry
New Comment:
Fixed in CVS HEAD and PHP_5_2.
Previous Comments:
------------------------------------------------------------------------
[2007-02-13 21:41:40] pgiralt at mac dot com
Description:
------------
When a XSD includes <xsd:choice minOccurs="0"> or <xsd:sequence
minOccurs="0">, if the choice or sequence is ommitted from a SOAP
request, any elements appearing in the complexType after the choice or
sequence are not sent.
Reproduce code:
---------------
Associated XML schema available here:
http://www.employees.org/~pgiralt/phpbug/phpbugxml.txt
$mySoapClient = new SoapClient($wsdlLocation, $clientParams);
$newDnData->pattern = '15704';
$newDnData->routePartitionName = '1stLine';
$newDnData->usage = 'Device';
$newDnData->callForwardAll->forwardToVoiceMail = false;
$newDnData->callForwardAll->pattern = '';
$newDnData->callForwardAll->callingSearchSpaceName = 'Local';
$newDnData->callForwardBusy->forwardToVoiceMail = true;
$newDnData->callForwardBusyInt->forwardToVoiceMail = true;
$newDnData->callForwardNoAnswer->forwardToVoiceMail = true;
$newDnData->callForwardNoAnswerInt->forwardToVoiceMail = true;
$newDnData->description = 'Test User3;
$newDnData->alertingName = 'Test User3;
$newDnData->asciiAlertingName = 'Test User3;
$result = $ccmSoapProxyClass->AddLine($newDnData);
Expected result:
----------------
Tue Feb 13 10:38:19.972 EST 2007: <?xml version="1.0"
encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.cisco.com/AXL/API/1.0">
<SOAP-ENV:Body>
<ns1:addLine>
<newLine>
<pattern>15604</pattern>
<description>Test User3</description>
<usage>Device</usage>
<routePartitionName>1stLine</routePartitionName>
<aarNeighborhoodName>Test</aarNeighborhoodName>
<callForwardAll>
<forwardToVoiceMail>false</forwardToVoiceMail>
<callingSearchSpaceName>Local</callingSearchSpaceName>
</callForwardAll>
<callForwardBusy>
<forwardToVoiceMail>true</forwardToVoiceMail>
</callForwardBusy>
<callForwardBusyInt>
<forwardToVoiceMail>true</forwardToVoiceMail>
</callForwardBusyInt>
<callForwardNoAnswer>
<forwardToVoiceMail>true</forwardToVoiceMail>
</callForwardNoAnswer>
<callForwardNoAnswerInt>
<forwardToVoiceMail>true</forwardToVoiceMail>
</callForwardNoAnswerInt>
<alertingName>Test User3</alertingName>
<asciiAlertingName>Test User3</asciiAlertingName>
</newLine>
</ns1:addLine>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Actual result:
--------------
Tue Feb 13 10:56:43.476 EST 2007: <?xml version="1.0"
encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.cisco.com/AXL/API/1.0">
<SOAP-ENV:Body>
<ns1:addLine>
<newLine>
<pattern>15604</pattern>
<description>Test User4</description>
<usage>Device</usage>
<routePartitionName>1stLine</routePartitionName>
</newLine>
</ns1:addLine>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40467&edit=1