Anonymous - 2012-08-23

hi all.
I am developing a web service in php with no soap for returning a complex object with some string arrays in it.
In order to do that a defined the  following complex object to represent my array of strings:
$server->wsdl->addComplexType( 
  'ArrayOfString',
  'complexType', 
  'array',
  'sequence',
  '',
  array(
  'itemName' => array(
    'name' => 'itemName',
    'type' => 'xsd:string',
    'minOccurs' => '0',    
    'maxOccurs' => 'unbounded'
    )
  ) 
);
In a PHP client everything works fine, but when a im generating a java client in eclipse i get the following error :
IWAB0399E Error in generating Java from WSDL:  java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}ArrayOfString is referenced but not defined.
Then just for test I try to generate a .net client and I get errors: There was an error verifying some XML Schemas generated during export: Type 'http://www.w3.org/2001/XMLSchema:ArrayOfString' is not declared. and
Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: Referenced type 'http://schemas.xmlsoap.org/soap/encoding/:Array' is only valid for encoded SOAP.

Can anyone help me?
Best Regards
Ricardo