|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 20:52 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2011-11-15 20:52 UTC] felipe@php.net
[2013-02-17 23:51 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
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