__getTypes() returning nothing on complex WSDL
| Bug #28985 | __getTypes() returning nothing on complex WSDL | ||||
|---|---|---|---|---|---|
| Submitted: | 2004-07-01 17:26 UTC | Modified: | 2004-07-19 16:56 UTC | ||
| From: | jp dot gouigoux at free dot fr | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | SOAP related | ||
| PHP Version: | 5.0.0RC3 | OS: | Win2000 | ||
| Private report: | No | CVE-ID: | None | ||
[2004-07-01 17:26 UTC] jp dot gouigoux at free dot fr
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...)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-07-06 09:50 UTC] dmitry@php.net
[2004-07-12 08:47 UTC] jp dot gouigoux at free dot fr