Bug #53595 [NEW]: soap client can't handle 'any' element in wsdl schema

From: Date: Wed, 22 Dec 2010 21:53:22 +0000
Subject: Bug #53595 [NEW]: soap client can't handle 'any' element in wsdl schema
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157277@lists.php.net to get a copy of this message
From: Operating system: Linux PHP version: 5.2.16 Package: SOAP related Bug Type: Bug Bug description:soap client can't handle 'any' element in wsdl schema Description: ------------ if WSDL schema contain 'any' element soap client failed part of wsdl schema: wsdl:definitions targetNamespace="url"> <wsdl:documentation>The Webservice for Saving Orders</wsdl:documentation> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="url"> <s:element name="SaveOrder"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="xmlOrder"> <s:complexType mixed="true"> <s:sequence> <s:any/> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> Test script: --------------- $url = 'url?wsdl'; $params = array( 'xmlOrder' => array( 'OrderInfo' => array( 'OrderId'=> 5555, ) ) ) $client = new SoapClient($url, array('soap_version' => SOAP_1_2)); //changing soap version doesn't reflect result $client->__getFunctions(); $result = $client->SaveOrder($params); Expected result: ---------------- result from web service call Actual result: -------------- Fatal error: Uncaught SoapFault exception: [Sender] SOAP-ERROR: Encoding: object hasn't 'any' property in /xxx/script.php:78 Stack trace: #0 /xxx/script.php(78): SoapClient->__call('SaveOrder', Array) #1 /xxx/script.php(78): SoapClient- >SaveOrder(Array) #2 {main} thrown in /xxx/script.php on line 78 -- Edit bug report at http://bugs.php.net/bug.php?id=53595&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53595&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53595&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53595&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53595&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53595&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53595&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53595&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53595&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53595&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53595&r=support Expected behavior: http://bugs.php.net/fix.php?id=53595&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53595&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53595&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53595&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53595&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53595&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53595&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53595&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53595&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53595&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53595&r=mysqlcfg

« previous php.bugs (#157277) next »