Bug #80658 [NEW]: SoapClient ignores element children when the XSD has a "group" include

From: Date: Fri, 22 Jan 2021 09:49:02 +0000
Subject: Bug #80658 [NEW]: SoapClient ignores element children when the XSD has a "group" include
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231699@lists.php.net to get a copy of this message
From: r dot b dot paulson at protonmail dot com Operating system: Linux PHP version: 7.4.14 Package: SOAP related Bug Type: Bug Bug description:SoapClient ignores element children when the XSD has a "group" include Description: ------------ The WSDL I'm using has a <complexType name="directDebitPaymentInput"> element with a <group ref="ddp:directDebitPaymentInputGroup"> include. SoapClient understands that this means the resulting directDebitPaymentInput field should include the fields from the group, as well as the direct child element 'mandateNumber'. You can see this in the sample code. However when I make the actual request, the 'mandateNumber' field is not included in the request XML. Test script: --------------- https://gist.github.com/tinmrn/7978a170acb65a9f597cbc69e3ae3153 Expected result: ---------------- I expect the directDebitPaymentInput element to contain the mandateNumber element, as supplied in the input. Actual result: -------------- 7.4.14 struct directDebitPaymentInput { string35 holderName; bic bic; iban iban; string35 mandateNumber; } <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.docdatapayments.com/services/paymentservice/1_3/"><SOAP-ENV:Body><ns1:startRequest><ns1:merchant name="bogus" password="bogus"/><ns1:paymentOrderKey>bogus</ns1:paymentOrderKey><ns1:payment><ns1:paymentMethod>bogus</ns1:paymentMethod><ns1:directDebitPaymentInput><ns1:bic>test-bic</ns1:bic><ns1:iban>test-iban</ns1:iban></ns1:directDebitPaymentInput></ns1:payment></ns1:startRequest></SOAP-ENV:Body></SOAP-ENV:Envelope> -- Edit bug report at https://bugs.php.net/bug.php?id=80658&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80658&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80658&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80658&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80658&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80658&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80658&r=support Expected behavior: https://bugs.php.net/fix.php?id=80658&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80658&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80658&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80658&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80658&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80658&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80658&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80658&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80658&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80658&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80658&r=mysqlcfg

« previous php.bugs (#231699) next »