Edit report at https://bugs.php.net/bug.php?id=53595&edit=1

 ID:               53595
 Updated by:       [email protected]
 Reported by:      alex at liokumovich dot com
 Summary:          soap client can't handle 'any' element in wsdl schema
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          SOAP related
 Operating System: Linux
 PHP Version:      5.2.16

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2011-11-15 20:52:21] [email protected]

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2010-12-22 22:53:22] alex at liokumovich dot com

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 this bug report at https://bugs.php.net/bug.php?id=53595&edit=1

Reply via email to