yjeevanprasad / php-wsdl-creator

Automatically exported from code.google.com/p/php-wsdl-creator
GNU General Public License v3.0
0 stars 0 forks source link

complex type: array of strings with own name produce error #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
this code:

/**
 * Array of strings
 *
 * @pw_complex ArrayOfstring[] string an array of strings
 */

produces this error:
otice: Uninitialized string offset: -1 in 
D:\dev\Apache2\htdocs\ScannyDummyServer\php-wsdl\class.phpwsdlformatter.php on 
line <i>158</i>

Original issue reported on code.google.com by ThomSchw...@gmail.com on 8 Nov 2012 at 10:04

GoogleCodeExporter commented 8 years ago
on call of ...?WSDL

Original comment by ThomSchw...@gmail.com on 8 Nov 2012 at 10:07

GoogleCodeExporter commented 8 years ago
I'm experiencing the same issue. When showing documentation it displays fine 
but when opening the WSDL this is produced:

 - File: ../php-wsdl/class.phpwsdlformatter.php
 - Line: 158
 - Detail: Uninitialized string offset: -1

Defined as:
/**
 * @pw_complex ArrayOfAccountDetails[] AccountDetails
 */

Original comment by j.romero.1214 on 10 Apr 2013 at 3:13

GoogleCodeExporter commented 8 years ago
Circumvented with "manually defining "

/**
 * @pw_set nillable=false
 * @pw_set maxoccurs=unbounded
 * @pw_element AccountDetails $AccountDetails
 *
 * @pw_complex ArrayOfAccountDetails
 */

Original comment by j.romero.1214 on 10 Apr 2013 at 7:47