#40467 [NEW]: Partial SOAP request sent when XSD sequence or choice include minOccurs=0

From: Date: Tue, 13 Feb 2007 21:41:41 +0000
Subject: #40467 [NEW]: Partial SOAP request sent when XSD sequence or choice include minOccurs=0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108828@lists.php.net to get a copy of this message
From: pgiralt at mac dot com Operating system: Ubuntu Linux 6.10 PHP version: 5.2.1 PHP Bug Type: SOAP related Bug description: Partial SOAP request sent when XSD sequence or choice include minOccurs=0 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 bug report at http://bugs.php.net/?id=40467&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40467&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40467&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40467&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40467&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40467&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40467&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40467&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40467&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40467&r=support Expected behavior: http://bugs.php.net/fix.php?id=40467&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40467&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40467&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40467&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40467&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40467&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40467&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40467&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40467&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40467&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40467&r=mysqlcfg

« previous php.bugs (#108828) next »