From: moritz dot augustin at core-networks dot de Operating system: Linux 2.6.12.4 PHP version: 6CVS-2005-09-23 (CVS) PHP Bug Type: SOAP related Bug description: complexType is not recognized correctly
Description: ------------ I try to access a not-PHP web service (SOAP, WSDL available) using ext/soap. But my parameters aren't put correctly in the xml request. What am I doing wrong? The PHP documentation is not complete at this point, so it's undocumentated. My question: What's the general syntax for nestled parameters (or: how must the following $parameters be built?). Best Regards, Moritz Augustin Core Networks GmbH - http://www.core-networks.de Reproduce code: --------------- Relevant content of WSDL (some parts are replaced by an asterisk): http://dev.unitedservers.de/moritz/wsdl // the constructor array argument just sets the real class variables $client = new SoapClient(*****, array ("trace" => 1, "classmap" => array ( "GetModifiedOrdersInput" => "GetModifiedOrdersInput", "QueryRequestHeader" => "QueryRequestHeader", "orderQueryOptions" => "orderQueryOptions" ))); $parameters = new GetModifiedOrdersInput (array ( "QueryRequestHeader" => new QueryRequestHeader (array ( "PartnerCode" => "XXXXXXXXX", "ReplayToken" => "aaaaaaaaaa8sdmf23n4asdkjHAsd8123" )), "FromDate" => time () - 3600 * 24 * 30, "ToDate" => time (), "orderQueryOptions" => new orderQueryOptions (array ( )) )); try { $client->GetModifiedOrders ($parameters); } catch (SoapFault $f) { echo $f->faultstring; echo $f->faultcode; } echo htmlspecialchars ($client->__getLastRequest ()); Expected result: ---------------- No errors. A xml file with the contents of $parameters. Actual result: -------------- An error message without useful information: null fc:JWSError And the xml file without any useful data: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.geotrust.com/webtrust/query"><SOAP-ENV:Body><ns1:GetModifiedOrders/></SOAP-ENV:Body></SOAP-ENV:Envelope> -- Edit bug report at http://bugs.php.net/?id=34613&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34613&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34613&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34613&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34613&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34613&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34613&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34613&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34613&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34613&r=support Expected behavior: http://bugs.php.net/fix.php?id=34613&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34613&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34613&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34613&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34613&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34613&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34613&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34613&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34613&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34613&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34613&r=mysqlcfg
