|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-06 09:50 UTC] dmitry@php.net
[2004-07-12 08:47 UTC] jp dot gouigoux at free dot fr
[2004-07-19 16:56 UTC] dmitry@php.net
[2013-07-23 08:00 UTC] ab@php.net
[2014-10-07 23:17 UTC] stas@php.net
[2014-10-07 23:29 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
Description: ------------ I have two web services implemented in ASP.NET: number one uses only primitive types, number two uses arrays of specific objects. The WSDL generated for both is valid and correct. When I use var_dump($client->__getTypes()); for the first one, I indeed get the generated description of objects used by the web service. As for the second web service, nothing appears and the execution of my php page is stopped... Reproduce code: --------------- $client = new SOAPClient('http://localhost/SimpleService.asmx?WSDL',array('trace'=>1)); var_dump($client->__getTypes()); $client = new SOAPClient('http://localhost/ComplexTypeService.asmx?WSDL',array('trace'=>1)); var_dump($client->__getTypes()); Expected result: ---------------- array(10) { [0]=> string(17) "struct Coucou { }" [1]=> string(47) "struct CoucouResponse { string CoucouResult; }" [2]=> string(38) "struct RenvoiSimple { string texte; }" [3]=> string(59) "struct RenvoiSimpleResponse { string RenvoiSimpleResult; }" [4]=> string(41) "struct StoreInSession { string valeur; }" [5]=> string(64) "struct StoreInSessionResponse { boolean StoreInSessionResult; }" [6]=> string(30) "struct RetrieveFromSession { }" [7]=> string(73) "struct RetrieveFromSessionResponse { string RetrieveFromSessionResult; }" [8]=> string(28) "struct RetrieveSessionId { }" [9]=> string(69) "struct RetrieveSessionIdResponse { string RetrieveSessionIdResult; }" } THEN THE SAME THING FOR THE SECOND WEB SERVICE Actual result: -------------- array(10) { [0]=> string(17) "struct Coucou { }" [1]=> string(47) "struct CoucouResponse { string CoucouResult; }" [2]=> string(38) "struct RenvoiSimple { string texte; }" [3]=> string(59) "struct RenvoiSimpleResponse { string RenvoiSimpleResult; }" [4]=> string(41) "struct StoreInSession { string valeur; }" [5]=> string(64) "struct StoreInSessionResponse { boolean StoreInSessionResult; }" [6]=> string(30) "struct RetrieveFromSession { }" [7]=> string(73) "struct RetrieveFromSessionResponse { string RetrieveFromSessionResult; }" [8]=> string(28) "struct RetrieveSessionId { }" [9]=> string(69) "struct RetrieveSessionIdResponse { string RetrieveSessionIdResult; }" } (ONLY...)