From:             jp dot gouigoux at free dot fr
Operating system: Win2000
PHP version:      5.0.0RC3
PHP Bug Type:     SOAP related
Bug description:  __getTypes() returning nothing on complex WSDL

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...)

-- 
Edit bug report at http://bugs.php.net/?id=28985&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28985&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28985&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28985&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28985&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28985&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28985&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28985&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28985&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28985&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28985&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28985&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28985&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28985&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28985&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28985&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28985&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28985&r=float

Reply via email to